Hi all,
I think I'm having trouble using
SendStringToExecute while it's being implemented within
DocumentManager.DocumentActivated event block. The problem was
described down the NG many times, but I still couldn't find working
solution to it. Basically, what happens is that while in DocumentActivated
SendStringToExecute mostly (blah) returns eNoDocument since command
line is not fully ready to accept commands (blah, blah).
I'm adding a DocumentActivated handler
during sole start of ACAD, via managed library within "Applications"
registry key (LoadReason = 2, meaning "start as ACAD starts"). It doesn't grab
the first opened drawing, so I'm firing the delegate manually to cover that
one.
[Tested on: Windows 2000 SP4, AutoCAD 2006, .NET
2.0, VS.NET 2005]
Regards,
Maksim Sestic