Hide Table of Contents
EdmResultSuccessCodes_e Enumeration

Success codes. See EdmResultErrorCodes_e for error codes.

Syntax

Visual Basic (Declaration) 
Public Enum EdmResultSuccessCodes_e 
   Inherits System.Enum
C# 
public enum EdmResultSuccessCodes_e : System.Enum 
C++/CLI 
public enum class EdmResultSuccessCodes_e : public System.Enum 

Members

MemberDescription
S_EDM_32BIT_ADDIN

0x4023D = Retrieved information successfully from the 32-bit add-in

S_EDM_64BIT_ADDIN

0x4023E = Retrieved information successfully from the 64-bit add-in

S_EDM_FILES_NOT_UNIQUE_GLOBALLY

0x4023F = The vault has the Do not allow duplicate file names in the file vault or Do not allow duplicate file names with these extensions option selected, and a file with the same name or filename extension exists in the vault

S_EDM_INVALID_FILE

0x4023C = The file was handled, but the file format is not recognized

S_EDM_MENU_ITEM_NOT_APPLICABLE

0x40219 = Menu item not valid in this context due to flags set

S_EDM_REFRESH_LIST

0x40201 = Success; refresh the entire list

S_EDM_REFRESH_MENU

0x40218 = Administrated plug-ins successfully; you should now recreate the plug-in menu

S_EDM_REFRESH_TREE

0x40202 = Success; refresh the tree

S_EDM_TRY_AGAIN

0x40203 = Try the operation again

Example

Client code can only access these return codes by handling the exception. For example, in C#: 

try
{
    // Some SOLIDWORKS PDM Professional call that results in an exception
}
catch (System.Runtime.InteropServices.ComException comEx)
{
    switch (comEx.ErrorCode)
    {
        case S_EDM_xxx:
            // respond to xxx
            break;
        case S_EDM_yyy:
            // respond to yyy
            break;
        default:
            // Unexpected or cannot be handled silently
            // Use IEdmVault5::GetErrorString or IEdmVault11::GetErrorMessage to prepare a message for the user or log
            break;
    }
}

Remarks

HRESULT return codes are supported by the SOLIDWORKS PDM Professional API. You can pass the HRESULT code to the method IEdmVault11::GetErrorMessage to get information about the code. 

Client code can only access these success codes by handling the exception; i.e., via System.Runtime.InteropServices.ComException.  

NOTES:

  • Methods called from Visual Basic do not return the HRESULT code directly. Instead, the return codes are returned as an argument declared with the [retval] directive, if one exists. Visual Basic users can view the error codes returned by methods by implementing an error handler and checking the Number property of the Err object. The property is the HRESULT return code from the failing method.
  • The values shown in this topic are written in C++ style hexadecimal notation. In VB.NET, the value 0x80040200 is written as &H80040200.

See Also



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:   EdmResultSuccessCodes_e Enumeration
*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) 2019 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.