OnSection Tool Parameters Not Overwritten For New Sections?

OnSection Tool Parameters Not Overwritten For New Sections?

jonathanBUCVS
Advocate Advocate
419 Views
5 Replies
Message 1 of 6

OnSection Tool Parameters Not Overwritten For New Sections?

jonathanBUCVS
Advocate
Advocate

Ive attached a sample from the dump post. Here are some relevant excerpts from a spot drill:

 

tool.insertType=3 (TURNING_INSERT_ISO_C)
tool.inscribedCircleDiameter=0.39370078740157477
tool.noseRadius=0.03937007874015748
 
clearly a spot drill is not a Cxxx turning insert with a nose radius. Im guessing these values dont get overwritten if a different tool in a different section doesnt have that property. Seems wrong to me tho. 
 
Ill grab the correct value I need from onParameter('operation:tool_cornerRadius') for now
0 Likes
Accepted solutions (1)
420 Views
5 Replies
Replies (5)
Message 2 of 6

viacheslav.shapilov
Autodesk
Autodesk

Hello, @jonathanBUCVS . Could you please share Fusion project with us for looking into the issue. Because, from the output it is unclear what is wrong: Fusion or postprocessor.


Viacheslav Shapilov
Developer Technical Services
Autodesk Developer Network


0 Likes
Message 3 of 6

jonathanBUCVS
Advocate
Advocate

Attached is a sample Fusion file as well as the Dump post output, using the latest Dump post. 

 

Ill use T3, a spot drill, as an example, lines 380 to 385:
  tool.insertType=3 (TURNING_INSERT_ISO_C)
  tool.holderType=0 (TURNING_INSERT_USER_DEFINED)
  tool.compensationMode=0 (TOOL_COMPENSATION_INSERT_CENTER)
  tool.inscribedCircleDiameter=0.39370078740157477
  tool.edgeLength=0
  tool.noseRadius=0.03937007874015748
 
those values are of course not applicable to a spot drill.
 
(I am guessing that because the tool type Spot Drill doesnt have values for tool.insertType, for example, that the value is not being overwritten by the new tool, and also not being set to 0. I found this out when working with the Excel setup sheet post, so this is probably coming from the Fusion side).
Message 4 of 6

viacheslav.shapilov
Autodesk
Autodesk
Accepted solution

Looked into the issue. And seems, these values are default, they are not passed from Fusion.

What I can suggest - don't use these values, if it is not a turning tool. You can check it by `tool.isTurningTool()` function.


Viacheslav Shapilov
Developer Technical Services
Autodesk Developer Network


0 Likes
Message 5 of 6

jonathanBUCVS
Advocate
Advocate

Thats unexpected, but OK, at least I know whats going on now. Thanks for looking into that. 

 

While we are sort of on the topic of onSection variables, I posted a few weeks ago about the variables tool.type, tool.insertType and tool.holderType asking if there was a cross reference for the numerical values that the function outputs to what type of tool it actually is. 

 

For example, I have figured out through trial and error that tool.Type=35 is a boring bar and =30 is a threading bar. Is there a published table of all the options? I didnt see anything in the Post Processor Guide pdf. 

 

Here is a link to my original post: https://forums.autodesk.com/t5/fusion-manufacture/list-for-tool-holdertype-variables/m-p/12635017#M1...

0 Likes
Message 6 of 6

viacheslav.shapilov
Autodesk
Autodesk

Sure, we have an online postprocessor's API documentation. Here is tool type for example: Tool Class Reference (autodesk.com)
Also, you can take a look, how names are printed in dump.cps post.
If you want to switch behaviour depending on tool type you can check if it is equal to specific type like this:

if (tool.type == TOOL_BORING_BAR) {
  // Do something special
}

 


Viacheslav Shapilov
Developer Technical Services
Autodesk Developer Network


0 Likes