Model.ME_ModuleOccurrenceRepresentationLoad#
- Model.ME_ModuleOccurrenceRepresentationLoad(part_entity, options)#
Loads a representation of a part or part assembly using options. The definition will typically result in the use of readers to import either CAD, solver or HM files.
- Parameters:
part_entity (Entity) – The object describing the part entity to load.
options (hwString) –
List of input options, passed as a comma separated string enclosed in quotes. Valid options are:
usecase=<label>
The label of the use case to load, with default being a typical value.
Example#
Load the representation for part with ID 10 for its default use case#import hm import hm.entities as ent model = hm.Model() model.ME_ModuleOccurrenceRepresentationLoad( part_entity=ent.Part(model, 10), options="usecase=default" )