Hide Table of Contents
IsFutureVersion Method (IModelDocExtension)

Gets whether this document is for a future version of SolidWorks.

.NET Syntax

Visual Basic (Declaration) 
Function IsFutureVersion() As System.Boolean
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim value As System.Boolean
 
value = instance.IsFutureVersion()
C# 
System.bool IsFutureVersion()
C++/CLI 
System.bool IsFutureVersion(); 

Return Value

True if the document is for a future version of SolidWorks, false if not

Example

Remarks

As of 2012 SP5, loading future file versions is supported, and ISldWorks::OpenDoc6 no longer throws a swFileLoadError_e.swFutureVersion error.

Use IModelDocExtension::IsFutureVersion to determine:   

  • how to obtain the correct version history of a document. If a future version document is loaded in an older version of SolidWorks, IModelDoc2::VersionHistory and IModelDoc2::IVersionHistory return the version history of the part template, not the version history of the future version document. To get the version history of a future version document, use ISldWorks::VersionHistory or ISldWorks::IVersionHistory to get the version history from its file. 
  • whether a component is for a future version of SolidWorks and should be hidden in the user interface of older versions. Although they can be loaded, future version components may not be actionable in older versions of SolidWorks.
 

See Also

Availability

SolidWorks 2012 SP5, Revision Number 20.5


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:   IsFutureVersion 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) 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.