iLogic Drawing Checking Code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an iLogic rule (I got from "From the Trenches with Autodesk Inventor" then modified slightly) that cycles through all dimensions on a drawing and if it finds a dimension that has been overridden it will turn that dimension green. I also want to do the same thing with a parts list on a drawing and with tags on a drawing. But I'm having difficulty figuring out how to find the parts list and then how to cycle through it to find overridden items. Same thing with tags.
below is the rule for cycling through dims and turning overridden ones green....
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
Dim oDrawingDims As DrawingDimension
Dim oColor As Color
For Each oDrawingDims In oDoc.ActiveSheet.DrawingDimensions
oColor = ThisApplication.TransientObjects.CreateColor(0, 255, 0)
If oDrawingDims.HideValue = True _
Or oDrawingDims.ModelValueOverridden = True Then
oDrawingDims.Text.Color = oColor
Else
oColor = ThisApplication.TransientObjects.CreateColor(0, 0, 0)
oColor.ColorSourceType = ColorSourceTypeEnum.kLayerColorSource
oDrawingDims.Text.Color = oColor
End If
Next