The eDrawings application gives you the power to create, view, and share your 3D models and 2D drawings. The eDrawings Application Programming Interface (API) is an OLE programming interface to eDrawings and is implemented as a Microsoft ActiveX control. You can use the eDrawings API to:
The API contains functions that you can call from Visual Basic for Applications (VBA), VB.NET, VBScript, C#, C++ 6.0, C++/CLI, and C. These functions provide direct access to the eDrawings environment. Currently only the IEModelViewControl and IEModelMarkupControl interfaces are supported. Any other interface is not supported and should not be used. Use VBScript to create HTML applications for eDrawings.
Sample Projects
The eDrawings API sample projects show how to create eDrawings API applications in Microsoft Visual Studio and other types of applications that support ActiveX controls. The eDrawings API SDK contains these eDrawings API sample projects.
To download the eDrawings API SDK:
-
-
Log on to the SOLIDWORKS Customer Portal.
-
Click Downloads and Updates.
-
Select the version you want to download in Select Version.
-
Click the SOLIDWORKS tab and click the version of SOLIDWORKS whose eDrawings API SDK you want to download.
-
Click the English button and click Accept Agreement & Continue, which is located at the bottom of the page.
-
Click the download, unzip, and install all the files link located at the bottom of the Download and Install page.
-
Select a version in the Upgrading from Service Pack list, select the product in the SOLIDWORKS Product list, and click Continue.
-
Locate and click SOLIDWORKS eDrawings API SDK in the Step 5 – Optional updates table to install the eDrawings API SDK.
By default, the eDrawings API SDK is installed in C:\Program Files\Common Files\eDrawingsnnnn\api, where nnnn is the 4-digit release year.
If you are a SOLIDWORKS customer, and you have installed eDrawings Professional, double-click install_dir\Program Files\SOLIDWORKS Corp\eDrawings API SDK\eDrawings API SDK.msi to install the sample projects to install_dir\Program Files\Common Files\eDrawings20nn, where nn is the 2-digit release year of the version of eDrawings installed on your computer.
NOTE:
All of the sample code and projects supplied are provided on an as-is basis and are only intended to demonstrate ways of using the eDrawings API. No representations or warranties are made regarding these samples. Any licensed user of eDrawings is free to use any or all of these samples in connection with building applications related to eDrawings and is granted a royalty-free, non-exclusive license for these samples or parts thereof. Intellectual property rights of the samples remain with eDrawings. Any confidentiality provisions of the eDrawings license apply to the samples.