CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

ActiveX 开发指南

相关分类

阴影图属性 (ActiveX)

2023-1-3 06:33| 发布者: admin| 查看: 193| 评论: 0|来自: AutoCAD

摘要: 指定视口的着色视口打印模式。

指定视口的着色视口打印模式。

支持的平台:仅窗口

签名

工 务 局:

object.ShadePlot
对象

类型:光伏港

此属性适用的对象。

属性值

只读:

类型:枚举AcShadePlot

  • acShadePlotAsDisplayed:模型空间视图的打印方式与其显示方式相同。
  • acShadePlotHidden:对删除了隐藏线的空间视图图进行建模,而不考虑显示。
  • acShadePlotRendered:无论显示如何,都对渲染的空间视图进行建模。
  • acShadePlotWireframe:将空间视图建模为线框,而不考虑显示。

言论

没有额外的评论。

例子

工 务 局:

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)
)

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-12 07:39

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部