API 文档 > Miscellaneous > Object ProTable > Function ProTableByOriginRetrieve
Function ProTableByOriginRetrieve
Description
Retrieves a stored Creo Parametric table and places it in the specified Part/Assembly/Drawing. This function is the same as the Creo Parametric command sequence Annotate tab, Table From File. It enables you to add a table to a model without having to specify all the table properties in your programs.
Synopsis
#include <ProTable.h>
ProTableByOriginRetrieve
(
ProMdl mdl
/* (In)
The model 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 model, where the table must be placed. The origin of the table will be placed at this point on the model. Tables can be created with different origins by specifying the option Direction, in the Insert Table or Table Properties dialog box. 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. This is used only when the model is drawing. For Solid this is ignored.
*/
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. This is used only when the model is drawing. For Solid this is ignored.
*/
ProTable* table
/* (Out)
The handle to the retrieved table.
*/
)
Returns
The function succeeded.
Any other value
The function failed.
这对您有帮助吗?