Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Hi @RoyWickrama_RWEI as @Anonymous mentioned, with your current code you're only referencing one of the DrawingDimension sub-types.

The code in this post takes a broader approach and demonstrates how to change the colour of any overridden dimension regardless of its type:

 

https://forums.autodesk.com/t5/inventor-customization/macro-add-in-to-show-override-dimensions-in-sketch/m-p/7603923/highlight/true#M77816

 

You can combine the two to get the desired effect.