Getting hole tolerance by Inventor API using c++

Getting hole tolerance by Inventor API using c++

Anonymous
Not applicable
489 Views
1 Reply
Message 1 of 2

Getting hole tolerance by Inventor API using c++

Anonymous
Not applicable

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.

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

whunter
Advocate
Advocate

Hi Naor --

 

Wrong forum, I think you'll have more luck here:

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

0 Likes