ユーザが異なるレイアウトに切り替えた後に開始されます。
サポートされているプラットフォーム: Windows のみ
VBA:
object.LayoutSwitched(LayoutName)
タイプ: Document
有効なコンテナ オブジェクトを評価するオブジェクト式この場合、有効なコンテナはドキュメントだけです。
タイプ: 文字列; ハンドラへの入力
切り替えられたレイアウトの名前
モーダル ダイアログが表示されている間、イベントは発生しません。
VBA:
Private Sub AcadDocument_LayoutSwitched(ByVal LayoutName As String)
' This example intercepts a drawing LayoutSwitched event.
'
' This event is triggered when the user switches to a different
' drawing layout view.
'
' To trigger this example event: Open a drawing and change its layout view
'
' For example: Switch the drawing from Model view to Layout1 view
' Use the "LayoutName" variable to determine the which layout view we changed to
MsgBox "The drawing layout was just changed to: " & LayoutName
End Sub
Visual LISP:
Not available