Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADDING CERTAIN iPROPERTIES DETAILS TO POST PROCESSOR

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
514 Views, 3 Replies

ADDING CERTAIN iPROPERTIES DETAILS TO POST PROCESSOR

I'm looking to add certain details from the "Project" tab under iProperties to the beginning of the G-Code I post process. For example, I want the post to output these 4 things from the project tab

Part number

Description

Revision

Vendor

project capture.JPG

To be reflected in the program like this, before the tool list...

O1001

(Program Comment)

(CAP-10607-m)

(14 inch bearing cap 10607)

(Revision B)

(Riverside)

 

I hope this is an easy addition to my Okuma Mill post processor

Thanks in advance!

 

3 REPLIES 3
Message 2 of 4
FTKnur
in reply to: Anonymous

Hi @Anonymous,

 

you can add this to your postprocessor (under the machine setup in onOpen() / replace the program comment):

 

 

    //iProperties

    var partNumber = getGlobalParameter("inventor:Part Number");
	var description = getGlobalParameter("inventor:Description");
    var revision = getGlobalParameter("inventor:Revision Number");
    var vendor = getGlobalParameter("inventor:Vendor");
	  
	if (programComment) {
    writeComment(programComment);
	}
	  
	if (partNumber) {
    writeComment(localize("Partnumber: ") + partNumber);
    }
	  
    if (description) {
    writeComment(localize("Description: ") + description);
    }
	  
    if (revision) {
    writeComment(localize("Revision: ") + revision);
    }
	  
    if (vendor) {
    writeComment(localize("Vendor: ") + vendor);
    }

 

 

Message 3 of 4
Anonymous
in reply to: FTKnur

THANK YOU!

Message 4 of 4
chris.dicksonWK9BY
in reply to: FTKnur

Hello again!

Been a while. I'm looking to do this again but for Fusion 360 since Autodesk is no longer supporting Inventor Cam. I looked at the dumper file for F360 and it doesn't look like there is anywhere to pull this data from? When I post from Fusion using this script I get an error on this line. Is there a way to pull model properties in Fusion to be posted in the program header?

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

Post to forums  

Autodesk Design & Make Report