I want to automatically add X and Y dimensions to hatched areas in a SolidWorks drawing. The workflow should be simple for the user: they open the drawing, click a button in my add-in, and all hatched regions get their width (X) and height (Y) dimensions automatically.
Is it possible to detect the boundaries of hatches and insert these dimensions programmatically using the SolidWorks API? If yes, what would be the recommended approach?
