154 lines
16 KiB
HTML
154 lines
16 KiB
HTML
<html xmlns:mshelp="http://msdn.microsoft.com/mshelp">
|
|
<head>
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
|
|
<meta content="history" name="save">
|
|
<meta content="Innovasys Document! X (http://www.innovasys.com)" name="GENERATOR">
|
|
<title>EdmResultSuccessCodes_e Enumeration </title>
|
|
<link href="stylesheets/dotnet2005.css" type="text/css" rel="stylesheet">
|
|
<script src="script/dotnet2005.js" type="text/javascript">
|
|
</script><xml>
|
|
<MSHelp:Keyword Index="F" Term="EPDM.Interop.EPDMResultCode.EdmResultSuccessCodes_e" />
|
|
<MSHelp:Attr Name="DevLang" Value="CSharp" />
|
|
<MSHelp:Attr Name="DevLang" Value="VB" />
|
|
<MSHelp:Attr Name="DevLang" Value="JScript" />
|
|
<MSHelp:Attr Name="TopicType" Value="kbSyntax"/>
|
|
<MSHelp:Attr Name="LinkGroup" Value="Help"/>
|
|
<MSHelp:Attr Name="Locale" Value="kbEnglish"/>
|
|
<MSHelp:Attr Name="HelpPriority" Value="1"/>
|
|
</xml>
|
|
|
|
|
|
<script src="script/hs-expandcollapse.js" type="text/javascript"></script>
|
|
<script src="script/hs-enlargeimage.js" type="text/javascript"></script>
|
|
<script src="script/swfobject.js" type="text/javascript"></script>
|
|
<script src="script/hs-common.js" type="text/javascript"></script>
|
|
<script src="script/hs-heading-expandcollapse.js" type="text/javascript"></script>
|
|
<script src="script/hs-tabstrip.js" type="text/javascript"></script>
|
|
</head>
|
|
|
|
<body id="dxBody" topmargin="0">
|
|
<form>
|
|
<input class="userDataStyle" id="userDataCache" type="hidden" name="userDataCache"> <input id="hiddenScrollOffset" type="hidden" name=
|
|
"hiddenScrollOffset"> <img id="collapseImage" style="DISPLAY: none; WIDTH: 0px; HEIGHT: 0px" src="dotnetimages/collapse.gif"> <img id="expandImage"
|
|
style="DISPLAY: none; WIDTH: 0px; HEIGHT: 0px" src="dotnetimages/expand.gif"> <img id="collapseAllImage" style="DISPLAY: none; WIDTH: 0px; HEIGHT: 0px"
|
|
src="dotnetimages/collapse.gif"> <img id="expandAllImage" style="DISPLAY: none; WIDTH: 0px; HEIGHT: 0px" src="dotnetimages/expand.gif"> <img id=
|
|
"dropDownImage" style="DISPLAY: none; WIDTH: 0px; HEIGHT: 0px" src="dotnetimages/drpdown.gif"> <img id="dropDownHoverImage" style=
|
|
"DISPLAY: none; WIDTH: 0px; HEIGHT: 0px" src="dotnetimages/drpdown_orange.gif"> <img id="copyImage" style="DISPLAY: none; WIDTH: 0px; HEIGHT: 0px"
|
|
src="dotnetimages/copycode.gif"> <img id="copyHoverImage" style="DISPLAY: none; WIDTH: 0px; HEIGHT: 0px" src=
|
|
"dotnetimages/copycodeHighlight.gif">
|
|
</form>
|
|
|
|
<div id="pagetop">
|
|
|
|
|
|
<table id="pagetoptable1" width="100%">
|
|
<tbody>
|
|
<tr id="pagetoptable1row1">
|
|
<td align="left"><span id="projecttitle">SOLIDWORKS PDM Professional API Help</span></td>
|
|
|
|
<td align="right"><span id="feedbacklink"><a href="mailto:apihelp.feedback@3ds.com?subject=Documentation Feedback: EPDM.Interop.EPDMResultCode~EPDM.Interop.EPDMResultCode.EdmResultSuccessCodes_e.html">Send Feedback</a></span></td>
|
|
</tr>
|
|
|
|
<tr id="pagetoptable1row2">
|
|
<td align="left" colspan="2"><span id="pagetitle">EdmResultSuccessCodes_e Enumeration </span></td>
|
|
</tr>
|
|
|
|
<tr id="pagetoptable1row3">
|
|
<td colspan="2"><a onclick="javascript:openSectionById('seeAlsoSectionHeader');" href="#seealsobookmark">
|
|
See Also</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table id="pagetoptable2" cellspacing="0" cellpadding="0" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td><span id="toggleExpandedAll"><img class="toggleAll" id="toggleExpandedAllImage" src="dotnetimages/collapse.gif"> <label id=
|
|
"collapseAllLabel" style="DISPLAY: none" for="toggleExpandedAllImage">Collapse All</label> <label id="expandAllLabel" style="DISPLAY: none" for="toggleExpandedAllImage">
|
|
Expand All</label></span> <span id="languageFilterToolTip"
|
|
onmouseover='document.getElementById("languageFilterImage").src=document.getElementById("dropDownHoverImage").src;' style="CURSOR: default"
|
|
onfocusout='document.getElementById("languageFilterImage").src=document.getElementById("dropDownImage").src;' onclick=
|
|
"showBox('dxlanguagemenu',event,document.getElementById('languageFilterImage'))" onfocusin=
|
|
'document.getElementById("languageFilterImage").src=document.getElementById("dropDownHoverImage").src;' onmouseout=
|
|
'document.getElementById("languageFilterImage").src=document.getElementById("dropDownImage").src;'><img id="languageFilterImage" src=
|
|
"dotnetimages/drpdown.gif"> <label id="showAllLabel" style="DISPLAY: none" for="languageFilterImage">
|
|
Language Filter: All</label> <label id="multipleLabel"
|
|
style="DISPLAY: none" for="languageFilterImage">
|
|
Language Filter: Multiple</label>
|
|
|
|
<label id="VBLabel" for="languageFilterImage" style="display: none;">Language Filter: Visual Basic</label>
|
|
<label id="CSLabel" for="languageFilterImage" style="display: none;">Language Filter: C#</label>
|
|
<label id="CPP2005Label" for="languageFilterImage" style="display: none;">Language Filter: C++/CLI</label>
|
|
</span></td>
|
|
</tr>
|
|
</tbody>
|
|
</table><table width="100%" id="pagetopbreadcrumbs" cellspacing="0" cellpadding="0"><tr><td>
|
|
<a href="EPDM.Interop.EPDMResultCode~EPDM.Interop.EPDMResultCode_namespace.html">EPDM.Interop.EPDMResultCode Namespace</a>
|
|
: EdmResultSuccessCodes_e Enumeration </td></tr></table>
|
|
|
|
<div class="dxpopupbubble" id="dxlanguagemenu">
|
|
|
|
<input id="VBCheckbox" type="checkbox" name="languageFilter" onClick="setLanguage(this)" />
|
|
<label class="languageFilter" for="VBCheckbox">
|
|
Visual Basic
|
|
</label>
|
|
<br /><input id="CSCheckbox" type="checkbox" name="languageFilter" onClick="setLanguage(this)" />
|
|
<label class="languageFilter" for="CSCheckbox">
|
|
C#
|
|
</label>
|
|
<br /><input id="CPP2005Checkbox" type="checkbox" name="languageFilter" onClick="setLanguage(this)" />
|
|
<label class="languageFilter" for="CPP2005Checkbox">
|
|
C++/CLI
|
|
</label>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="pagebody" valign="bottom">
|
|
<a name="topBookmark"></a>
|
|
|
|
<div id="mainbody">
|
|
<div class="saveHistory" id="allHistory" onsave="saveAll()" onload="loadAll()"></div>
|
|
Success codes. See <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US"><A href="EPDM.Interop.EPDMResultCode~EPDM.Interop.EPDMResultCode.EdmResultErrorCodes_e.html">EdmResultErrorCodes_e</A> for error codes.</SPAN>
|
|
<h1 class="heading"><span class="expandcollapse" tabindex="0"><img id="syntaxToggle" class="toggle" name="toggleSwitch" src="dotnetimages/collapse.gif"></img>Syntax</span></h1><div id="syntaxSection" class="section" name="collapseableSection"><DIV class=LanguageSpecific id=Syntax_VB><table class="syntaxtable" width="100%" cellpadding="0" cellspacing="0"><tr><th>Visual Basic</th><th> </th></tr><tr><td colspan="2"><pre>Public Enum EdmResultSuccessCodes_e
|
|
Inherits System.Enum</pre></tr></table></div>
|
|
<DIV class=LanguageSpecific id=Syntax_CS><table class="syntaxtable" width="100%" cellpadding="0" cellspacing="0"><tr><th>C#</th><th> </th></tr><tr><td colspan="2"><pre>public enum EdmResultSuccessCodes_e : System.Enum </pre></tr></table></div>
|
|
<DIV class=LanguageSpecific id=Syntax_CPP2005><table class="syntaxtable" width="100%" cellpadding="0" cellspacing="0"><tr><th>C++/CLI</th><th> </th></tr><tr><td colspan="2"><pre>public enum class EdmResultSuccessCodes_e : public System.Enum </pre></tr></table></div>
|
|
</div>
|
|
<h1 class="heading"><span class="expandcollapse" tabindex="0"><img id="enummembersToggle" class="toggle" name="toggleSwitch" src="dotnetimages/collapse.gif"></img>Members</span></h1><div id="enummembersSection" class="section" name="collapseableSection"><TABLE CLASS="FilteredItemListTable"><TR VALIGN="top"><TH>Member</TH><TH>Description</TH></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_32BIT_ADDIN</strong></TD><TD CLASS="DescriptionCell"><P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">0x4023D = <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">Retrieved information successfully from the 32-bit add-in</SPAN></SPAN></P></TD></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_64BIT_ADDIN</strong></TD><TD CLASS="DescriptionCell"><P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">0x4023E = <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">Retrieved information successfully from the 64-bit add-in</SPAN></SPAN></P></TD></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_FILES_NOT_UNIQUE_GLOBALLY</strong></TD><TD CLASS="DescriptionCell"><P>0x4023F = The vault has the <STRONG>Do not allow duplicate file names in the file vault</STRONG> or <STRONG>Do not allow duplicate file names with these extensions</STRONG> option selected, and a file with the same name or filename extension exists in the vault</P></TD></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_INVALID_FILE</strong></TD><TD CLASS="DescriptionCell"><P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">0x4023C = <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">The file was handled, but the file format is not recognized</SPAN></SPAN></P></TD></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_MENU_ITEM_NOT_APPLICABLE</strong></TD><TD CLASS="DescriptionCell"><P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">0x40219 = <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">Menu item not valid in this context due to flags set</SPAN></SPAN></P></TD></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_REFRESH_LIST</strong></TD><TD CLASS="DescriptionCell"><P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">0x40201 = <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">Success; refresh the entire list</SPAN></SPAN></P></TD></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_REFRESH_MENU</strong></TD><TD CLASS="DescriptionCell"><P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">0x40218 = <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">Administrated plug-ins successfully; you should now recreate the plug-in menu</SPAN></SPAN></P></TD></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_REFRESH_TREE</strong></TD><TD CLASS="DescriptionCell"><P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">0x40202 = <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">Success; refresh the tree</SPAN></SPAN></P></TD></TR>
|
|
<TR><TD CLASS=MemberNameCell><strong>S_EDM_TRY_AGAIN</strong></TD><TD CLASS="DescriptionCell"><P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">0x40203 = <SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">Try the operation again</SPAN></SPAN></P></TD></TR>
|
|
</TABLE></div>
|
|
<a name="exampleBookmark"></a>
|
|
<h1 class="heading"><span class="expandcollapse" tabindex="0"><img id="exampleToggle" class="toggle" name="toggleSwitch" src="dotnetimages/collapse.gif"></img>Example</span></h1><div id="exampleSection" class="section" name="collapseableSection"><P>Client code can only access these return codes by handling the exception. For example, in C#: </P>
|
|
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
|
|
<P style='FONT-FAMILY: "courier new"'>try<BR>{<BR> // Some SOLIDWORKS PDM Professional call that results in an exception<BR>}<BR>catch (System.Runtime.InteropServices.ComException comEx)<BR>{<BR> switch (comEx.ErrorCode)<BR> {<BR> case S_EDM_<EM>xxx</EM>:<BR> // respond to <EM>xxx</EM><BR> break;<BR> case S_EDM_<EM>yyy</EM>:<BR> // respond to <EM>yyy</EM><BR> break;<BR> default:<BR> // Unexpected or cannot be handled silently<BR> // Use IEdmVault5::GetErrorString or IEdmVault11::GetErrorMessage to prepare a message for the user or log<BR> break;<BR> }<BR>}</P></BLOCKQUOTE>
|
|
</div>
|
|
|
|
<h1 class="heading"><span class="expandcollapse" tabindex="0"><img id="remarksToggle" class="toggle" name="toggleSwitch" src="dotnetimages/collapse.gif"></img>Remarks</span></h1><div id="remarksSection" class="section" name="collapseableSection"><P><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">HRESULT return codes are supported by the SOLIDWORKS PDM Professional API. You can pass the HRESULT code to the method <A href="EPDM.Interop.epdm~EPDM.Interop.epdm.IEdmVault11~GetErrorMessage.html">IEdmVault11::GetErrorMessage</A> to get information about the code.</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US"> </SPAN></P>
|
|
<P>Client code can only access these success codes by handling the exception; i.e., via System.Runtime.InteropServices.ComException. </P>
|
|
<P><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US"><B>NOTES:</B></SPAN></P>
|
|
<UL>
|
|
<LI><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">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.</SPAN>
|
|
<LI><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana" xml:lang="EN-US">The values shown in this topic are written in C++ style hexadecimal notation. In VB.NET, the value 0x80040200 is written as &H80040200.</SPAN></LI></UL></div>
|
|
<a name="seealsobookmark"></a>
|
|
<h1 class="heading"><span class="expandcollapse" tabindex="0"><img id="seealsoToggle" class="toggle" name="toggleSwitch" src="dotnetimages/collapse.gif"></img>See Also</span></h1><div id="seealsoSection" class="section" name="collapseableSection"><h4 class="dxh4"></h4><a href="EPDM.Interop.EPDMResultCode~EPDM.Interop.EPDMResultCode_namespace.html">EPDM.Interop.EPDMResultCode Namespace</a>
|
|
<br/><a href="EPDM.Interop.epdm~EPDM.Interop.epdm.IEdmVault5~GetErrorString.html">IEdmVault5::GetErrorString Method ()</a>
|
|
<br/><a href="EPDM.Interop.epdm~EPDM.Interop.epdm.IEdmVault11~GetErrorName.html">IEdmVault11::GetErrorName Method ()</a>
|
|
<br/><a href="ReturnCodes.htm">Return Codes</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="pagefooter"></div>
|
|
</div>
|
|
</body>
|
|
</html> |