Hide Table of Contents

Run eDrawings in Webpage Example (VBScript)

When this Help topic opened, a document automatically loaded in the eDrawings ActiveX control below.

If the document did not load:

  1. Using the form below the eDrawings ActiveX control, try browsing to and opening an eDrawings file that exists on your system.
  2. If that document does not load:
    1. Read Instantiating the eDrawings Control in the Getting Started topic of eDrawings API Help.   
    2. Right-click this Help topic and select View Source. The code is displayed in Notepad.
      1. Verify that the CLSID referenced in the code matches your registry setting for EModelView.EModelViewControl.nn, where nn is the two-digit year of this eDrawings version.
      2. If the CLSID in the code does not match, then modify the CLSID in the code to match your registry setting.
      3. Check that the eDrawings document referenced in the code exists on your system.
      4. If the eDrawings document does not exist on your system, change the path and file name to an eDrawings file that exists on your system.
      5. Save the Notepad file with filename extension .html.
      6. Exit Notepad.
      7. Open the HTML file in Windows Internet Explorer.
      8. If a warning displays that Windows Internet Explorer has restricted the file from running ActiveX controls:
        1. Click the Information bar near the top of the webpage.
        2. Select Allow Blocked Content.
        3. Click Yes in the dialog.

    When the document loads, click the buttons on the form to perform operations.

    NOTES: The eDrawings ActiveX control only works with Windows Internet Explorer.


IEModelViewControl::OpenDoc
Opens a document. File name:
IEModelViewControl::CloseActiveDoc
Closes the active document.
IEModelViewControl::ShowFullScreen
Activates Full Screen mode. Press Esc to exit Full Screen mode.
IEModelViewControl::ShowSend
Displays the Send As dialog that allows you to select a format in which to email the active document.
IEModelViewControl::Save
Saves the active document. Selecting Show Save Options displays a dialog that allows you to select more options before saving the active document. Show Save Options
IEModelViewControl::Print5
 

Shows the Print dialog that allows you to print the active document.

Description:

Show Dialog
Shaded
Draft Quality
Grayscale
Print All
Page to

IEModelViewControl::ShowHelp
Opens the eDrawings Help in the web browser.
IEModelViewControl::ClearSelections
Clears the current selections in the active document.

 



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Run eDrawings in Webpage Example (VBScript)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2013 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.