Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a rule for modifying the View Justification on all open drawings.
Sub main
Dim oInvApp As Inventor.Application = ThisApplication
For i As Integer = 1 To oInvApp.Documents.Count
Dim oDoc As Document = oInvApp.Documents(i)
If System.IO.Path.GetExtension(oDoc.FullFileName) <> ".idw" Then Continue For
For Each oSheet In oDoc.Sheets
For Each oView In oSheet.DrawingViews
oView.ViewJustification = kCenteredViewJustification
Next
Next
Next i
End Sub
But I get the following error message:
It worked on a couple of drawings but not onanother set of drawings.
The difference between those sets is: the first set of drawings had no details or cross section.
Does anyone know what is missing ?
Tobias
The Netherlands
Inventor Pro 2026, Vault Pro 2026, AutoCad Electrical 2026.
If a response answers your question, please use ACCEPT SOLUTION to assist other users later.
The Netherlands
Inventor Pro 2026, Vault Pro 2026, AutoCad Electrical 2026.
If a response answers your question, please use ACCEPT SOLUTION to assist other users later.
Solved! Go to Solution.