nc program output folder macro variable

nc program output folder macro variable

Anonymous
Not applicable
926 Views
7 Replies
Message 1 of 8

nc program output folder macro variable

Anonymous
Not applicable

Does anyone know the variable that would call out the current output folder under NC preferences?

0 Likes
Accepted solutions (2)
927 Views
7 Replies
Replies (7)
Message 2 of 8

rafael.sansao
Advisor
Advisor
STRING $nc_output = $widget('NCPreferences.Shell.MachinePref.Frame1.Folder').value
PRINT $nc_output

Rafael Sansão

OptiNC - www.optinc.tech

EESignature

0 Likes
Message 3 of 8

Anonymous
Not applicable
I'm trying to do this..

STRING $nc_output =
$widget('NCPreferences.Shell.MachinePref.Frame1.Folder').value PRINT
$nc_output
SETUPSHEETS FILE "$nc_output/{project}/{project}.html"

where my setup sheets would actually be created in the same directory
wheregrams to.
0 Likes
Message 4 of 8

rafael.sansao
Advisor
Advisor
Accepted solution
STRING $nc_output = $widget('NCPreferences.Shell.MachinePref.Frame1.Folder').value + '/{project}/{project}.html'
SETUPSHEETS FILE $nc_output

Rafael Sansão

OptiNC - www.optinc.tech

EESignature

0 Likes
Message 5 of 8

Anonymous
Not applicable

Perfect again. Thank you again sir.

0 Likes
Message 6 of 8

Anonymous
Not applicable

When I try to insert this line at the beginning to reset the file and delete the existing folder it does not work.

 

STRING $Reset = $widget('NCPreferences.Shell.MachinePref.Frame1.Folder').value + '/{project}'
DELETE DIRECTORY $Reset

 

Am i missing something?

 

0 Likes
Message 7 of 8

rafael.sansao
Advisor
Advisor
Accepted solution

If you use the dedduger macro, it's easy to verify that the variable path is correct:

STRING $Reset = $widget('NCPreferences.Shell.MachinePref.Frame1.Folder').value + '/' + project_pathname(1)
DELETE DIRECTORY $Reset

Rafael Sansão

OptiNC - www.optinc.tech

EESignature

Message 8 of 8

Anonymous
Not applicable

thank you...hopefully last time that I bother you, much appreciated.

0 Likes