Hide Table of Contents
Save3 Method (IModelDoc2)

Saves the current document.

.NET Syntax

Visual Basic (Declaration) 
Function Save3( _
   ByVal Options As System.Integer, _
   ByRef Errors As System.Integer, _
   ByRef Warnings As System.Integer _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim Options As System.Integer
Dim Errors As System.Integer
Dim Warnings As System.Integer
Dim value As System.Boolean
 
value = instance.Save3(Options, Errors, Warnings)
C# 
System.bool Save3( 
   System.int Options,
   out System.int Errors,
   out System.int Warnings
)
C++/CLI 
System.bool Save3( 
&   System.int Options,
&   [Out] System.int Errors,
&   [Out] System.int Warnings
) 

Parameters

Options

Mode in which to save the document as defined in swSaveAsOptions_e

Errors

Errors that caused the save operation to fail as defined in swFileSaveError_e

Warnings

Warnings or extra information generated during the save operation as defined in swFileSaveWarning_e

Return Value

True if the save was successful, false if not

Example

Remarks

If saving the file...

Then...

Succeeds

  • Return value is true

  • Errors argument is 0

Fails

  • Return value is false

  • Errors argument contains a bitwise OR of the error codes that were generated when saving the document

You can find the masks to check against in the swFileSaveError_e enumeration.

Even if the file is saved successfully, there might be warnings or information that occur during the save that might interest you. The Warnings argument contains a bitwise OR of the warning codes that were generated when saving the document. You can find the masks to check against in the swFileSaveWarning_e enumeration.

If you do not want SOLIDWORKS to return...

Then pass in null or Nothing for...

Error information

Errors argument

Warning information

Warnings argument

This method results in FileSaveNotify being sent to any application listening.

See IModelDocExtension::SaveAs if this is new document, this document is to be saved to a file with a new name, or this document is to be saved to a version of a particular format.

 

See Also

Availability

SOLIDWORKS 2001Plus FCS, Revision Number 10.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:   Save3 Method (IModelDoc2)
*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) 2016 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.