Message 1 of 2
Getting hole tolerance by Inventor API using c++

Not applicable
02-05-2012
12:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to get hole tolerance by Inventor API using c++ but the value returned is not correct.
the code is:
Parameter* diam = m_Feature->GetHoleDiameter(); // m_Feature is a given HoleFeature
double tol = diam->Tolerance; // returned 1.0
BSTR str = diam->Tolerance->HoleTolerance; // returned "0".
// The correct value is 2.89
How can I get the correct tolerance value?
Thanks,
Naor.