Category Drawings and detail, Object ProDwgtable

Function ProDwgtableCellComponentGet


Description
Returns the full path to the component referenced in a cell in a repeat region of a drawing table.

Note: this function will not return a valid result if the cell has the attribute "NO DUPLICATE" or "NO DUPLICATE/LEVEL" as there is no unique path available. In this case use the function ProDwgtableCellRefmodelGet().

Replacement in Object TOOLKIT: pfcTable::GetCellComponentModel
Synopsis
#include <ProDwgtable.h>
ProErrorProDwgtableCellComponentGet(
ProDwgtable* table
/* (In)
The drawing table.
*/
int column
/* (In)
The cell column. Column indices start at 1.
*/
int row
/* (In)
The cell row. Row indices start at 1.
*/
ProAsmcomppath* component
/* (Out)
The full path to the component referenced by the cell.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_E_NOT_FOUNDThe table cell does not contain a reference to a component model.
PRO_TK_GENERAL_ERRORAn error occurred and the function failed to construct the component path. This could be because there is no unique path to a single component available.
See Also
ProDwgtableCellRefmodelGet

Manual References:

  1. Model-Based Definition and Drawing Tables: Repeat Regions
  2. Model-Based Definition and Drawing Tables: Repeat Regions

Sample Code References:

  1. pt_examples ( TestDrawTbl.c )