Dimension Text Alignment - Apply Drawing Document Setting Changes To Multiple Drawings

Dimension Text Alignment - Apply Drawing Document Setting Changes To Multiple Drawings

NOEL_GETTINGBYCZTUC
Advocate Advocate
1,023 Views
6 Replies
Message 1 of 7

Dimension Text Alignment - Apply Drawing Document Setting Changes To Multiple Drawings

NOEL_GETTINGBYCZTUC
Advocate
Advocate

Hi,

 

Is there any way through Inventor or Vault (or an add-in) that I can apply a Document Setting change to multiple drawing files at once?

 

About 6 months ago, I used some company standard drawing templates when creating the new templates for my project. Unknown to me the default dimension text alignment setting in Tools > Document Settings > Drawing was set to "View Position" (which I don't know why anyone would ever want).  I now have some ~600 drawings that I'd like to change this setting on to "Percentage of Dimension Line".

 

My design is intended to be a master which is then copied using Copy Design in Vault to produce new model and drawing sets. The aim of which is to produce new design applications and/or versions with different proportions. It would not be unusual for one application to be 3 x the overall size of another.

 

Obviously, the current setting results in dimension text positions on the new drawing files that do follow the geometry well, making for a lot of additional manual editing of something that IMO should update parametrically.

 

Thanks in advance,

Noel

0 Likes
Accepted solutions (1)
1,024 Views
6 Replies
Replies (6)
Message 2 of 7

CCarreiras
Mentor
Mentor

Hi!

 

You can try this tool in the image below, but when i tested it in the past, it will only update the titleblock, margins... not the styles.
Regarding document settings never tried, so test it and give some feedback.

CCarreiras_0-1714746160684.png

 

CCarreiras

EESignature

Message 3 of 7

NOEL_GETTINGBYCZTUC
Advocate
Advocate

No, the solution proposed above by @CCarreiras did not work for the Dimension Text Alignment setting. Any other suggestions folks? Autodesk?

0 Likes
Message 4 of 7

johnsonshiue
Community Manager
Community Manager

Hi! I suspect this will need to be done using Inventor API or iLogic. I don't think Drawing Resource Transfer Wizard deals with document settings. Please take a look at the following discussion.

 

https://forums.autodesk.com/t5/inventor-programming-ilogic/dimension-text-alignment-with-ilogic/td-p...

 

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 5 of 7

NOEL_GETTINGBYCZTUC
Advocate
Advocate

OK so I see that this can be done via an iLogic rule when using the After Open Document trigger.

It remains to be seen whether the iLogic rule will trigger and apply before the dimensions update.

 

The next question is, how to open and save ~600 drawings without having to do so manually?

This is somewhat complicated by the fact that I work with external drafts people (overseas co-workers, external contractors, etc) and having to roll out an iLogic rule to them would be cumbersome.

0 Likes
Message 6 of 7

johnsonshiue
Community Manager
Community Manager

Hi! To pursue iLogic solution, I suggest you go to Inventor Programming forum (https://forums.autodesk.com/t5/inventor-programming-ilogic/bd-p/120).

Below is a related discussion on how to run an external rule to open multiple drawing files. It should be doable. You need to create an external rule and link it to a drawing you already open. Then simply go through each document to make the necessary change in the Doc Settings.

 

https://forums.autodesk.com/t5/inventor-forum/how-to-apply-external-ilogic-rule-to-all-opened-docume...

 

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 7 of 7

NOEL_GETTINGBYCZTUC
Advocate
Advocate
Accepted solution

The example link you gave required the user to open a batch of drawings before running the rule, so it's of no use to me. Doing ~600 drawing using that method would literally take days.

 

At this point I already have an iLogic rule written which changes the Document Setting for an individual drawing and is set to trigger on drawings After Open Document.

ThisDoc.Document.DrawingSettings.DimensionTextAlignment = kMaintainAllTextAlignment

But to update the ~600 drawings automatically, I'll just use Inventor Add-In iLogic Rule Batch Tool to do one project folder (~200 drawings) at a time. I'm surprised you didn't suggest it.