Page 1 of 1

50 Character limit with "File name:"

PostPosted: Sat Nov 04, 2017 3:03 pm
by Dan911
There's a 50 character limit in field # 895 in the Diagnostics screen for "File Name". If using this field in plugin or macro it will cause and error if 50 characters is exceeded and not handled properly. It would be great if increased to at least 75 character. For now a message window "File name exceeded 50 character limit" will have to do.

Dan

Re: 50 Character limit with "File name:"

PostPosted: Sat Nov 04, 2017 4:12 pm
by cncdrive
There is a function available in both the macro and the plugin interface: string Getgcodefilename()
The function returns the full filename with path without any truncation.

Re: 50 Character limit with "File name:"

PostPosted: Sat Nov 04, 2017 4:44 pm
by Dan911
Works great, Thank you.

Re: 50 Character limit with "File name:"

PostPosted: Sat Nov 04, 2017 7:07 pm
by cncdrive
Hi Dan, No problem.
You're not the first one who asked about this is why this function already exist. :)