How to get tool information

Hi to all, I'm new to nxopen.

I try to write simple program that retrive the tool information (tool diameter, tool material etc..)

So after several hours i still could not understand how i get this information...

Will glad for idies.....thanks.

// I look for something like this...
double diameter = tool.getInformation("Diameter");

CAM isn't my area of expertise, but after a quick look through the API reference, my best guess is that you will need to use a "ToolBuilder" object. There are several ToolBuilder subtypes, you will need to pick the correct type according to the type of tool that you want to query.

Thanks for the answer Smiley Happy

I find that the best way to do that is to get MillToolBuilder object --> initialize that object to current tool builder that exist in our session --> and get the wanted data from it.

EXAMPLE -

MillToolBuilder millToolBuilder = workPart.camsetup().camgroupCollection().createMillToolBuilder(tools[i])

(tools[] - the array that hold the list of tools)