了解 gp:drawOutline 中的 ActiveX 代码
该函数发出 ActiveX 调用以在 AutoCAD 中显示路径的折线边框。以下代码片段使用 ActiveX 绘制边框:gp:drawOutline ;; Add polyline to the model space using ActiveX automation. (setq pline (vla-addLightweightPolyline *ModelSpace* ; Global Definition for Model Space VLADataPts ; vertices of path boundary ) ;_ end of vla-addLightweightPolyline ) ;_ end of setq (vla-put-closed pline T) 在 AutoCAD 对象上工作的所有 AutoLISP ActiveX 函数的名称都以 为前缀。例如,addLightweightPolyline 是 ActiveX 方法的名称,并且是调用此方法的 AutoLISP 函数。该调用更新对象的闭合属性,即 绘制的折线。vla-vla-addLightweightPolylinevla-put-closedplinevla-addLightweightPolyline AutoLISP ActiveX 调用中的 Automation 对象遵循以下几个标准规则:
|
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-3-14 07:33
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.