StyleSheet 属性 (ActiveX)
指定布局或打印配置的样式表。 支持的平台:仅限 Windows 属性值只读:不 类型:字符串 样式表的名称。 言论没有其他评论。 例子VBA: Sub Example_StyleSheet() ' This example finds the name of the style sheet for the active layout Dim styleSheetName As String styleSheetName = ThisDrawing.ActiveLayout.StyleSheet If styleSheetName = "" Then MsgBox "There is no style sheet set for the active layout." Else MsgBox "The style sheet for the active layout is: " & styleSheetName End If End Sub 可视化 LISP: (vl-load-com) (defun c:Example_StyleSheet() ;; This example finds the name of the plot style for the active layout (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (setq styleSheetName (vla-get-StyleSheet (vla-get-ActiveLayout doc))) (if (= styleSheetName "") (alert "There is no style sheet set for the active layout.") (alert (strcat "The style sheet for the active layout is: " styleSheetName)) ) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 11:26
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.