Model.ME_ModuleOccurrenceRepresentationSet2#
- Model.ME_ModuleOccurrenceRepresentationSet2(part_entity, key)#
Sets a representation of a part or a part assembly. Part occurrence should be given. Specific function will make selected representation current.
- Parameters:
part_entity (Entity) – The object describing the part entity for which to set the representation.
key (hwString) – The representation key (name).
Example#
Set the representation of part ID 5 to “ RepCAD “#import hm import hm.entities as ent model = hm.Model() model.ME_ModuleOccurrenceRepresentationSet2( part_entity=ent.Part(model, 5), key="RepCAD" )