Much thanks for your input. Responses to your questions are below.
>What is it that you are trying to accomplish?
I'm trying to run an external vb.net app inside AutoCAD in order to keep it
"in-process" and prevent AutoCAD from bogging down when processing more than
20 or so drawings. This app essentially opens AutoCAD, opens a drawing from
list, and performs one or more actions on that drawing, closes it and then
moves on to the next drawing in the list.
>What Version of AutoCAD are you using?
AutoCAD 2005
>What Version of Visual Studio are you using?
VS 2003
>If this is Acad 2005/06/07 why are you not using some managed solution
>(this may negate the need to set up a com component)?
I'm a .NET newbie and hack and don't know what a "managed solution" means.
And the VB.net app I have already built "works" outside of AutoCAD, but just
bogs down (meaning it goes from taking 10-15 seconds per drawing to 2-3
minutes per drawing) after about 20 drawings.
>Why use VBA at all?
Because otherwise, the app runs "out of process" and starts to bog down. I'm
not 100% sure the "in-process/out-of-process" is the real issue, but it
seems to be the most likely candidate.
>Will you post some example code or a sample project?
It's a big project with several forms, modules, etc. But I'm happy to email
it to anyone who wants to take a real look at it... I'd love for someone to
take a look at it just to tell me how screwed up component organization is!
>You are asking very specific questions that are dependant on what versions
>of AutoCAD/VisualStudio you are using. >Unfortunately I don't believe that
>anyone can help you more than they have if you can't give us some
>direction.
>My point is that we want to help, but it is up to you to accurately
>describe your problems/questions so we have enough to go >on, not just
>guess.
>Regards,
>C