指定された位置に Point オブジェクトを作成します。
サポートされているプラットフォーム: Windows のみ
VBA:
RetVal = object.AddPoint(Point)
タイプ: Block、ModelSpace、PaperSpace
このメソッドが適用されるオブジェクト。
アクセス: 入力のみ
タイプ: バリアント型(3 要素の倍精度浮動小数点数型配列)
作成される点の座標。
追加の注意はありません。
VBA:
Sub Example_AddPoint()
' This example creates a point in model space.
Dim pointObj As AcadPoint
Dim location(0 To 2) As Double
' Define the location of the point
location(0) = 5#: location(1) = 5#: location(2) = 0#
' Create the point
Set pointObj = ThisDrawing.ModelSpace.AddPoint(location)
ZoomAll
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_AddPoint()
;; This example creates a point in model space.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
;; Define the location of the point
(setq location (vlax-3d-point 5 5 0))
;; Create the point
(setq modelSpace (vla-get-ModelSpace doc))
(setq pointObj (vla-AddPoint modelSpace location))
(vla-ZoomAll acadObj)
)