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 have to include project path in posted program

18 REPLIES 18
SOLVED
Reply
Message 1 of 19
karan30782
1215 Views, 18 Replies

I have to include project path in posted program

Hi ! Everyone !

 

I was trying to add the parameter in postprocessor like (project path) , but I didn't found it anywhere.

(nc program path) parameter is there in postprocessor setting.

I have to show full path of the project in the posted program.

I'll be thankful to, who help me.sshot-29.jpgsshot-30.jpgsshot-31.jpg

18 REPLIES 18
Message 2 of 19
cfastNJWK6
in reply to: karan30782

I don't believe that project path is a parameter available in the post-processor.  The project path is available in the Powermill macro language.  You could write a macro that stores the project path as a user parameter and then create a udp_ parameter in the post to get the project path.

Message 3 of 19
karan30782
in reply to: cfastNJWK6

Hello !  cfastNJWK6

First of all _ thank you for your solution..

But I need help a little bit more, actually I'm quite new to post file editing. So I don't know properly "how to create a udp parameter in the post to get the project path"

 

I will be more thankful if you guide me to set it up.

Please forgive me if I'm disturbing work.

Awaiting your reply...

 

Thanks again !!!

Message 4 of 19
cfastNJWK6
in reply to: karan30782

Go to the parameters tab in AMPPU and right click, then click "Add Standard Parameter".  If you want the new parameter to automatically pull information from Powermill, it has to start with "udp_".  In your case, I would call it "udp_ProjectPath".  Then create a user parameter in Powermill called "ProjectPath".  The value assigned to the "ProjectPath" parameter in PowerMill, will automatically be passed to the "udp_ProjectPath" parameter in the post file.  Then you just have to put the upd_ProjectPath parameter in a comment block in your post for the value to appear in the posted code.

Message 5 of 19
karan30782
in reply to: cfastNJWK6

Thanks a lot,

But it's still undone.

If you don't mind, could you please connect through teamviewer and help me ??

 

 

THANKS IN ADVANCE !!!!!

Message 6 of 19
cfastNJWK6
in reply to: karan30782

I'm not able to connect through a live session, but if you upload your post and a sample project I'd be happy to make some edits and send it back to you.

Message 7 of 19
karan30782
in reply to: cfastNJWK6

Hi !

 

I have attached the required file with the reply.

I'll be always thankful you are doing to me.

 

Awaiting reply.......

 

 

Thanks !

pradeep30782@yahoo.com

Message 8 of 19
cfastNJWK6
in reply to: karan30782

Can you remove the password protection from the post file and re-upload?

Message 9 of 19
karan30782
in reply to: cfastNJWK6

oh! 

 

so sorry cfastNJWK6,

 

It's xxxxxx

Message 10 of 19
cfastNJWK6
in reply to: karan30782

I have attached an updated version of your post, a macro to create the user parameter, and some pictures for explanation.  First you must run the macro to create and fill the user parameter in PowerMill.  Then post a program with the new post.  

 

I hope this is what you were trying to achieve.

Message 11 of 19
karan30782
in reply to: cfastNJWK6

Thank you    @cfastNJWK6 

 

Thank you for all you did to help me...

I was trying to do this since last 2 weeks and you did it in just one day..... that was awesome.

The post is working as I was expecting to.

 

 

Thanks again & god bless you !!

 

Message 12 of 19
cfastNJWK6
in reply to: karan30782

Not a problem @karan30782 .  I enjoy helping others out with things that I struggled with in the past.  If you could, please accept my last post as a 'Solution' to your post.

Message 13 of 19
shirin.shah
in reply to: karan30782

Hello, 

I have gone thru all the above posts and it was indeed very useful for me as I needed to add Part Name from PowerMill to Post output and that is resolved.
However, I also need to use the Project User defined setting value to be outputted inside the NC through Post, how can we set the parameter for that?

Thanks in advance!

Message 14 of 19
rafael.sansao
in reply to: shirin.shah

Hello,

You must use a udp_ variable in Postprocessor.
Check the link:

https://forums.autodesk.com/t5/powermill-forum/replace-a-character-in-file-with-a-macro/m-p/6774411#...

Rafael Sansão

EESignature

Message 15 of 19
shirin.shah
in reply to: rafael.sansao

@rafael.sansao 

Thanks for sharing the link, but I am just a beginner in Post processor editing, so it will be helpful if you can help me little more detail.
Let me explain you my exact requirement. We are using different OP number in our route card for any part, like, OP10-MILLING, OP20-TURNING, OP30-DEBURRING, OP40-INSPECTION, OP50-MILLING_RW, like that. So for all Milling OPs, I have a single PowerMill file and in that I have mentioned the OP_SEQ number and their number as highlighted in below image. Now I want to pull this information inside NC, so can you please provide solution for this?

It would be a great help. Thanks.

PowerMill_UserDefine Setting.PNG


 

Message 16 of 19
rafael.sansao
in reply to: shirin.shah

Here's how to add the udp parameters:

Rafael Sansão

EESignature

Message 17 of 19
shirin.shah
in reply to: rafael.sansao

Thank you very much for the video, this is very helpful in deed.

I need little more than this. Is there any possibilities to set any condition with this.
At a time, we require only one output in the NC based on the operation. So can we put any condition to get either output from the list of OP SEQ? 

 

Thanks in advance

Message 18 of 19
rafael.sansao
in reply to: shirin.shah

You need to provide more details/examples of how everything should work.

I advise you to create another topic.

Rafael Sansão

EESignature

Message 19 of 19
shirin.shah
in reply to: rafael.sansao

Thanks.

I found user defined setting output to be little complicated for us, so I have changed the requirement slightly.

The new topic is created for the same. Please refer below link for the same.

 

https://forums.autodesk.com/t5/powermill-forum/how-to-include-powermill-setup-name-inside-nc-program...

 

Thanks in advance.

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

Post to forums  

Autodesk Design & Make Report