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.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.