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
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!
Solved! Go to Solution.
Solved by FTKnur. Go to 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);
}
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.