Hide Table of Contents
UpgradeLegacyCustomProperties Method (IModelDocExtension)

Upgrades custom properties in this legacy (created prior to SOLIDWORKS 2018) model to the latest custom properties architecture.

.NET Syntax

Visual Basic (Declaration) 
Function UpgradeLegacyCustomProperties( _
   ByVal UpgradeAllAssemComps As System.Boolean _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim UpgradeAllAssemComps As System.Boolean
Dim value As System.Boolean
 
value = instance.UpgradeLegacyCustomProperties(UpgradeAllAssemComps)
C# 
System.bool UpgradeLegacyCustomProperties( 
   System.bool UpgradeAllAssemComps
)
C++/CLI 
System.bool UpgradeLegacyCustomProperties( 
&   System.bool UpgradeAllAssemComps
) 

Parameters

UpgradeAllAssemComps
True to upgrade custom properties of this top-level assembly and all of its components, false to upgrade custom properties of this top-level assembly only

Return Value

True if custom properties are successfully upgraded, false if not

Remarks

This method is valid only for parts, assemblies, and drawings:

  • created prior to 2018.
  • opened in resolved mode.
  • corresponds to the user-interface command, feature_manager_design_tree_top_node RMB > Upgrade custom properties.

This method upgrades the custom properties of:

  • parent parts only, not derived parts
  • drawings, but not models in drawing views
  • weldment cutlists
  • (optionally) all components in assemblies

After running this method, you:

  • must rebuild configurations to have their custom properties updated.
  • cannot return to the old custom properties architecture.
 

See Also

Availability

SOLIDWORKS 2022 FCS, Revision Number 30


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:   UpgradeLegacyCustomProperties 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) 2024 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.