Layouts 对象

包含模型空间及模型空间(布局)。

属性/方法 意义
Count 布局数量
Item(n) 取包含的 AcadLayout 对象,默认属性
Add(name) 添加布局
当前布局 CTAB 环境变量

AcadLayout 对象

属性/方法 意义
Name 布局名,除模型空间为 Model 外,其他同屏幕显示
Delete() 删除布局
Block AcadBlock 对象
GetPaperSize(Width,Height) 返回图纸的宽度、高度
GetPaperMargins(LowerLeft, UpperRight) 返回图纸边距,两个 Double(2)
PlotOrigin 偏移量,可读写 Double(2)
TabOrder 顺序,可读写,0 固定为模型空间
PlotType 输出范围类型
SetWindowToPlot(LowerLeft, UpperRight) 设置打印窗口,两个 Double(2)
ViewToPlot 输出视口名称