Modifying Component Properties
The function
ProAsmcompTypeSet() enables you to set the type of a component.
The function
ProAsmcompFillFromMdl() copies the template model into the model of the component.
|
Note:
|
The function returns the error PRO_TK_UNSUPPORTED when the model to which the template model is being copied is an unsupported model. For example, it is an embedded model.
|
Use the function
ProAsmcompMakeUniqueSubasm() to create a unique instance of a sub-assembly by specifying the path of the sub-assembly. The function
ProAsmcompRmvUniqueSubasm() removes the instance of the sub-assembly.
The function
ProAsmcompSetPlaced() forces
Creo Parametric to consider a particular component to be placed or unplaced.
Example 1: Listing the Members of an Assembly
The sample code in the file UgAsmCompVisit.c located at <creo_toolkit_loadpoint>/protk_appls/pt_userguide/ptu_asmt, recursively lists the components of an assembly and writes the name of the solid for each component.