SolidWorks eDraring Control
本文标签: SolidWorks eDraring Control 

Here are some key features of "SolidWorks eDrawings":

· Viewing native documents in the eDrawings Viewer, such as SolidWorks (*.sldprt, *.sldasm, and *.slddrw) and AutoCAD (*.dxf and *.dwg) documents
· Creating eDrawings files from your CAD application
· Viewing COSMOSWorks and COSMOSXpress analysis data
· Viewing MoldflowXpress data
· Using eDrawings as a standalone viewer or as an embedded ActiveX control
· Shading views
· Viewing and customizing animations
· Linking drawing views
· Hide Others/Show All
· Make Transparent
· Exporting files as STL, BMP, JPEG, or TIFF files

Getting Started

Implementing SolidWorks eDrawings API as Microsoft ActiveX control

The SolidWorks eDrawings API is implemented as a Microsoft ActiveX control.

  1. To create an entry point into the SolidWorks eDrawings API in VBA add an eDrawings 20XX Control to the Controls Toolbox and drag and drop the control to a user form or dialog. 

NOTE: EModelView.dll is an ActiveX control that is registered as eDrawings 20XX Control when it is installed in \Program Files\SolidWorks Corp\SolidWorks eDrawings.

  1. Access the EModelViewControl variable representing the control in the form and experiment with some of the SolidWorks SolidWorks eDrawings API calls. For example, try using IEModelViewControl::OpenDoc to open an SolidWorks eDrawings or SolidWorks document in the control or IEModelViewControl::ViewOrientation to change the current view of the document in the control.

发表于: 2011-12-13 23:24 阅读(3301) 评论(0) 收藏 好文推荐