1 Reply Latest reply on Oct 15, 2012 5:26 PM by James Yarrington

    Using OpenDoc method with eDrawings ActiveX in LabVIEW.  Makes LabVIEW freeze.

    James Yarrington

      I am having trouble with IEModelView: OpenDoc




      FileName - C:\etc... filepath datatype converted to string datatype.

      IsTemp - False

      PromptToSave - False

      ReadOnly - False

      CommandString - (I've wired an empty string to this


      For my application I need to print certain drawings (programmatically) from a shared drive.  Most of these drawings are .DWG or .pdf.  However, there are some drawings in the .SLDDRW format.  I downloaded the free eDrawings 2012 from Solidworks in order to achieve this, but I've been running into problems with the OpenDoc method.


      When LabVIEW gets to the invoke node, it "hangs," - it doesn't execute further and the VI cannot be stopped (I usually have to force-quit it with Ctrl-Alt-Del).  In my code I have 30 s time delays (probably not necessary, was just making sure that eDrawings had time to finish the command) and "<Insert Your Printer Here>" as the printer name - obviously replace with your own printer's name - not that it matters because the execution does not reach that far in the code.


      I've already posted this question on the LabVIEW forums:



      The API for this method is here:



      I'm running LabVIEW 2010 and eDrawings 2012 on Windows XP.


      Thank you for your help!