Model.library_sync#

Model.library_sync(collection, update_signal=True)#

Synchronizes library information from a connected library. This includes information such as Major Revision, Study Revision and Library Revision.

Parameters:
  • collection (Collection) – The collection containing the entities to synchronize. Currently supported for parts and subsystems.

  • update_signal (bool) – Indicates whether to trigger the Part Browser refresh.

Example#

Synchronize the parts with ID 22, 36, 44 with the opened library#
import hm
import hm.entities as ent

model = hm.Model()

part_col = hm.Collection(model,ent.Part,"id=22,36,44")

model.library_sync(part_col)