ADDING CERTAIN iPROPERTIES DETAILS TO POST PROCESSOR

ADDING CERTAIN iPROPERTIES DETAILS TO POST PROCESSOR

Anonymous
Not applicable
1,193 Views
3 Replies
Message 1 of 4

ADDING CERTAIN iPROPERTIES DETAILS TO POST PROCESSOR

Anonymous
Not applicable

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!

 

0 Likes
Accepted solutions (1)
1,194 Views
3 Replies
Replies (3)
Message 2 of 4

FTKnur
Collaborator
Collaborator
Accepted solution

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
Not applicable

THANK YOU!

0 Likes
Message 4 of 4

chris.dicksonWK9BY
Contributor
Contributor

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?

0 Likes