Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Post processor - write PART Z dimension

2 REPLIES 2
Reply
Message 1 of 3
julien.meklis
78 Views, 2 Replies

Post processor - write PART Z dimension

Hi,

 

I built a Centroid CNC based router machine and I woult like to put my dust shoe on a separate axis that will be driven directly by an arduino so I need the Z dimension of the part.

 

Is there a way to get this value in the NC file? I'll parse it directly with a macro.

Or maybe there is another way to do it.

 

Thanks for your answear

Julien M

2 REPLIES 2
Message 2 of 3

In my postprocessor the blockform for in machine simulation is given out by workpiece values.
Maybe you can use it!

{ // stock - workpiece
    var workpiece = getWorkpiece();
    var delta = Vector.diff(workpiece.upper, workpiece.lower);
    if (delta.isNonZero()) {
      writeBlock("BLK FORM 0.1 Z X" + xyzFormat.format(workpiece.lower.x) + " Y" + xyzFormat.format(workpiece.lower.y) + " Z" + xyzFormat.format(workpiece.lower.z));
      writeBlock("BLK FORM 0.2 X" + xyzFormat.format(workpiece.upper.x) + " Y" + xyzFormat.format(workpiece.upper.y) + " Z" + xyzFormat.format(workpiece.upper.z));
      writeComment("");
    }

 I think

var workpiece = getWorkpiece();
xyzFormat.format(workpiece.upper.z)

what you are looking for

Message 3 of 3

Ohh yes!!

 

 

I didn’t look to post processor class description but to documentation which is incomplete.

 

Thank you so much 👍

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

Post to forums  

Autodesk Design & Make Report