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: 

Macro per legare post al progetto

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
PCTECNI5
170 Views, 6 Replies

Macro per legare post al progetto

Buongiorno a tutti e buon Natale.

Esiste una macro per associare un post processor ad un progetto?

Avendo piu sessioni aperte di powermill mi sarebbe utile.

Grazie a tutti e buona giornata.

 

 

6 REPLIES 6
Message 2 of 7

E' sempre preferibile scrivere in inglese in questo forum. Ad ogni modo, personalmente non ho ben compreso la tua richiesta: potresti spiegarti meglio? Che cosa dovebbe fare la macro che chiedi?

Message 3 of 7
PCTECNI5
in reply to: PCTECNI5

Good morning, I apologize but I did not know about this rule (write in English).

Regarding the macro I would understand if there is the possibility of making sure that at the beginning of the project the post processor and the work plan with which to create the tool paths are chosen.

Thanks

Message 4 of 7

By click:

 

001.png002.png

 

By macro:

 

string piani=""

$piani= INPUT ENTITY WORKPLANE "seleziona il piano di lavoro per il post processing"

EDIT NCPROGRAM PREFERENCES WORKPLANE $piani

string post=""

$post = FILESELECT  "scegli il post processor da usare" "*.pmopt;*.pmoptz;*.opt" "C:"


EDIT NCPROGRAM PREFERENCES TAPEOPTIONS $post FORM ACCEPT SelectOptionFile

message info "fatto"
Message 5 of 7
PCTECNI5
in reply to: PCTECNI5

Thank you Mr. Borgato,

during these holidays I will try your solutions.

I usually use his first solution, and this works for me, except that having multiple powermill sessions open I think something isn't working...

It seems to me that if I go from one session to another the post processor and plans change...

Sure, I'll try it in the next days.

Thank you.

 

 

P.S. I remeber meeting her (not personally but by telephone)

 

Message 6 of 7

@PCTECNI5 wrote:

P.S. I remeber meeting her (not personally but by telephone)

 

 


the world is small, and our world is even smaller!

 

---------

You can replace the directory where to look the post processors: in my example macro refers to C, but you can put whatever you want:

 

$post = FILESELECT  "scegli il post processor da usare" "*.pmopt;*.pmoptz;*.opt" "C:"

$post = FILESELECT  "scegli il post processor da usare" "*.pmopt;*.pmoptz;*.opt" "C:\dcam"

$post = FILESELECT  "scegli il post processor da usare" "*.pmopt;*.pmoptz;*.opt" "D:\impostazioni_Powermill\post processor"

 

 

 

Message 7 of 7
PCTECNI5
in reply to: PCTECNI5

Thank mr. Borgato,

best wishes for a happy 2025, hope it can be prosperous with serenety and health.

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report