.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Finishing a command

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
354 Views, 4 Replies

Finishing a command

I've gotten my program to work, but I have one minor problem (it's more of a
nuisance than a problem). When my command is finished, I could like the
command line to show "Command:" once again. I can get this back by hitting
escape, but I want to fix this. Anyone have any ideas?
4 REPLIES 4
Message 2 of 5
pavlos.katsonis
in reply to: Anonymous

I had the same symptom and (if I remember correctly) I found out that I didn't unlock the document, by disposing the DocumentLock.
Message 3 of 5
Anonymous
in reply to: Anonymous

Isn't that as simply calling Dispose method of my DocumentLock variable?

wrote in message news:5621128@discussion.autodesk.com...
I had the same symptom and (if I remember correctly) I found out that I
didn't unlock the document, by disposing the DocumentLock.
Message 4 of 5
pavlos.katsonis
in reply to: Anonymous

Well, yes. Obviously the reason for your problem lies elsewhere.
Message 5 of 5
Anonymous
in reply to: Anonymous

When you come here for help with problems like this,
it helps to show some relevant code, like for examle,
what your CommandMethod attribute looks like.

If by chance, it uses CommandFlags.Session or
CommandFlags.Transparent, then that could be
the problem.

In either case, you can use this to force AutoCAD
to display the localized equivalent of the "Command: "
prompt:

Autodesk.AutoCAD.Internal.Utils.PostCommandPrompt();

Which requires a reference to AcMgdInternal.dll.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Nathan Guill" wrote in message news:5620957@discussion.autodesk.com...
I've gotten my program to work, but I have one minor problem (it's more of a
nuisance than a problem). When my command is finished, I could like the
command line to show "Command:" once again. I can get this back by hitting
escape, but I want to fix this. Anyone have any ideas?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost