@dutt.thakar
I've attached them for you to try.
I should also mention that I'm using Inventor 2021.
@matt_jlt
In my screencast you can see that I'm getting an error with your rules. The error only occurs when there are sick dimensions. If there are none, the rule completes without any problem.
By selection I meant the way I select holes and lines to get the Dimension Set to attach to where I want. (see screencast from 0.08s - 0.10s)
https://knowledge.autodesk.com/community/screencast/84175e8f-12ef-493a-a0e3-23b88455d8ca
@dutt.thakar , @matt_jlt
I've also made a simple msgbox to show me the 'oMember.Attached' property behaviour.
It seems that, if there are no sick members, all members return a value of 'True'.
If there is at least 1 sick member, all members return a value of 'False'.
Screencast below and the code I used.
https://knowledge.autodesk.com/community/screencast/e8f88b98-f292-484c-93f5-0b3fbf3fed68
Dim oDoc As DrawingDocument
oDoc = ThisDoc.Document 'ThisServer.ActiveDocument
Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet
Dim oCM As Centermark
For Each oDrawingDim As OrdinateDimensionSet In oSheet.DrawingDimensions.OrdinateDimensionSets
For Each oMember As OrdinateDimension In oDrawingDim.Members
MsgBox("Value: " & oMember.Text.Text & vbNewLine & vbNewLine & _
"Attached: " & oMember.Attached.ToString, , "Dimension:")
Next
Next
I hope i'm being dumb about this, otherwise this seems like a dumb behaviour.
João Silva
Mechanical Engineer