Model.AE_AttachmentControlCreateFromAnother#

Model.AE_AttachmentControlCreateFromAnother(new_name, old_name, reserved)#

Duplicate an attachment control.

Parameters:
  • new_name (hwString) – The name of the new attachment control to create.

  • old_name (hwString) – The name of the existing attachment control to duplicate.

  • reserved (int) – Reserved for future development. Must be set to 1.

Example#

Create an attachment control “RigidSpider_2” from “RigidSpider_1”#
import hm
import hm.entities as ent

model = hm.Model()

model.AE_AttachmentControlCreateFromAnother(
    new_name="RigidSpider_2", old_name="RigidSpider_1", reserved=1
)