IDW Dimensions - Finding dimensions with tolerances not inclusive of model part size

IDW Dimensions - Finding dimensions with tolerances not inclusive of model part size

stephenrottloff7259
Advocate Advocate
548 Views
2 Replies
Message 1 of 3

IDW Dimensions - Finding dimensions with tolerances not inclusive of model part size

stephenrottloff7259
Advocate
Advocate

Hello, I did some research regarding finding and identifying IDW dimension overrides and found some useful iLogic code, which work well.  I also found that Inventor has a built in feature to find IDW dimensions which have overrides by holding shift and right clicking in an IDW and selecting "Select All Overridden Dimensions".

 

The problem is that Inventor has multiple ways of allowing an IDW dimension to be overridden.  The first two ways are the obvious "Hide Dimension Value" checkbox within the edit dimension dialog box's text tab, and also the "Override Displayed Value" check box under the edit dimension dialog box's precision and tolerance tab.  These two check boxes are detected by all of the iLogic code I have seen so far, including the built in Inventor tool to detect dimension overrides.

 

What I have found is that even if both of these check boxes are left unchecked, a user can select a stacked tolerance format for dimensions, type in a high and low value that do not include the actual parts' size like shown in the example below.  Notice the override check box is unchecked, which means the iLogic code and Inventor command can't detect that the user typed in a tolerance values which do not even include the actual model size within the upper and lower bounds.

 

Any chance of a known iLogic code that could include a check to make sure any input tolerance range must include the actual part size within the tolerance range?  I think including this functionality would be very worthwhile.  And if Inventor can do this "out of the box", I know outdated expression, just point me in the right direction.

 

Thank you,

Stephen R.

 

 

Inventor - IDW dimension overridden via tolerance input 2.png

 

 

0 Likes
549 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor

This ilogic rule will find any dimension that is of the type 'Limits - stacked' or 'Limits lineair' (the later will also overwrite the values) Found dimensions are selected and it will tell you if the upper or lower value is changed.

 

Dim doc As DrawingDocument = ThisDoc.Document
Dim sheet As Sheet = doc.ActiveSheet

For Each dimension As DrawingDimension In sheet.DrawingDimensions

    doc.SelectSet.Clear()
    doc.SelectSet.Select(dimension)

    Dim tolerance = dimension.Tolerance
    Dim msg As String = ""

    If (tolerance.ToleranceType = ToleranceTypeEnum.kLimitsStackedTolerance Or
        tolerance.ToleranceType = ToleranceTypeEnum.kLimitLinearTolerance) Then
        msg = msg & "This dimension is 'Limits - Stacked' or 'Limits - linear'."

        If (dimension.Tolerance.Upper > 0) Then
            msg = msg & " Upper tolerrance is changed."
        End If
        If (dimension.Tolerance.Lower > 0) Then
            msg = msg & " Lower tolerrance is changed."
        End If

        MsgBox(msg)
    End If
Next

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 3

stephenrottloff7259
Advocate
Advocate

Thank you for your help.  So I am seeing that the code allows one to identify dims as having a stacked or linear tolerance type enabled.  but not checking if the default dimension value falls within the typed in tolerance range?  Just making sure I am reading it correctly.

 

Thanks again,

Stephen R.

0 Likes