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

Dimension Round Up fraction retrieve API in OTK / ToolKit

SOLVED
Level 6

Dimension Round Up fraction retrieve API in OTK / ToolKit

Drawing contains various dimensions with different rounded up display value set  by designers as below:

Dim   Rounded    Original

d1      154.32      154.3204

d2      150.450    150.45001

 

Dimension retrieve API is getting the Original value instead of display value which is rounded up.

Is there any API to retrieve rounded up value or round precision point location?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Dimension Round Up fraction retrieve API in OTK / ToolKit

user guide quoteuser guide...

4 REPLIES

Re: Dimension Round Up fraction retrieve API in OTK / ToolKit

You can give it a try for below approach:

 

  • default_dec_places is the configuration option for decimals.
  • use API ProConfigoptGet() to figure out value of above option
  • Value will let you know dimension to be rounded off to how many decimals
  • Post this, use c++ functionality to round up dimensions

 

You can check using API ProDimensionIsDisplayRoundedValue() whether dimension displayed as rounded value or not.

 

- HIH

Ketan

Re: Dimension Round Up fraction retrieve API in OTK / ToolKit

Hello all,

One would need to use ProDimensionDisplayedValueGet(...) to get a displayed value. Comparing this value with return of ProDimensionValueGet(...) would tell you if a dimension is in 'rounded' state. 

HIH.

FV.

Highlighted

Re: Dimension Round Up fraction retrieve API in OTK / ToolKit

functionality seems to be missing in OTK C++ API, is there any way to call ProToolKit method in C++ OTK Application?

Re: Dimension Round Up fraction retrieve API in OTK / ToolKit

user guide quoteuser guide...