User's Guide > Drawings > Drawing Tables > Retrieving Drawing Tables
Retrieving Drawing Tables
 
Methods and Properties Introduced
The method pfcTableOwner.RetrieveTable() retrieves a table specified by the pfcTableRetrieveInstructions data object from a file on the disk. It returns the retrieved table. The data object contains information on the table to retrieve and is returned by the method pfcTableRetrieveInstructions.Create().
The method pfcTableRetrieveInstructions.Create() creates the pfcTableRetrieveInstructions data object that describes how to retrieve a drawing table using the methods pfcTableOwner.RetrieveTable() and pfcTableOwner.RetrieveTableByOrigin(). The method returns the created instructions data object.
The parameters of the instruction object pfcTableRetrieveInstructions are:
FileName—Name of the file containing the drawing table.
Position—Coordinates of the point on the drawing sheet, where the retrieved table must be placed. You must specify the value in screen coordinates.
You can also set the parameters for pfcTableRetrieveInstructions data object using the following properties:
pfcTableRetrieveInstructions.FileName—Sets the name of the drawing table. You must not specify the extension.
pfcTableRetrieveInstructions.Path—Sets the path to the drawing table file. The path must be specified relative to the working directory.
pfcTableRetrieveInstructions.Version—Sets the version of the drawing table that must be retrieved. If you specify NULL the latest version of the drawing table is retrieved.
pfcTableRetrieveInstructions.Position—Sets the coordinates of the point on the drawing sheet, where the table must be placed. You must specify the value in screen coordinates.
pfcTableRetrieveInstructions.ReferenceSolid—Sets the model from which data must be copied into the drawing table. If this argument is passed as NULL, an empty table is created.
pfcTableRetrieveInstructions.ReferenceRep—Sets the handle to the simplified representation in a solid, from which data must be copied into the drawing table. If this argument is passed as NULL, and the argument solid is not NULL, then data from the solid model is copied into the drawing table.
The method pfcTableOwner.RetrieveTable() retrieves a table specified by the pfcTableRetrieveInstructions data object from a file on the disk. It returns the retrieved table. The upper-left corner of the table is placed on the drawing sheet at the position specified by the pfcTableRetrieveInstructions data object.
The method pfcTableOwner.RetrieveTableByOrigin() also retrieves a table specified by the pfcTableRetrieveInstructions data object from a file on the disk. The origin of the table is placed on the drawing sheet at the position specified by the pfcTableRetrieveInstructions data object. Tables can be created with different origins by specifying the option Direction, in the Insert Table dialog box.
Was this helpful?