ペーパー空間の高度を指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 倍精度浮動小数点数型
ペーパー空間の高度
現在の高度は、3D 点が必要なのに X と Y の値しか指定されていないときに使用される Z 値です。現在の高度は、モデル空間とペーパー空間で別々に維持されます。
VBA:
Sub Example_ElevationPaperSpace() ' This example changes the paper space elevation of the current drawing ' and then resets it to the original value. Dim currElevation As Double currElevation = ThisDrawing.ElevationPaperSpace MsgBox "The current paper space elevation is " & ThisDrawing.ElevationPaperSpace, vbInformation, "ElevationpaperSpace Example" ' Change the elevation ThisDrawing.ElevationPaperSpace = currElevation + 2 MsgBox "The new paper space elevation is " & ThisDrawing.ElevationPaperSpace, vbInformation, "ElevationpaperSpace Example" ' Reset the elevation to its original value ThisDrawing.ElevationPaperSpace = currElevation MsgBox "The paper space elevation is reset to " & ThisDrawing.ElevationPaperSpace, vbInformation, "ElevationPaperSpace Example" End Sub
Visual LISP:
(vl-load-com) (defun c:Example_ElevationPaperSpace() ;; This example changes the paper space elevation of the current drawing ;; and then resets it to the original value. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (setq currElevation (vla-get-ElevationPaperSpace doc)) (alert (strcat "The current paper space elevation is " (rtos currElevation 2))) ;; Change the elevation (vla-put-ElevationPaperSpace doc (+ currElevation 2)) (alert (strcat "The new paper space elevation is " (rtos (vla-get-ElevationPaperSpace doc) 2))) ;; Reset the elevation to its original value (vla-put-ElevationPaperSpace doc currElevation) (alert (strcat "The paper space elevation is reset to " (rtos (vla-get-ElevationPaperSpace doc) 2))) )