Hide Table of Contents
UpdateStandardViews Method (IModelDocExtension)

Changes the specified standard view to the current model view.

.NET Syntax

Visual Basic (Declaration) 
Function UpdateStandardViews( _
   ByVal ViewName As System.String, _
   ByVal ViewId As System.Integer _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim ViewName As System.String
Dim ViewId As System.Integer
Dim value As System.Boolean
 
value = instance.UpdateStandardViews(ViewName, ViewId)
C# 
System.bool UpdateStandardViews( 
   System.string ViewName,
   System.int ViewId
)
C++/CLI 
System.bool UpdateStandardViews( 
&   System.String^ ViewName,
&   System.int ViewId
) 

Parameters

ViewName
Name of the standard model view to change; empty string to use ViewId (see Remarks)
ViewId
View ID as defined in swStandardViews_e; -1 to use ViewName (see Remarks)

Return Value

True if the standard model view update is successful, false if not

Remarks

This method works with parts and assemblies only.

If you set both ViewName and ViewId, then ViewId takes precedence if the two arguments do not resolve to the same standard model view.

This method does not support the following standard model views:

  • swStandardViews_e.swDimetricView
  • swStandardViews_e.swIsometricView
  • swStandardViews_e.swTrimetricView
 

See Also

Availability

SolidWorks 2014 FCS, Revision Number 22.0


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:   UpdateStandardViews Method (IModelDocExtension)
*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) 2014 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.