Model.AE_UpdateLink#
- Model.AE_UpdateLink(collection, uid, pid=0)#
Updates the link for selected attachments using a new part.
- Parameters:
collection (Collection) – The collection containing the attachment entities.
uid (hwString) – The unique ID of the new part.
pid (unsigned int) – The ID of the new part. Required when the part is an instance.
Example#
Update the link of attachments with IDs 101, 102, 103 using a part with UID “frame_1”#import hm import hm.entities as ent model = hm.Model() attachment_collection = hm.Collection(model, ent.Attachment, [101, 102, 103]) model.AE_UpdateLink(collection=attachment_collection, uid="frame_1")