Macro syntax help

Macro syntax help

bgundrum
Advocate Advocate
579 Views
3 Replies
Message 1 of 4

Macro syntax help

bgundrum
Advocate
Advocate

Something is wrong with this code, please help. 

 

		IF entity_exists ('Toolpath''FOLDER','VERICUT TOOL OUTPUT') {
		DELETE TOOLPATH FOLDER "Toolpath\VERICUT TOOL OUTPUT"
			} ELSE {
				PRINT "THIS FOLDER DOES NOT EXIST"

 

0 Likes
Accepted solutions (1)
580 Views
3 Replies
Replies (3)
Message 2 of 4

TK.421
Advisor
Advisor
Accepted solution

try

IF folder_exists('Toolpath\Vericut Tool Output') {

   DELETE TOOLPATH FOLDER 'Toolpath\Vericut Tool Output'

} ELSE {

  something else

}

 

tested. disregard my next post


the numbers never lie
Message 3 of 4

TK.421
Advisor
Advisor

or you might need to convert it to a string:

 

Capture.PNG


the numbers never lie
0 Likes
Message 4 of 4

bgundrum
Advocate
Advocate

@TK.421 

Thank you for the help.