Share

CustomTable Object


Description

The CustomTable object allows the creation of user-defined tables with the specified number of rows and columns, headings, content, and so on. See the Custom Tables overview for more information.

Methods

Name Description
AddBendTagsToView Method that adds bend tags to drawing view.
AddLink Method that adds a link to the specified document. If a link to a foreign file type already exists, the link is replaced if the input is also a foreign file.
CopyTo Method that copies the table to another sheet, either within the same document or in another document.
Delete Method that deletes the CustomTable.
Export Method that saves the custom table to an external file.
GetReferenceKey Method that generates and returns the reference key for this entity.
MergeCells Merges the table cells.
Renumber Method that renumbers all rows in the table. This method applies only to bend tables and returns an error for all other tables.
Sort Method that sorts the table.
Update Method that updates the custom table if it is out of date with respect to its linked files. The method returns a success and returns trivially if no update is required.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
AttributeSets Property that returns the AttributeSets collection object associated with this object.
BendDirectionReversed Gets and sets whether the bend direction is reversed.
ColumnHeaderTextStyle Gets and sets the text style used for the column titles (headers).
Columns Property that returns the Columns collection object.
DataTextStyle Gets and sets the text style used for the contents of the table.
HeadingPlacement Gets and sets the placement position of the table heading.
Layer Gets and sets the layer used by the table.
MaximumRows Gets and sets the maximum number of rows per section.
MergedCells Returns all MergedCell objects in a table.
NumberOfSections Gets and sets the number of columns to wrap.
OverrideFormat Gets and sets the table format.
Parent Property that returns the parent object from whom this object can logically be reached.
Position Specifies the position of the table.
RangeBox Property that returns a Box2D object which contains the lower-left and upper-right corners of a rectangle that is guaranteed to enclose this object.
ReferencedDocumentDescriptor Property that returns either a DocumentDescriptor object (for Inventor references) or a FileDescriptor object (for foreign file references). The property returns Nothing if no links have been specified for the table.
Rotation Gets and sets the absolute rotation angle of the table in radians.
RowGap Property that returns the row gap.
RowLineSpacing Gets and sets the spacing between the rows.
Rows Property that returns the Rows collection object.
ShowTitle Gets and sets whether to show the title of the table.
Style Gets and sets the style associated with this object.
TableDirection Gets and sets the vertical direction of the table.
TableSource Property that returns the source type for this table.
Title Specifies the title of the table.
TitleTextStyle Gets and sets the text style used for the title of the table.
Type Returns an ObjectTypeEnum indicating this object's type.
WrapAutomatically Gets and sets whether to split the table equally.
WrapLeft Gets and sets whether the sections of the table are moved to the left or right when the number of rows increase.

Accessed From

Cell.Parent, Column.Parent, CustomTable.CopyTo, CustomTables.Add, CustomTables.AddBendTableWithOptions, CustomTables.AddConfigurationTable, CustomTables.AddCSVTable, CustomTables.AddExcelTable, CustomTables.Item, MergedCell.Parent, Row.Parent

Samples

Name Description
Custom Table - create This sample demonstrates how to create a custom table.
Create a Bend Table This sample demonstrates the creation of a bend table in a drawing from a sheet metal part.
Create a Configuration Table This sample demonstrates the creation of a configuration (iPart/iAssembly) table in a drawing from a factory document.
Create a drawing Excel Table This sample demonstrates the creation of a table based on an Excel file in a drawing.

Version

Introduced in version 9

Was this information helpful?