指定是否启用换行符。 支持的平台:仅窗口 属性值只读:不 类型:布尔 确定是否正在使用换表符。启用后,表格将在当前指定的高度自动中断。 言论没有额外的评论。 例子工 务 局: Sub Example_BreakHeight() ' This example creates a table object and then breaks it into ' two tables. ' Create a new table objetc in model space Dim pt(2) As Double Dim modelSpace As AcadModelSpace Set modelSpace = ThisDrawing.modelSpace Dim table As AcadTable Set table = modelSpace.AddTable(pt, 5, 5, 10, 30) table.EnableBreak = True table.BreakSpacing = 3.5 table.TableBreakHeight = 35# table.AllowManualHeights = True table.SetBreakHeight 0, 20# table.SetBreakHeight 1, 35# ZoomExtents End Sub Visual LISP: (vl-load-com) (defun c:Example_BreakHeight() ;; This example creates a table object and then breaks it into ;; two tables. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) ;; Create a new table objetc in model space (setq pt (vlax-3d-point 0 0 0)) (setq modelSpace (vla-get-ModelSpace doc)) (setq table (vla-Addtable modelSpace pt 5 5 10 30)) (vla-put-EnableBreak table :vlax-true) (vla-put-BreakSpacing table 3.5) (vla-put-TableBreakHeight table 35.0) (vla-put-AllowManualHeights table :vlax-true) (vla-SetBreakHeight table 0 20.0) (vla-SetBreakHeight table 1 35.0) (vla-ZoomExtents acadObj) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:30
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.