Model.aic_removeparts#

Model.aic_removeparts(classifier, label, part_collection)#

Removes parts from the specified label.

Parameters:
  • classifier (hwString) – The name of the classifier.

  • label (hwString) – The label from which the selected parts need to be removed.

  • part_collection (Collection) – The collection containing the part entities to be removed.

Example#

Remove parts ID 104, 152, and 1858 from 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_removeparts(
    classifier="ShapeAICar",
    label="DoorAssembly",
    part_collection=part_col
)