図面全体を再作図し、すべてのオブジェクトのスクリーン座標とビュー解像度を再計算します。
サポートされているプラットフォーム: Windows のみ
VBA:
object.Regen WhichViewports
タイプ: Document
このメソッドが適用されるオブジェクト。
アクセス: 入力のみ
タイプ: AcRegenType 列挙型
戻り値はありません。
また、Regenは、図面データベースのインデックスを付け直すことによって、画面表示やオブジェクト選択が最適な状態で行えるようにします。
VBA:
Sub Example_Regen()
' The following example regenerates the complete drawing
ThisDrawing.Regen acAllViewports
' The following example regenerates the active viewport in the current drawing
ThisDrawing.Regen acActiveViewport
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_Regen()
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
;; The following example regenerates the complete drawing
(vla-Regen doc acAllViewports)
;; The following example regenerates the active viewport in the current drawing
(vla-Regen doc acActiveViewport)
)