AnsweredAssumed Answered

VBNET eDrawings OCX Control DWG Read Error

Question asked by Gabriele Zironda on Jan 28, 2009
Latest reply on Jan 28, 2009 by Gabriele Zironda
Hi All.

I'm developing a small VB NET 2008 application that reads a Path in a Database and Open the right files on my disks with eDrawings 2009. I embedded the OCX control and I call the following function correctly:
edrwControl.OpenDoc("C:\sample.sldprt", True, True, False, "")

All works fine with sldprt files. But Always crash with DWG files.

I'm also tried to start a separate process with:

System.Diagnostics.Process.Start("C:\Program Files\Common Files\eDrawings2009\EModelViewer.exe", "C:\sample.dwg").

Also here, works fine with sldprt and crash with DWG.

If I open eDrawing without VB (as usual), I can read correctly both files: sldprt and dwg.

Please, Have You any suggestion about it?
Thank You very much for Your answer!
Gabriele

Outcomes