How can i add a DesignViewRepresentation to the standard DrawingView?
Not applicable
10-20-2020
05:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How can i ADD the DesignViewRepresentation to a Drawingview?
if i use my code, the Designviewrepresentation replaces the content in the Standard DrawingView instead of adding it.
RepresentationsManager dViewRepMgr = assemblyCompDef.RepresentationsManager;
DesignViewRepresentation dViewRep = dViewRepMgr.DesignViewRepresentations[1];
// Here the view is replaces instead of added to the standard view:
// i tried this 3 variants:
oView.SetDesignViewRepresentation(dViewRep.Name);
oOccurrence.SetDesignViewRepresentation(dViewRep.Name);
ActiveSheet.DrawingViews.AddOverlayView(oView, null, dViewRep.Name, false,
DrawingViewStyleEnum.kFromBaseDrawingViewStyle, false);
Thank you for your help
Link copied