Hide Table of Contents
CreateViewport3 Method (IDrawingDoc)

Creates a an empty view in a drawing.

.NET Syntax

Visual Basic (Declaration) 
Function CreateViewport3( _
   ByVal LowerLeftX As System.Double, _
   ByVal LowerLeftY As System.Double, _
   ByVal SketchSize As System.Short, _
   ByVal Scale As System.Double _
) As View
Visual Basic (Usage) 
Dim instance As IDrawingDoc
Dim LowerLeftX As System.Double
Dim LowerLeftY As System.Double
Dim SketchSize As System.Short
Dim Scale As System.Double
Dim value As View
 
value = instance.CreateViewport3(LowerLeftX, LowerLeftY, SketchSize, Scale)
C# 
View CreateViewport3( 
   System.double LowerLeftX,
   System.double LowerLeftY,
   System.short SketchSize,
   System.double Scale
)
C++/CLI 
View^ CreateViewport3( 
&   System.double LowerLeftX,
&   System.double LowerLeftY,
&   System.short SketchSize,
&   System.double Scale
) 

Parameters

LowerLeftX
x value for lower-left coordinate for the view
LowerLeftY

y value for lower-left coordinate for the view

SketchSize

Approximate number of entries

Scale

Scale to use for the view

Return Value

Pointer to the newly created IView object

Remarks

 

You cannot set the size of an empty view or resize it. Instead, resizing of the view occurs automatically when you add sketch or model geometry to the view.

 

The center of the empty view is computed from the specified lower-left corner and default values for the upper-right corner. The latter is set to (0.001, 0.001). The center is computed as follows:

 

center = lower-left_corner + (upper-right_corner - lower-left_corner) / 2.0

 

To move the view, use IView::Position or IView::IPosition.

 

The default SketchSize value is 0. If you are creating more than 500 sketch entities, specify a value instead of using the default.

 

After you use this method, you can create sketch entities in the new view. One advantage is that users can move the entities around the drawing by dragging the view instead of selecting all the entities.

 

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:   CreateViewport3 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) 2013 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.