LeaderLinetype 属性 (ActiveX)
指定引线的类型。 支持的平台:仅限 Windows 属性值只读:不 类型:ACAD_LTYPE 一个值,表示引线的线型。 言论没有其他评论。 例子VBA: Sub Example_LeaderLine() Dim oML As AcadMLeader Dim points(0 To 5) As Double points(0) = 1: points(1) = 1: points(2) = 0 points(3) = 4: points(4) = 4: points(5) = 0 Dim i As Long Set oML = ThisDrawing.ModelSpace.AddMLeader(points, i) Dim r As Long r = oML.AddLeader() points(4) = 10 Call oML.AddLeaderLine(r, points) MsgBox "LeaderCount = " & oML.LeaderCount ZoomExtents End Sub 可视化 LISP: (vl-load-com) (defun c:Example_LeaderLine() (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (setq points (vlax-make-safearray vlax-vbDouble '(0 . 5))) (vlax-safearray-fill points '(1 1 0 4 4 0 ) ) (setq i 0) (setq modelSpace (vla-get-ModelSpace doc)) (setq oML (vla-AddMLeader modelSpace points i)) (setq r (vla-AddLeader oML)) (vlax-safearray-put-element points 4 10) (vla-AddLeaderLine oML r points) (alert (strcat "LeaderCount = " (itoa (vla-get-LeaderCount oML)))) (vla-ZoomExtents acadObj) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 11:47
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.