Model.aic_addparts#
- Model.aic_addparts(classifier, label, part_collection)#
Adds parts to the specified label.
- Parameters:
classifier (hwString) – The name of the classifier.
label (hwString) – The label to which the selected parts need to be added.
part_collection (Collection) – The collection containing the part entities to be added.
Example#
Add parts ID 104, 152, and 1858 to DoorAssembly label in the ShapeAICar classifier#import hm import hm.entities as ent model = hm.Model() part_col = hm.Collection(model,ent.Part,"id=104,152,1858") model.aic_addparts( classifier="ShapeAICar", label="DoorAssembly", part_collection=part_col )