Hello
Here is the matter:
changing tool into a toolpath and running the EDIT DATAFROMTOOL command, it edit the coolant and so if coolant is NONE it is reset like beeing EDIT COOLANT RESET.
I use a macro to edit data from tool but it includes the coolant reset.
I want coolant to be not changed.
so
If I want it to be EDIT COOLANT MARK when I run EDIT DATAFROMTOOL How can exclude coolant from the editing?
Thanks to who cam help
greetings
Danny
Solved! Go to Solution.
Solved by rafael.sansao. Go to Solution.
you could save the previous value and then restore it at the end of the macro like this:
//store the current coolant
string $previousCoolant = entity('toolpath','').Coolant.Value
//do your stuff
//changes the coolant to the previeous value
string $cmd = 'EDIT COOLANT ' + $previousCoolant
docommand $cmd
it get an error.
the macro is not usefull for me, may be It miss something My knowledge is not sufficientto manage it correctly
can you hep me please?
thanks
greetings
Danny
In your macro, replace:
EDIT DATAFROMTOOL ;
By:
STRING $Coolant = $entity('toolpath','').Coolant.Value
EDIT DATAFROMTOOL ;
$entity('toolpath','').Coolant.Value = $Coolant
STRING $cmd = 'EDIT COOLANT ' + $Coolant
DOCOMMAND $cmd
Rafael Sansão
Very positively impressive.
I am so gratefull for your result.
Thanks a lot
Danny
Can't find what you're looking for? Ask the community or share your knowledge.