change raster view to exact view

change raster view to exact view

GeorgK
Advisor Advisor
2,003 Views
4 Replies
Message 1 of 5

change raster view to exact view

GeorgK
Advisor
Advisor

Hello together,

 

how could I change the view mode from raster to exact view for all sheets and views? Does the API support it?

 

Thank you Georg

Accepted solutions (1)
2,004 Views
4 Replies
Replies (4)
Message 2 of 5

rjay75
Collaborator
Collaborator
Accepted solution

Here's some iLogic code to cycle through all the sheets and views of a drawing and unset the raster view.

 

For Each sheet As Sheet In ThisDrawing.Document.Sheets
    If sheet.DrawingViews.Count > 0 Then
        For Each view As DrawingView In sheet.DrawingViews
            view.IsRasterView = False
        Next
    End If
Next

 

Message 3 of 5

GeorgK
Advisor
Advisor

Hello Rodney,

 

thank you.

 

Georg

0 Likes
Message 4 of 5

RValdesDIM
Explorer
Explorer

For some reason I have multiple views having Raster view activated even though it is not checked.  This produces many problems and the only fix I have found is editing each view checking the Raster view box then clicking OK; ONLY to have to go back into the edit view and uncheck Raster view then click OK does it finally reset to exact view.

 

I see the code discussed here and wondered what the code is to turn on Raster view for all views in the file and then I can follow with the turn off all.

 

Any help would be greatly appreciated!!

0 Likes
Message 5 of 5

DavidWarta
Advocate
Advocate

Currently I have the same problem. Saving the drawing, close inventor and reopen the drawing seemed to have done the trick for me this time.

 

D. Warta

Van Halteren Technologies B.V.

 

D.Warta
Van Halteren Technologies Boxtel B.V., Netherlands
0 Likes