Problem with overlay view creation

denis.semeniuc
Advocate
Advocate

Problem with overlay view creation

denis.semeniuc
Advocate
Advocate

Hi,

 

i try to create the overlay view and i recived the error.

problem with positional view. i dont have positional view. 

oView2 = oSheet.DrawingViews.AddOverlayView(oViewISO, "[Principale]", "Par défaut", 0, DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle, 0)

 if i create one all works.

you have the solutions?

 

0 Likes
Reply
Accepted solutions (1)
209 Views
2 Replies
Replies (2)

WCrihfield
Mentor
Mentor
Accepted solution

Hi @denis.semeniuc.  I pretty much never use overlay views where I work, but it seems like the main point of creating overlay views is for comparing different positional representations of the same model.  But the 'manual creation' documentation' does say that we should be able to create them without a positional representation.  However, the Inventor API documentation for those two methods (links below) both appear to require us to specify the name of a positional representation, otherwise they will fail/error, and do not mention the ability to leave that value empty or Null.  You could check within the Inventor Ideas forum to see if anyone is requesting an updated or alternative version of these methods that would not require that input.  If you find one, you can vote for it, but if not found, you could create a post about it.  Not sure it would be that popular though.

DrawingViews.AddOverlayView

DrawingViews.AddOverlayView2

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes

denis.semeniuc
Advocate
Advocate

THANKS

0 Likes