Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

tool units in post processor

probotix
Participant

tool units in post processor

probotix
Participant
Participant

I am trying to modify my post processor.  It appears that tool.unit gives the document unit instead of the unit specified in the tool table.

0 Likes
Reply
417 Views
5 Replies
Replies (5)

boopathi.sivakumar
Autodesk
Autodesk

Hi @probotix 

tool.unit is an documant unit it always stays the you are setting while post processing

you can use this

 

if(hasParameter("operation:tool_unit")){
  toolunit = getParameter("operation:tool_unit");
}

 

 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes

probotix
Participant
Participant

That doesn't work. I am trying to do this in the tool list comments before the tool sections. I am trying to access it through the Tool class. Any other ideas.

 

0 Likes

probotix
Participant
Participant

Here is a simplified version of what I am trying to do:

	var tools = getToolTable();
    if (tools.getNumberOfTools() > 0) {
      for (var i = 0; i < tools.getNumberOfTools(); ++i) {
        var tool = tools.getTool(i);		
		toolunit = tool.getUnit();		
        writeComment(toolunit);
      }
    }
0 Likes

probotix
Participant
Participant

Hey Autodesk, where'd you go?

0 Likes

g-andresen
Consultant
Consultant

Hi,

try it in Manufacture area

 

günther

0 Likes