![]() Drag a button from the Toolbox to a location on the Windows form.Use this variable to call the rest of the SolidWorks eDrawings API. This is the entry point into the SolidWorks eDrawings API for Visual Basic. The name of the variable that is assigned to the SolidWorks eDrawings ActiveX control is A圎ModelViewControl1. Double-click the control to open the code for the control.Drag the eDrawings 20 nn Control from the Toolbox to a location on the Windows form.Open C:\Program Files\SolidWorks Corp\SolidWorks eDrawings\EModelView.dll.ĮDrawings 20 nn Control is now available in the Toolbox. Click Browse at the bottom of the Choose Toolbox Items dialog.Ģ. If you do not see eDrawings 20 nn Control:ġ. Only one version can be referenced in the project. If you see more than one version of the eDrawings control in the COM Components tab, select only the newer version. NOTE: EModelView.dll contains an ActiveX control that is registered as eDrawings 20 nn Control when SolidWorks eDrawings is installed in C:\Program Files\SolidWorks Corp\SolidWorks eDrawings. In the Choose Toolbox Items dialog, select the COM Components tab.In the Toolbox, right-click anything and select Choose Items.Select Visual Basic Development Settings.Select Tools > Import and Export Settings > Reset all settings.Configure the Toolbox with the eDrawings 20 nn Control.In the Add Reference dialog, select COM, and select EModelView 20 nn Type Library.Right-click the new project in the Solution Explorer and select Add Reference. ![]() Type a name for the new project in Name.NOTE: Depending on how you set up your Microsoft Visual Studio environment, you might have to expand Other Languages to access Visual Basic. In Installed Templates, expand Visual Basic and select Windows Forms Application.Create a Visual Basic Windows Forms application.Locate and download eDrawings 2012 API Example (VB.NET, C#).Click SolidWorks > API to open the SolidWorks API forum.You must be a SolidWorks subscription customer to access the SolidWorks API forum's documents. The SolidWorks API Forum contains working VB.NET and C# examples for 32-bit machines. SolidWorks eDrawings 20 nn is installed.Ĭlick the link that matches the language in which you want to create a Microsoft Visual Studio Windows Forms application:.Microsoft Visual Studio 2010 or later is installed.This topic shows how to create Microsoft Visual Basic and C# Windows Forms applications that use this control to load SolidWorks eDrawings drawings. The SolidWorks eDrawings API is implemented as a Microsoft ActiveX control. U sing the SolidWorks eDrawings ActiveX control
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |