API 文档 > Assembly > Object ProAsmcomp > Function ProAsmcompAssemble
Function ProAsmcompAssemble
Description
Adds a component to a specified assembly or sub-assembly at the specified initial position.
Replacement in Object TOOLKIT:
Synopsis
#include <ProAsmcomp.h>
ProAsmcompAssemble
(
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
The function successfully created an assembly =component.
Model is in read-only state.
The input is invalid.
Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
Component creation failed. Returns this error if called to add embedded component in different owner assembly.
Sample Code References
这对您有帮助吗?