指定视口的着色视口打印模式。 支持的平台:仅窗口 属性值只读:不 类型:枚举AcShadePlot
言论没有额外的评论。 例子工 务 局: Sub Example_ShadePlot()
' This example creates a paper space viewport,
' makes it active, and then sets it to plot as displayed.
Dim newPViewport As AcadPViewport
Dim centerPoint(0 To 2) As Double
Dim height As Double
Dim width As Double
height = 30#
width = 40#
centerPoint(0) = 30#: centerPoint(1) = 30#: centerPoint(2) = 0#
' Create a paper space Viewport object
ThisDrawing.ActiveSpace = acPaperSpace
Set newPViewport = ThisDrawing.PaperSpace.AddPViewport(centerPoint, width, height)
ZoomAll
newPViewport.Display True
ThisDrawing.MSpace = True
' Set the viewport to plot as displayed
ThisDrawing.ActivePViewport = newPViewport
newPViewport.ShadePlot = acShadePlotAsDisplayed
End Sub
Visual LISP: (vl-load-com)
(defun c:Example_ShadePlot()
;; This example creates a paper space viewport,
;; makes it active, and then sets it to plot as displayed.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq centerPoint (vlax-3d-point 30 30 0)
width 40
height 40)
;; Create a paper space Viewport object
(vla-put-ActiveSpace doc acPaperSpace)
(setq paperSpace (vla-get-PaperSpace doc))
(setq newPViewport (vla-AddPViewport paperSpace centerPoint width height))
(vla-ZoomAll acadObj)
(vla-Display newPViewport :vlax-true)
(vla-put-MSpace doc :vlax-true)
;; Set the viewport to plot as displayed
(vla-put-ActivePViewport doc newPViewport)
(vla-put-ShadePlot newPViewport acShadePlotAsDisplayed)
)
|
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-10-29 08:51
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.