| DEPRECATED: | Since Creo 3 |
| SUPERSEDED BY: | ProAsmcompMdlnameCreateCopy |
| Description |
| Note: This function is deprecated Use ProAsmcompMdlnameCreateCopy instead. Create a new component in the specified assembly by copying from the specified model. If no model is specified, the new component is created empty. This function either places the new component at a default location in the assembly or leaves it unplaced. This function also initializes the component handle. |
| Synopsis |
| #include <ProAsmcomp.h> |
| ProError | ProAsmcompCreateCopy | ( |
| ProAssembly assembly | |
| /*
(In) |
| The specified assembly. |
| */ |
| ProName comp_name | |
| /*
(In) |
| The new component name. |
| */ |
| ProMdlType comp_type | |
| /*
(In) |
| The new component type; must be either PRO_MDL_ASSEMBLY or PRO_MDL_PART. |
| */ |
| ProMdl template_model | |
| /*
(In) |
| Handle to model to be used as a template. If NULL, empty component will be created. |
| */ |
| ProBoolean leave_unplaced | |
| /*
(In) |
| If PRO_B_TRUE, the component is left unplaced. If PRO_B_FALSE, the component is placed by default. |
| */ |
| ProAsmcomp* p_comp_handle | |
| /*
(Out) |
| Handle to the new component to be initialized. |
| */ |
| ) |
| Returns |
|
|