- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Moved from original post for clarity:
Using iLogic to change model tolerance
I have a problem similar to the one described in the previous post. I am using the following statements to set the tolerance for a hole feature:
Dim ThisHole As HoleFeature
Set ThisHole = oPartDoc.SelectSet.Item(1)
Call ThisHole.HoleDiameter.Tolerance.SetToFits(kLimitsFitsShowSizeTolerance, "P7", "")
As the screenshot below shows, everything appears to work OK when I execute the statement.
The upper/lower limits show as 7.991/7.976, as they should. However, as the picture below shows, when I dimension the hole on a drawing with the "use tolerance from part" option, the deviations applied to the diameter are off by a factor of 10.
I assume this is due to Inventor's internal unit being centimeters instead of millimeters, but I can't figure out how to correct the issue in my code, since there is no place to specify units in the parameters.
Can anyone help me out with this?
(Apologies if I have posted this in an inappropriate location. I am new to this forum, and am unfamiliar with the proper protocols.)
Solved! Go to Solution.