Description
This function allows you to add components to an assembly document.
Syntax
Status = AddComponent ( Model2Add, Position(), [Instance], [oGetCreatedEntity] );
Input: (IModel/Object) Model2Add
The model to be added to an assembly document.
Input: (Double()) Position
The translation point relative to an assembly model UCS.
Input: (IAssInstance/Object) Instance
Optional. An assembly instance under which the model will be added. By default, the model will be added under the RootInstance of assembly.
Input: (IEntity) oGetCreatedEntity Optional. The procedure of created entity. May be used to make queries on entity that created by procedure. Return: (Boolean) Status
TRUE if add procedure is successful.