Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I need to mantein EDIT COOLANT MARK when I run EDIT DATAFROMTOOL command. How can I do?

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
benettitec01
333 Views, 4 Replies

I need to mantein EDIT COOLANT MARK when I run EDIT DATAFROMTOOL command. How can I do?

 

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

Tags (1)
Labels (1)
4 REPLIES 4
Message 2 of 5
icse
in reply to: benettitec01

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

 

Tags (1)
Message 3 of 5
benettitec01
in reply to: icse

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

Message 4 of 5

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

EESignature

Message 5 of 5

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.

Post to forums  

Autodesk Design & Make Report