Hide Table of Contents
CreateDrawViewFromModelView3 Method (IDrawingDoc)

Creates a drawing view on the current drawing sheet using the specified model view.

.NET Syntax

Visual Basic (Declaration) 
Function CreateDrawViewFromModelView3( _
   ByVal ModelName As System.String, _
   ByVal ViewName As System.String, _
   ByVal LocX As System.Double, _
   ByVal LocY As System.Double, _
   ByVal LocZ As System.Double _
) As View
Visual Basic (Usage) 
Dim instance As IDrawingDoc
Dim ModelName As System.String
Dim ViewName As System.String
Dim LocX As System.Double
Dim LocY As System.Double
Dim LocZ As System.Double
Dim value As View
 
value = instance.CreateDrawViewFromModelView3(ModelName, ViewName, LocX, LocY, LocZ)
C# 
View CreateDrawViewFromModelView3( 
   System.string ModelName,
   System.string ViewName,
   System.double LocX,
   System.double LocY,
   System.double LocZ
)
C++/CLI 
View^ CreateDrawViewFromModelView3( 
&   System.String^ ModelName,
&   System.String^ ViewName,
&   System.double LocX,
&   System.double LocY,
&   System.double LocZ
) 

Parameters

ModelName
Name of the document from which to create the view (including the .sldprt or .sldasm
filename extension) (see Remarks)
ViewName
Name of the model view from which to create the view (see Remarks)
LocX
x location of drawing view center in meters
LocY
y location of drawing view center in meters
LocZ
z location of drawing view center in meters

Return Value

Pointer to the newly create IView object

Example

Remarks

This method:

  • Places the center of the view at the specified location.

  • Uses the swAutomaticScaling3ViewDrawings setting to set the view scale. If this setting is set to True, then when a new drawing view is inserted, that view automatically scales to fit nicely on the drawing sheet. If there are no views on the sheet, the sheet scale is changed to the appropriate scale, and the view created uses the sheet scale.

The ModelName must be an open document in the current SOLIDWORKS session. The ViewName must exactly match the name of the model view. For example, the names of the standard views begin with an asterisk. This asterisk is part of the view name and must be included (for example, "*Front").

 

 

See Also

Availability

SOLIDWORKS 2005 SP2, Revision Number 13.2


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   CreateDrawViewFromModelView3 Method (IDrawingDoc)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2015 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.