モデル空間、ペーパー空間、またはブロック オブジェクトに関連付けられたレイアウトを指定します。
サポートされているプラットフォーム: Windows のみ
レイアウト オブジェクトは、モデル空間、ペーパー空間、またはブロック オブジェクトの印刷設定を含みます。
指定のブロックに関連付けられていない名前の付いた印刷設定は PlotConfiguration オブジェクトとして保存されます。
VBA:
Sub Example_Layout()
' This example references the Layout object obtained from model space.
' We then display information from the Layout object.
Dim Layout As ACADLayout
' Attach to Layout object
Set Layout = ThisDrawing.ModelSpace.Layout
MsgBox "We now have access to the properties and methods of the model space Layout object!"
' Retrieve the name of the model space Layout
MsgBox "The name of the model space Layout is: " & Layout.name
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_Layout()
;; This example references the Layout object obtained from model space.
;; We then display information from the Layout object.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
;; Attach to Layout object
(setq Layout (vla-get-Layout (vla-get-ModelSpace doc)))
(alert "We now have access to the properties and methods of the model space Layout object!")
;; Retrieve the name of the model space Layout
(alert (strcat "The name of the model space Layout is: " (vla-get-Name Layout.name)))
)