Pulling Tool Class Attributes

Pulling Tool Class Attributes

RyanEveritt94
Explorer Explorer
374 Views
1 Reply
Message 1 of 2

Pulling Tool Class Attributes

RyanEveritt94
Explorer
Explorer

Hello All,

 

I am trying to create some custom modifications to a post, so I can use my posted programs in conjunction with a Python script to automate tool sheets and Sequence sheets. In order to do this, I need to output more tool related information than is by default. Specifically I need the tool 'Product ID' and 'Flute Count' added to the tool list output during the "OnOpen" function. I have located the area in which the tool list "comment" is produced and have added the changes need based on the PostProcessor Class information available to me. The result is always "Undefinied" no matter what value i have set up. It still posts, so the tool.productID obviously exists, I just can't figure out why it won't return the actual value. If anyone could provide some more information, or direct me to documentation on the tool class specifically I would very much appreciate it!

0 Likes
375 Views
1 Reply
Reply (1)
Message 2 of 2

serge.quiblier
Autodesk
Autodesk

Hello @RyanEveritt94 

 

Sometime we can access the variables directly, sometime access is restricted to a function.

Please take a look at the functions and variables existing in the tool class object, in our API documentation:

https://cam.autodesk.com/posts/reference/classTool.html

 

Cheers


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!



Serge.Q
Technical Consultant
cam.autodesk.com
0 Likes