Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Hi @tucker.smithAKU2X 

Remove the declaration of variable name. Or set them equal to the parameter. As it is this is setting up a variable name with no assigned value. 

 

Code with local parameter as values.

'machineName = "PRESS"
'machineNumber = 103 ul
'workCenterNumber = 6310 ul

Dim machineName As String = machineName

Dim machineNumber As String = machineNumber

Dim workCenterNumber As String = workCenterNumber

ThisDoc.Document.SaveAs(machineNumber & machineName & ".stl" , True)
 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan