ShadePlot 属性 (ActiveX)
指定视口的着色视口打印模式。 支持的平台:仅限 Windows 属性值只读:不 类型:枚举AcShadePlot
言论没有其他评论。 例子VBA: 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 可视化 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, 2024-12-15 22:20
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.