Category Assembly, Object ProAsmcomp

Function ProAsmcompAssemble


Description
Adds a component to a specified assembly or sub-assembly at the specified initial position.
Replacement in Object TOOLKIT: pfcAssembly::AssembleComponent
Synopsis
#include <ProAsmcomp.h>
ProErrorProAsmcompAssemble(
ProAssembly owner_assembly
/* (In)
The assembly/sub-assembly into which the component is added. NULL is a valid argument.Current Assembly is used in this case .
*/
ProSolid component_model
/* (In)
The assembly component model
*/
ProMatrix init_pos
/* (In)
The component initial position
*/
ProAsmcomp* feature
/* (Out)
handle to the newly created assembly componennt.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created an assembly =component.
PRO_TK_BAD_INPUTSThe input is invalid.
PRO_TK_UNSUPPORTEDUnsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
PRO_TK_GENERAL_ERRORComponent creation failed. Returns this error if called to add embedded component in different owner assembly.

Manual References:

  1. Assembly: Assembling Components: Assembling Components by Functions
  2. Assembly: Assembling Components: Assembling Components by Functions

Sample Code References:

  1. pt_userguide ( UgAsmcompConstraint.c )
  2. pt_userguide ( UgAsmcompConstraint.c )