円弧の弧長寸法を作成します。
サポートされているプラットフォーム: Windows のみ
VBA:
RetVal = object.AddDimArc(ArcCenter, FirstEndPoint, SecondEndPoint, ArcPoint)
タイプ: Block、ModelSpace、PaperSpace
このメソッドが適用されるオブジェクト。
アクセス: 入力のみ
タイプ: バリアント型(3 要素の倍精度浮動小数点数型配列)
円弧の中心点を指定する 3D WCS 座標。
アクセス: 入力のみ
タイプ: バリアント型(3 要素の倍精度浮動小数点数型配列)
1 本目の寸法補助線が通過する点を指定する 3D WCS 座標。
アクセス: 入力のみ
タイプ: バリアント型(3 要素の倍精度浮動小数点数型配列)
2 本目の寸法補助線が通過する点を指定する 3D WCS 座標。
アクセス: 入力のみ
タイプ: バリアント型(3 要素の倍精度浮動小数点数型配列)
円弧上の点を指定する 3D WCS 座標。

ArcCenter は、寸法を記入する円弧の中心です。FirstEndPoint および SecondEndPoint は、2 本の寸法補助線がそれぞれ通過する点です。
VBA:
Sub Example_AddDimArc()
Dim PI As Double: PI = 3.141592
Dim oMS As AcadModelSpace
Set oMS = ThisDrawing.ModelSpace
Dim ptCenter(2) As Double
Dim oA As AcadArc
Set oA = oMS.AddArc(ptCenter, 10, PI / 3, PI * 3 / 4)
Dim ptArcPoint(2) As Double
ptArcPoint(0) = 0: ptArcPoint(1) = 15
Dim oAcadDimArcLength As AcadDimArcLength
Set oAcadDimArcLength = oMS.AddDimArc(oA.Center, oA.startPoint, oA.endPoint, ptArcPoint)
Update
ZoomExtents
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_AddDimArc()
;; This example creates an arc and arc length dimension in model space.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq modelSpace (vla-get-ModelSpace doc))
;; Define the arc
(setq center (vlax-3d-point 0 0 0))
;; Create the arc in model space
(setq arc (vla-AddArc modelSpace center 10 (/ PI 3) (/ (* PI 3) 4)))
;; Define the arc length dimension
(setq arcPoint (vlax-3d-point 0 15 0)
startPoint (vla-get-StartPoint arc)
endPoint (vla-get-EndPoint arc))
;; Create the arc length dimension in model space
(setq dimArcLength (vla-AddDimArc modelSpace center startPoint endPoint arcPoint))
(vla-ZoomExtents acadObj)
)