CadInsertTableRequest
from OpenCAD2D import CadInsertTableRequest
class CadInsertTableRequest(System.Object) ยท CadInsertTableRequest in the .NET reference
The Insert Table dialog of TABLE, as data its command and the window share: the window fills it and says what was pressed in CadInsertTableRequest.Action; the command asks the insertion point (or the window) and makes the table. A test fills it with no window.
Constructors
__init__
def __init__(self, document: CadDocument) -> None
Makes the request of a document, as TABLE opens its dialog: the current table style, and the columns and rows used last.
Properties and fields
Action
@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None
Gets or sets what was pressed: OK, or Cancel.
ByWindow
@property
def ByWindow(self) -> bool
@ByWindow.setter
def ByWindow(self, value: bool) -> None
Gets or sets whether the table is placed by a window (Specify window) rather than by its insertion point.
ColumnWidth
@property
def ColumnWidth(self) -> float
@ColumnWidth.setter
def ColumnWidth(self, value: float) -> None
Gets or sets the width of each column; 63.5 as AutoCAD's dialog opens.
Columns
@property
def Columns(self) -> int
@Columns.setter
def Columns(self, value: int) -> None
Gets or sets the number of columns, 1 or more; 5 as AutoCAD's dialog opens.
DataLink
@property
def DataLink(self) -> str
@DataLink.setter
def DataLink(self, value: str | None) -> None
Gets or sets the name of the data link the table is made from ("From a data link"); empty for a table started from nothing. The table then has the rows and columns of the link's data, and CadInsertTableRequest.Columns and CadInsertTableRequest.DataRows are not read.
DataRows
@property
def DataRows(self) -> int
@DataRows.setter
def DataRows(self, value: int) -> None
Gets or sets the number of data rows, 1 or more, under the title and the header; 4 as the design opens it.
Document
@property
def Document(self) -> CadDocument
Gets the document the table is made in.
FromDataExtraction
@property
def FromDataExtraction(self) -> bool
@FromDataExtraction.setter
def FromDataExtraction(self, value: bool) -> None
Gets or sets whether the table is made from the data of the drawing's objects ("From object data in the drawing (Data Extraction)"): the Data Extraction wizard follows.
RowHeightLines
@property
def RowHeightLines(self) -> int
@RowHeightLines.setter
def RowHeightLines(self, value: int) -> None
Gets or sets the height of a data row in lines of its text, 1 or more.
TableStyle
@property
def TableStyle(self) -> str
@TableStyle.setter
def TableStyle(self, value: str | None) -> None
Gets or sets the table style the table is written in; Standard is made where the drawing has none.