iLogic to edit Document Setting for Dimension Text Alignment

iLogic to edit Document Setting for Dimension Text Alignment

m.childsEUQMG
Explorer Explorer
433 Views
2 Replies
Message 1 of 3

iLogic to edit Document Setting for Dimension Text Alignment

m.childsEUQMG
Explorer
Explorer

I want to use an event trigger to always change the "Dimension Text Alignment" setting to "View Position and Maintain Centered".  I changed all my drawing templates to this setting, but don't know of a better way to change this setting for all previous drawings when copied.

0 Likes
Accepted solutions (1)
434 Views
2 Replies
Replies (2)
Message 2 of 3

theo.bot
Collaborator
Collaborator
Accepted solution

you can use this:

 

Dim oDoc As DrawingDocument
oDoc = ThisDoc.Document 

'view position
'oDoc.DrawingSettings.DimensionTextAlignment = DimensionTextAlignmentEnum.kMaintainViewPositionAlignment

'view position and maintain centered
oDoc.DrawingSettings.DimensionTextAlignment = DimensionTextAlignmentEnum.kMaintainCenteredTextAlignment

''percentage of dimensionline
'oDoc.DrawingSettings.DimensionTextAlignment = DimensionTextAlignmentEnum.kMaintainAllTextAlignment

 

Message 3 of 3

m.childsEUQMG
Explorer
Explorer

Thanks @theo.bot! Exactly what I was looking for! Works great!

0 Likes