Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
llorden4
in reply to: emanuel.c

Might try a change with how you're declaring & defining the variable.  There's also a Boolean to lookup if there's a current flat sheet metal pattern you can look up and use, I don't recall it off the top of my head.

 

Dim smlength as Single 'or Double
Dim smwidth as Single 'or Double
Try
smlength = SheetMetal.FlatExtentsLength
smwidth = SheetMetal.FlatExtentsWidth
Catch
End Try
 

   

Autodesk Inventor Certified Professional