直径寸法または半径寸法の引出線の長さを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 倍精度浮動小数点数型
引出線の長さ
LeaderLength は、ChordPoint 寸法定義点から注釈文字への水平ドッグレグまで(ドッグレグが不要な場合は寸法線の端まで)の距離です。(詳細は、AddDimDiametric または AddDimRadial メソッドを参照してください。)
VBA:
Sub Example_LeaderLength()
' This example creates a diametric dimension
' and returns the LeaderLength for that dimension.
Dim dimObj As AcadDimDiametric
Dim chordPoint(0 To 2) As Double
Dim farChordPoint(0 To 2) As Double
Dim leaderLength As Double
' Define the dimension
chordPoint(0) = 5#: chordPoint(1) = 3#: chordPoint(2) = 0#
farChordPoint(0) = 5#: farChordPoint(1) = 5#: farChordPoint(2) = 0#
leaderLength = 1#
' Create the diametric dimension in model space
Set dimObj = ThisDrawing.ModelSpace.AddDimDiametric(chordPoint, farChordPoint, leaderLength)
ZoomAll
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_LeaderLength()
;; This example creates a diametric dimension
;; and returns the LeaderLength for that dimension.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
;; Define the dimension
(setq chordPoint (vlax-3d-point 5 3 0)
farChordPoint (vlax-3d-point 5 5 0)
leaderLength 1)
;; Create the diametric dimension in model space
(setq modelSpace (vla-get-ModelSpace doc))
(setq dimObj (vla-AddDimDiametric modelSpace chordPoint farChordPoint leaderLength))
(vla-ZoomAll acadObj)
)