Model.AE_Realize#

Model.AE_Realize(collection, options)#

Realize attachments.

Parameters:
  • collection (Collection) – The collection containing the attachment entities.

  • options (int) –

    0 - Reacquire hole info while keeping any previous part/component info.

    1 - Reacquire hole, part, and comp info (helpful after a part swap).

Example#

Realize all attachments in the model#
import hm
import hm.entities as ent

model = hm.Model()

attachment_collection = hm.Collection(model, ent.Attachment)

model.AE_Realize(collection=attachment_collection, options=0)