该函数发出 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 调用的自动化对象遵循一些标准规则:
|
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:45
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.