hexagon logo

Is the fastener automation script demonstrated in recent webinars available to us?

Not only would it be useful to me by itself, but also in helping me ramp up with Apex scripting.
 
Thanks!
Parents
  • I tried using the hole to hole script, but this "Error" keeps popping up when trying to initialize the script. I am using a hole size of 0.5" dia, and a mesh density of 0.25. Using two rectangular surfaces with coaxial holes as a test piece, with a distance of 0.5"
     
    This is the error message:
     
    Python exception encountered running script.
    Traceback (most recent call last):
     File "<string>", line 3, in <module>
     File "F:/APEX INFO/MACRO/auCreateFasteners_inSurfaces_Hole2Hole-2-c.py", line 93, in <module>
      allMatls = apex.attribute.getMaterials([{"path":myModel.getPath()}])
    AttributeError: module 'apex.attribute' has no attribute 'getMaterials'
     
Reply
  • I tried using the hole to hole script, but this "Error" keeps popping up when trying to initialize the script. I am using a hole size of 0.5" dia, and a mesh density of 0.25. Using two rectangular surfaces with coaxial holes as a test piece, with a distance of 0.5"
     
    This is the error message:
     
    Python exception encountered running script.
    Traceback (most recent call last):
     File "<string>", line 3, in <module>
     File "F:/APEX INFO/MACRO/auCreateFasteners_inSurfaces_Hole2Hole-2-c.py", line 93, in <module>
      allMatls = apex.attribute.getMaterials([{"path":myModel.getPath()}])
    AttributeError: module 'apex.attribute' has no attribute 'getMaterials'
     
Children
No Data