95 lines
3.3 KiB
HTML
95 lines
3.3 KiB
HTML
<html xmlns:v="urn:schemas-microsoft-com:vml"
|
|
xmlns:o="urn:schemas-microsoft-com:office:office"
|
|
xmlns:w="urn:schemas-microsoft-com:office:word"
|
|
xmlns="http://www.w3.org/TR/REC-html40">
|
|
|
|
<head>
|
|
<title>Using VB.NET</title>
|
|
<meta name=MS-HKWD content="VB.NET,add-ins">
|
|
<meta name=MS-HKWD content="VB.NET,stand-alone applications">
|
|
<meta name=MS-HKWD content="VB.NET,window handles">
|
|
<meta name=MS-HKWD content="VB.NET,dialog boxes">
|
|
<meta name=MS-HKWD content="Add-ins, VB.NET">
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
<link rel="stylesheet" type="text/css" href="ApiHelp.css">
|
|
</head>
|
|
|
|
<h1><span style="font-weight: normal; font-size: 7.5pt;">SOLIDWORKS PDM Professional API Help</span></h1>
|
|
<h1>Using VB.NET</h1>
|
|
|
|
<body bgcolor=white lang=SV link=blue vlink=purple style='tab-interval:65.2pt'>
|
|
|
|
<div class=Section1>
|
|
|
|
<p>Versions of SOLIDWORKS PDM Professional before 2008 supported Visual Basic 6.
|
|
SOLIDWORKS PDM Professional 2008, and later, support VB.NET. Users who want to port
|
|
their Visual Basic 6 applications to VB.NET applications need to know how to:</p>
|
|
|
|
<ul>
|
|
<li class=kadov-p>Create <a href="StandAloneApp.htm">stand-alone</a> and
|
|
<a href="DotNetAddIns.htm">add-in</a> applications in VB.NET. <br> </li>
|
|
<li class=kadov-p>Import the SOLIDWORKS PDM Professional
|
|
primary interop assembly.<p style='margin-bottom:12.0pt'>In your open
|
|
project in Microsoft Visual Studio:</p>
|
|
<ol>
|
|
<li><font face="Verdana" style="font-size: 8pt">Right-click the project
|
|
name in the Solution Explorer.</font></li>
|
|
<li><font face="Verdana" style="font-size: 8pt">Select <b>Add Reference</b>.</font></li>
|
|
<li><font face="Verdana" style="font-size: 8pt">Select <b>Framework</b>
|
|
in the left-side panel.</font></li>
|
|
<li><font face="Verdana" style="font-size: 8pt">Browse to the top folder
|
|
of your SOLIDWORKS PDM Professional installation.</font></li>
|
|
<li><font face="Verdana" style="font-size: 8pt">Locate and select <b>
|
|
EPDM.Interop.epdm.dll</b>.</font></li>
|
|
<li><font face="Verdana" style="font-size: 8pt">Click <b>Open</b></font></li>
|
|
<li><font face="Verdana" style="font-size: 8pt">Click <b>Add.</b></font></li>
|
|
<li><font face="Verdana" style="font-size: 8pt">Click <b>Close</b>.<br>
|
|
</font></li>
|
|
</ol>
|
|
</li>
|
|
<li><font face="Verdana" style="font-size: 8pt">Obtain window handles.
|
|
</font>
|
|
<ul>
|
|
<li><font face="Verdana" style="font-size: 8pt">Visual Basic 6 syntax:</font><b>
|
|
</b></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<blockquote>
|
|
<blockquote>
|
|
<p class=APICODE>
|
|
<span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
|
|
mso-ansi-language:EN-US'>Me.hWnd</span></p>
|
|
</blockquote>
|
|
</blockquote>
|
|
|
|
</div>
|
|
<blockquote>
|
|
<ul type="circle">
|
|
<li><font face="Verdana"><span lang="en-us">
|
|
<span style="font-size: 8pt">VB.NET </span></span></font>
|
|
<span lang=EN-US style='mso-ansi-language:EN-US'><font face="Verdana">
|
|
<span style="font-size: 8pt">syntax:</span></font><o:p></o:p></span></li>
|
|
</ul>
|
|
</blockquote>
|
|
<div class=Section1>
|
|
|
|
<blockquote>
|
|
<blockquote>
|
|
<p class="APICODE">
|
|
<span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
|
|
mso-ansi-language:EN-US'>Me.Handle.ToInt32()</span></p>
|
|
</blockquote>
|
|
</blockquote>
|
|
<ul>
|
|
<li class=kadov-p>
|
|
<a href="KeepWindowInfront.htm">Keep add-in windows in the foreground</a>.</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|