Hide Table of Contents
CheckpointConvertedDocument Method (ISldWorks)

Saves the specified open document if its version is older than the version of the SolidWorks product being used.

.NET Syntax

Visual Basic (Declaration) 
Function CheckpointConvertedDocument( _
   ByVal DocName As System.String _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ISldWorks
Dim DocName As System.String
Dim value As System.Integer
 
value = instance.CheckpointConvertedDocument(DocName)
C# 
System.int CheckpointConvertedDocument( 
   System.string DocName
)
C++/CLI 
System.int CheckpointConvertedDocument( 
&   System.String^ DocName
) 

Parameters

DocName

Full pathname of the file to save

Return Value

0 for no error or a bitwise OR of the errors encountered as defined in swFileSaveError_e

Remarks

This saves the document even if the document is read-only.

This method requires that the document is currently open in your SolidWorks session. It specifically checks if the document has been upgraded to the current version of the SolidWorks product in this session. If it has not, then this method has no effect.

Be careful when using this method because this method attempts to change the file permissions to read-write if the file is read-only, and if successful , it overwrites the file and restores the permission to read-only. Although it may appear the file is safe because it is read-only before and after the operation, it might have been overwritten by this method.

This method was designed to be used with the ISldWorks event DocumentConversionNotify. It does not require that the notification be used, but it should work in response to that notification.

 

See Also

Availability

SolidWorks 99 SP1, datecode 1999229


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:   CheckpointConvertedDocument Method (ISldWorks)
*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.