Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DrawingArrangeDimensionsCmd for 2D Sketch

0 REPLIES 0
Reply
Message 1 of 1
_KarlH
166 Views, 0 Replies

DrawingArrangeDimensionsCmd for 2D Sketch

Hey all,

 

Executing both DrawingArrangeDimensionsCmd and oDrawDim.CenterText within a Drawing IDW works well, but I'm struggling to find a similar method that arranges the dimensions of a 2D Sketch within a part (or the 3D Annotations of a part).

 

_KarlH_0-1655450109559.png

 

Searching these forums, I've found various topics that work with various sketch dimension/3D annotation aspects, but unfortunately don't touch on the actual problem of arranging existing messy 2D Dimensions.

 

_KarlH_1-1655450511169.png

 

Has anyone any technique to recommend for the arrangement of Dimensions within a 2D Sketch or 3D Annotations of a Part/Assy? 

 

If there's no auto-magic method, one manual method I'm thinking of would be to cycle through 2D Dimensions that have a specific Dimension Name, and then group certain dims that match a naming schema and offset/space them out accordingly.

So for example, D1 could be named D1_OS1 (for offset group 1) and D2_OS2 (for offset group 2), and then both of those dimensions are offset by a multiplier according to their group, by using a For Each Item in ModelDims loop (and naming checking each dim).

 

I'm just not sure how to adjust the particular dimension objects to achieve the desired arrangement offset in a 2D Sketch. 🤔

Labels (3)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report