Model.ME_ModulesHierarchyLibrarySync#
- Model.ME_ModulesHierarchyLibrarySync(part_entity, options)#
Finds library related information for a part from a connected part library. Library related information such as Major Revision, Study Revision and Library Revision are then updated in Part Browser and Property Area.
- Parameters:
part_entity (Entity) – The object describing the part entity for which information is needed.
options (hwString) –
The list of input options, passed as a comma separated string enclosed in quotes. Valid options are:
libraryname=<value>
The name of the currently connected part library.
updatesignal=<value>
0 - and Property Area refresh is not done
1 - and Property Area refresh is done
Example#
Update library related information for part with name “myPart” use library MyLibrary and updated Part Browser and Property Area#import hm import hm.entities as ent model = hm.Model() model.ME_ModulesHierarchyLibrarySync( part_entity=ent.Part(model, "name=myPart"), options="updatesignal=1, libraryname=MyLibrary", )