指定要在命令窗口中显示的文本行数。(已过时) 支持的平台:仅窗口 属性值只读:不 类型:整数 一个正整数,表示要在命令窗口中显示的文本行数。 言论没有额外的评论。 例子工 务 局: Sub Example_DockedVisibleLines() ' This example returns the current setting of ' DockedVisibleLines. It then changes the value, and finally ' it resets the value back to the original setting. Dim preferences As AcadPreferences Dim currDockedVisibleLines As Integer Set preferences = ThisDrawing.Application.Preferences ' Retrieve the current DockedVisibleLines value currDockedVisibleLines = preferences.Display.DockedVisibleLines MsgBox "The current value for DockedVisibleLines is " & preferences.DISPLAY.DockedVisibleLines, vbInformation, "DockedVisibleLines Example" ' Change the value for DockedVisibleLines preferences.Display.DockedVisibleLines = 15 MsgBox "The new value for DockedVisibleLines is " & preferences.DISPLAY.DockedVisibleLines, vbInformation, "DockedVisibleLines Example" ' Reset DockedVisibleLines to its original value preferences.Display.DockedVisibleLines = currDockedVisibleLines MsgBox "The DockedVisibleLines value is reset to " & preferences.Display.DockedVisibleLines, vbInformation, "DockedVisibleLines Example" End Sub Visual LISP: (vl-load-com) (defun c:Example_DockedVisibleLines() ;; This example returns the current setting of ;; DockedVisibleLines. It then changes the value, and finally ;; it resets the value back to the original setting. (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; Get the Display preferences object (setq ACADPref (vla-get-Display preferences)) ;; Retrieve the current DockedVisibleLines value (setq currDockedVisibleLines (vla-get-DockedVisibleLines ACADPref)) (alert (strcat "The current value for DockedVisibleLines is " (itoa currDockedVisibleLines))) ;; Change the value for DockedVisibleLines (setq newValue 15) (vla-put-DockedVisibleLines ACADPref newValue) (alert (strcat "The new value for DockedVisibleLines is " (itoa newValue))) ;; Reset DockedVisibleLines to its original value (vla-put-DockedVisibleLines ACADPref currDockedVisibleLines) (alert (strcat "The DockedVisibleLines value is reset to " (itoa currDockedVisibleLines))) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:23
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.