Posting NC code: file name expression bug

Posting NC code: file name expression bug

wheezy11
Participant Participant
806 Views
5 Replies
Message 1 of 6

Posting NC code: file name expression bug

wheezy11
Participant
Participant

This just started today, but I generally use an expression in my file name, so that I would have the program name/number show up and then the program comment afterwards, just to save a bit of typing in the long run. Currently when I try to do anything more than manually typing a file name or one referenced data point, it just says <UNSPECIFIED> in the file name field and I have to manually change it. See attached screenshot, that SHOULD show up as "6565 - Test part". I can manually type that, I'm not using a character that isn't allowed in a file name, and again, this worked until just today. Any ideas anyone, or is this just a bug and I've got to wait for it to be resolved?

 

wheezy11_0-1734733502842.png

 

0 Likes
Accepted solutions (1)
807 Views
5 Replies
Replies (5)
Message 2 of 6

Warmingup1953
Advisor
Advisor

Perhaps use Underscore and no spaces.

0 Likes
Message 3 of 6

wheezy11
Participant
Participant

Thanks for the suggestion. Doesn't work with underscores, doesn't work with a hyphen, no hyphen and a space, no space, or putting the variables on a different line from one another either unfortunately.

0 Likes
Message 4 of 6

viacheslav.shapilov
Autodesk
Autodesk
Accepted solution

As I understand, you want to concatenate string parameters. It can be done using "+" operation:

nc_program_name + ' - ' + nc_program_comment

"-" assumes, that you are trying to subtract one number from another. It does not work for strings.

viacheslavshapilov_0-1736161630281.png

 


Viacheslav Shapilov
Developer Technical Services
Autodesk Developer Network


0 Likes
Message 5 of 6

wheezy11
Participant
Participant

Thank you @viacheslav.shapilov ! I know I had set up the parameters right sometime in the past, but it cleared them so I didn't have the format right. That did it.

0 Likes
Message 6 of 6

aloKVDTB
Participant
Participant

'O' + nc_program_name + '(' + nc_program_comment +')'

aloKVDTB_1-1757073553929.png

 

0 Likes