Visio 2007 ActiveX Control running Convert CAD Add-on

G

Guy..L

I am using C# .Net 2.0 to build an application that needs to open AutoCAD
files and put them on a Visio Page.

I found that I have to run the Addons to 1. Import the CAD drawing and 2.
Convert the CAD drawing... here's the source after my open dialog called dog.

if (System.IO.Path.GetExtension(dog.FileName).ToLower() ==
".dxf")
{
importer.Run(dog.FileName);
convertor.Run(System.IO.Path.GetFileName(dog.FileName));
}

importer and convertor are Addon objects. importer brings in the object and
sticks it, selected, on the page; but the object is still a CAD drawing
object. Then, when convertor runs, I see the progress bar going inside the
control and then disappear. The object on the page is unchanged.

For comparison, when I do this in Visio 2007 (the product), I see the extra
right click "Convert CAD Drawing..." and after clicking I see the progress
bar and then a dialog giving me some layer type stuff. I usually just click
OK and the object is converted.

My guess is that the Addon in the ActiveX control tries to open the layer
dialog and fails because of some setting I don't know about.

Does anybody know how to let the Addon pop a dialog into my Application,
parent of the ActiveX control? Is there any way to debug the addon as it
runs under the ActiveX control's orders?

Thank you.

Guy Lister
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top