www.mxdraw.com
内容索引主面
前一个向上下一个
MxDrawXCustomFunction::Mx_CreateViewPort 方法

创建视口

IDL
static McDbObjectId Mx_CreateViewPort(McGePoint3d ptLB, McGePoint3d ptRT, McGePoint3d ptTargetLB, McGePoint3d ptTargetRT);
参数 
说明 
McGePoint3d ptLB 
视口左下角 
McGePoint3d ptRT 
视口右上角 
McGePoint3d ptTargetLB 
模型空间的显示范围左下角 
McGePoint3d ptTargetRT 
模型空间的显示范围右上角 

成功,返回视口对象id.

例如: C#

            MxDrawResbuf param = new MxDrawResbuf();
            MxDrawPoint pt = new MxDrawPoint();
    
            pt.x = 0;
            pt.y = 0;
            param.AddPoint(pt);

            pt.x = 100;
            pt.y = 100;
            param.AddPoint(pt);

            pt.x = 10;
            pt.y = 10;
            param.AddPoint(pt);

            pt.x = 200;
            pt.y = 100;
            param.AddPoint(pt);

            axMxDrawX1.SetCurrentLayout("layout1");
            axMxDrawX1.CallEx("Mx_CreateViewPort", param);
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!