Vla-put-arcpoint
- 構文
- (vla-put-arcpoint vla-object pt1)
- 機能
- 弧状寸法の円弧上の点を指定する。
- 引数
-
- vla-object … DimArcLength の VLA オブジェクト
- pt1 … 円弧上の3D座標点
- 戻り値
- サンプル
(vl-load-com) (defun c:Example_get_arcpoint() ;; 円弧と円弧寸法を作成して円弧寸法の点を返す (setq cadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument cadObj)) (setq modelSpace (vla-get-ModelSpace doc)) ;; 円弧を作成 (setq center (vlax-3d-point 0 0 0)) (setq arc (vla-AddArc modelSpace center 10 (/ PI 3) (/ (* PI 3) 4))) ;; 寸法を定義 (setq arcPoint (vlax-3d-point 0 15 0) startPoint (vla-get-StartPoint arc) endPoint (vla-get-EndPoint arc)) ;; 弧長寸法をモデルに作成 (setq dimArcLength (vla-AddDimArc modelSpace center startPoint endPoint arcPoint)) (vla-ZoomExtents cadObj) (vlax-safearray->list (vlax-variant-value (vla-get-arcpoint dimArcLength))) ) (defun c:Example_put_arcpoint() ; 円弧寸法の点を指示 (setq obj (vlax-ename->vla-object (car (entsel)))) (vla-get-arcpoint obj (vlax-3d-point (getpoint)) )
関連事項