指定布局或打印配置的样式表。 支持的平台:仅窗口 属性值只读:不 类型:字符串 样式表的名称。 言论没有额外的评论。 例子工 务 局: 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 Visual 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, 2025-1-8 19:26
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.