Access to "tool.shaft[]" object.

monozukuri.daisuki.higucchan
Advocate

Access to "tool.shaft[]" object.

monozukuri.daisuki.higucchan
Advocate
Advocate

Thanks for the help.


When I set an optional tapered neck on a milling tool, I believe the setting is stored in this object, but I don't know how to access it.


Is it not possible to access it by writing "tool.shaft[1]"?


I want to use the parameter value of the taper height.
スクリーンショット 2024-04-22 192502.png

 

0 Likes
Reply
Accepted solutions (1)
244 Views
2 Replies
Replies (2)

viacheslav.shapilov
Autodesk
Autodesk
Accepted solution

Hello, @monozukuri.daisuki.higucchan 

Here is the Shaft Class Reference (autodesk.com).

"tool.shaft.getLength(1)" should return what you want. Obviously, you need to check if there are enough sections in the shaft before by "if (tool.shaft.getNumberOfSections() > 0)". Otherwise, it will error.


Viacheslav Shapilov
Developer Technical Services
Autodesk Developer Network


Thank you from the bottom of my heart.

Taper necks were recognized😊

 

スクリーンショット 2024-04-22 223231.png

0 Likes