cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

read value from tolerance table

Robert_K
10-Marble

read value from tolerance table

I must read values from tolerance Table (for example shaft).

Java user guide has following text:

All the user specified information for a tolerance is saved in a tolerance table for
ISO and DIN standards. You can retrieve and set the data for tolerance tables
using Creo Object TOOLKIT Java methods. 

I cann't find this methods and cann't read values from tables. It is the ITEM_TABLE?

ModelItems tables = model.ListItems(ModelItemType.ITEM_TABLE);

Thank you

2 REPLIES 2

Hi Robert

 

In Toolkit and Object Toolkit you can ask for the defined table

Also you can ask the dimension if it is tolerated and from which class.

 

You can get more informations about standard tolerances from Creo by these:

 

 

wfcWSession::GetDefaultTolerance returns the default value for the specified linear or angular tolerance value. The default value is set in the Creo Parametric configuration files. Specify the tolerance type and number of decimal places to identify the tolerance value as the input arguments.

All the user specified information for a tolerance is saved in a tolerance table for ISO and DIN standards. You can retrieve and set the data for tolerance tables using Creo Object TOOLKIT C++ methods. A model with ISO or DIN standard has an extra attribute called the tolerance class which determines the general coarseness of the model. The method wfcWSolid::GetModelClass returns the type of coarseness in a model using the enumerated type wfcModelClass. The valid values are:
  •  wfcMODELCLASS_NONE
  •  wfcMODELCLASS_FINE
  •  wfcMODELCLASS_MEDIUM
  •  wfcMODELCLASS_COARSE
  •  wfcMODELCLASS_VERY_COARSE
 
AFAIK there is no direct possibility to read or write a complete tolerance table except a Mapkey. But if you only want to get the current used tolerances on a drawing, or something like this it is possible with the given commands.
 
Br,
Eike

also you mean that text in user guide:

You can retrieve and set the data for tolerance tables
using Creo Object TOOLKIT Java methods.  

it is lie

 

Thank you for your time!

 

Announcements


Top Tags