向图形中添加表格。 支持的平台:仅窗口 签名工 务 局: RetVal = object.AddTable(InsertionPoint, NumRows, NumColumns, RowHeight, ColWidth) 言论没有额外的评论。 例子工 务 局: Sub Example_AddTable() ' This example adds a table in model space Dim MyModelSpace As AcadModelSpace Set MyModelSpace = ThisDrawing.ModelSpace Dim pt(2) As Double Dim MyTable As AcadTable Set MyTable = MyModelSpace.AddTable(pt, 5, 5, 10, 30) ZoomExtents End Sub Visual LISP: (vl-load-com) (defun c:Example_AddTable() ;; This example adds a table in model space (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (setq pt (vlax-3d-point 0 0 0)) (setq modelSpace (vla-get-ModelSpace doc)) (setq MyTable (vla-Addtable modelSpace pt 5 5 10 30)) (vla-ZoomExtents acadObj) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:35
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.