Category Drawings and detail, Object ProDwgtable

Function ProDwgtableRetrieve


Description
Retrieves a stored Creo Parametric drawing table and places it in the specified drawing. This function is the same as the Creo Parametric command sequence Table tab, Table From File. It enables you to add a table to a drawing without having to specify all the table properties in your programs. This function in similar to the function ProDwgtableByOriginRetrieve() except that it places the table in the drawing at the selected point using the upper-left corner of the table as the attachment point.
Replacement in Object TOOLKIT: pfcTableOwner::RetrieveTable
Synopsis
#include <ProDwgtable.h>
ProErrorProDwgtableRetrieve(
ProDrawing drawing
/* (In)
The drawing into which to retrieve the table.
*/
ProName file_name
/* (In)
Name of the Table file, excluding the extension.
*/
ProPath file_path
/* (In)
Path to the Table file, relative to working directory.
*/
int file_version
/* (In)
Table file version, where 0 represents latest version.
*/
ProPoint3d position
/* (In)
The coordinates of the point on the drawing sheet, where the table must be placed. The upper-left corner of the table will be placed at this point on the drawing sheet. Specify the value in screen coordinates.
*/
ProSolid solid
/* (In)
The solid model from which data must be copied into the table. If NULL, the table will be created with no data.
*/
ProSimprep* simp_rep
/* (In)
The handle to the simplified representation in the solid, from which data must be copied into the table. If this is NULL and solid is not NULL, all the model data will be copied into the table.
*/
ProDwgtable* table
/* (Out)
The handle to the retrieved table.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
Any other valueThe function failed.

Manual References:

  1. Model-Based Definition and Drawing Tables: Reading MBD or DrawingTables
  2. Model-Based Definition and Drawing Tables: Reading MBD or DrawingTables

Sample Code References:

  1. pt_examples ( TestDrawTbl.c )