Create principal view

Creator
Creator

Hi. How can I create principal view in code (see image below)?

 

Origin image I created by code:

ModelLinks modelLinks = _draftDoc.ModelLinks;
ModelLink modelLink = modelLinks.Add(_fullName);
DrawingViews drawingViews = _sheet.DrawingViews;

DrawingView drawingView = drawingViews.AddPartView(
    From: modelLink,
    Orientation: orientation,
    Scale: scale,
    x: StUtils.MillimetersToMeters(x),
    y: StUtils.MillimetersToMeters(y),
    ViewType: PartDrawingViewTypeConstants.sePartDesignedView);

drawingView.CaptionDefinitionTextPrimary = caption;

How to create a second view (see figure below)? Which method to invoke for an object drawingViews.AddXXXXX ?

 

2015-11-08_2327.png

2 REPLIES

Re: Create principal view

Phenom
Phenom

Hi:

 

Click the link below to post the question in the Developer forum:

http://community.plm.automation.siemens.com/t5/forums/postpage/board-id/SEDeveloperForum

 

To answer your question, here are links to in-depth tutorials that show how to create principal views:

 

using VB.Net

using CSharp

 

~Tushar Suradkar

www.CADVertex.com

 

Re: Create principal view

Creator
Creator