PDA

View Full Version : Activate autocad window without closing the macro



M76
10th May 2011, 12:57 pm
Hi

I'd like to create a macro that would be used in parallel with the main autocad window, but when I run the macro it deactivates all other autocad windows, and the drawing can only be used after I close the form of the macro. But I don't want to close it I want to keep it open while I work on the drawing.

How can I achieve this?

Thanks.

SEANT
10th May 2011, 01:01 pm
See modal versus modeless forms

http://msdn.microsoft.com/en-us/library/aa984358(v=vs.71).aspx

M76
10th May 2011, 01:21 pm
Thanks, I know this all well, I was asking how can I control if a form is modal in the autocad macro?

But I've found the solution, the show method has a boolean parameter which determines if the form is shown as modal or not.