レイアウトまたは印刷環境設定の回転角度を指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: acPlotRotation 列挙型
回転角度は、Z 軸から原点を見下ろしたときに左回りを正の値とする、オブジェクトの WCS の X 軸との相対値です。
このプロパティに対する変更は図面が再作図されないと分かりません。Regen メソッドを使用して図面を再作図してください。
VBA:
Sub Example_PlotRotation() ' This example reads and modifies the PlotRotation ' Layout value. ' When finished, this example resets the value back to ' its original value. Dim ACADLayout As ACADLayout Dim originalValue As Integer ' Get the layout object Set ACADLayout = ThisDrawing.ActiveLayout ' Read and display the original value originalValue = ACADLayout.PlotRotation MsgBox "The PlotRotation value is set to: " & originalValue ' Modify the PlotRotation preference by toggling the value ACADLayout.PlotRotation = ac180degrees MsgBox "The PlotRotation preference has been set to: " & ACADLayout.PlotRotation ' Reset the preference back to its original value ACADLayout.PlotRotation = originalValue MsgBox "The PlotRotation preference was reset back to: " & originalValue End Sub
Visual LISP:
(vl-load-com) (defun c:Example_PlotRotation() ;; This example reads and modifies the PlotRotation ;; Layout value. ;; When finished, this example resets the value back to ;; its original value. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) ;; Get the layout object (setq ACADLayout (vla-get-ActiveLayout doc)) ;; Read and display the original value (setq originalValue (vla-get-PlotRotation ACADLayout)) (alert (strcat "The PlotRotation value is set to: " (itoa originalValue))) ;; Modify the PlotRotation preference by toggling the value (vla-put-PlotRotation ACADLayout ac180degrees) (alert (strcat "The PlotRotation preference has been set to: " (itoa (vla-get-PlotRotation ACADLayout)))) ;; Reset the preference back to its original value (vla-put-PlotRotation ACADLayout originalValue) (alert (strcat "The PlotRotation preference was reset back to: " (itoa originalValue))) )