User's Guide > Assembly: Basic Assembly Access > Locations of Assembly Components
Locations of Assembly Components
 
Functions Introduced:
The function ProAsmcomppathTrfGet() provides the transformation matrix that describes the coordinate transformation between the coordinate system of an assembly component and that of the root assembly. As its name implies, its input is a ProAsmcomppath object, so it can be applied to a component at any level within an assembly hierarchy. It has an option to provide the transformation from bottom to top, or from top to bottom. (To apply the transformation, use the function ProPntTrfEval() or ProVectorTrfEval(), described in the section Coordinate Systems.)
In effect, this function describes the current position and orientation of the assembly component in the root assembly.
Use the function ProAsmpathProarrayFree() to free the memory allocated to the ProArray of type ProAsmpath.
Example 2: Finding the Position of a Component
The sample code in the file UgAsmcompTransfGet.c located at <creo_toolkit_loadpoint>/protk_appls/pt_userguide/ptu_asm shows a function that finds the matrix that describes the position of an assembly component in its parent assembly.
È stato utile?