How does one programmatically set the command line to have keyboard focus?
I'm programmatically setting an active/focused PaletteSet's visibility to false.
_paletteSet.Visible = false;
I would like to follow this line with code that sets the command line to receive focus.
The PaletteSet for other reasons has KeepFocus = true.
I've tried various Win32 APIs (SwitchToThisWindow, SetForegroundWindow, SetActiveWindow) to no avail. I also tried SendCommand() and SendStringToExecute(activate=true,..) , etc.
I imagine there's a way to do this with the native APIs.
I am occasionally developing with ObjectARX 2013. The problem: A command being executed from a document needs to focus on another document. I am doing that as:
After this line, the focus is taken by the other document. But the command execution just stops without producing any visible error or catchable exception. Apparently, the document focus cannot be changed during execution of a command.
A solution: What worked in the end was displaying a .NET form inside the command, like:
Then, performing the very same set of actions on a button click works flawlessly.
The question is: can using the form as a mediator be avoided? It is redundant there. I tried hooking to CommandEnded, executing the code as a separate command via Application.DocumentManager.MdiActiveDocument.SendStringToExecute, and also executing the code in a separate delayed thread. So far, only triggering the code via the form worked.
When I click the Force command in the LOADS panel when doing a Frame Analysis, I don't get a dialog box. All I get is a select origin box with an arrow. There is no way to change the Magnitude value or the Angle of Plane as per instructions in the tutorial. I have tried numerous ways to get a dialog box to appear, but I can't find out how. why I am not getting a Dialog box?
If there is a way to force the dimension of a line or circle or anything.
For example: If I draw a line and dimension it, it will dimension it to 2.973 let's say, but if I want to change the dimension or the line to 3.300, how would I do that?
Also, after you create a 2D drawing, is there a way to make it a 3D model or extrude the model?
Is there a variable to force dimension text line to show? I am using annotative dimensions and the placement for the text is forced to the outside of the dimension if it doesn't fit. I get annoyed on having to move the text to show the dimline above the dimension.
I press CTRL+9 to make the Command Line disappear while drawing. When I plot (or when doing a plot preview) , the Command Line appears again by itself. So I always have to turn the Command Line off manually after each plot
The bug still happens;
- if Dynamic Input is turned off or on - if I plot to a real device or in PDF - if the Cammand Line Palette i docked or floating.
This is not an issue in AutoCAD 2012 so I guess it has to do with the new way they programmed the revamped Command Line palette in 2013.
without reiterating a lot of what is said in this thread: [URL] ......
This happen outside the potential malware infection?
if you care to not click-through, the problem is that certain commands (not all of them) simply do not disply in the command line. so the MOVE command for example looks like this:
if I select a line, then enter the move command, the line unselects also when I select a line, then hit delete, the line is still there both of these used to work
Basically I got a process which is quite long , let's say 30 seconds.
I want put a counter at command line showing to
user how many objects has been processed so far. But I don't want to use New Line Feed to change the line and keep each new number at same line and same location of command line.
When I send a file to Ps from Lr, edit that file then save it, Lr puts that file at the end of the line instead of next to the file I was working on. When you have 600 photos in a down loud, it is a pain to scroll through the photo's to find your place again.
Is there a setting to force the saved file back in line next to the file that was edited in Ps?
I've been searching for a command that could actually cut lines for purpose. For example, if I'm drawing a 2 line crossed, wish I could cut the 2 lines so they are now 4 segments. On a circle, I could actually draw a line that pass trough the circle on cut it off the way I wish. Does such command exists for autoCAD? Very often, I've many lines at the same time that I wish I could cut with a single one. The problem is that I don't wish to trim 'em and extend (losing time and long process). Sure there is also the div cmd, but this isn't what I'm seeking for.
I had a problem this morning where for some reason I needed to do a drawing recovery on a map - which is fine, all seems well.
The problem is that now when I type a command, it doesn't appear next to the cursor anymore. It's not really a NEED having it there, but I've gotten to like that in the newer CAD versions, and now I can't find the setting that makes it come back. Sure I CAN type everything and have it show just at the bottom of the screen, but I'd rather have my dynamic field back.
This is the problem I have. When I type something, ie a line length or a command, ie purge, whatever it is I type it is not shown in the command line... what am I doing wrong or what setting do I need to change..
I am writing a API in .NET. I can send commands to the AutoCAd command line using the sendCommand feature but can i access the result returned too? I am not able to find the right class/function the redirect the command result back to my API
I have a problem and as this has happened the first time I fire up autoCAD I can see that I am not going to have as easy a time as I did with 3D studio Max.
I found a tutorial on line, and it was talking about the command line, so i was entering points like it said, fine. I had to put it down as something came up at work. Go back to it to play some more, now I can no longer specify points in the command line, pressing space or enter just clears everything and asks to specify a point again.
What have I don't to make this happen, or is it a bug in the program. I have tried restarting again but still no.
I can't see that I changed any setting (never do) or did anything to make it so the instruction line under the Command: window at the bottom of the screen now expects me to enter text, i.e. In the Command Window we have "open", after I clicked on File / Open, but instead of being taken to the usual drop down of my hard drive the bottom line on my monitor reads, "Enter name of drawing to open <.>: The same thing happens if I try to save a drawing. This is making it extremely difficult to open and save, i.e. to work....
I recently started using v2012 after some time using 2006 2008. I frequently would use the ED command to add text to a dim line but it appears 2012 uses a different command for this.
I've been trying to draw without the command line visible and am liking it. Have been using F2 if I need it while in a command but am finding the text window a bit obtrusive. It also gets hidden when you click in the drawing area.
Is there a way to activate the command line transparently? If you are in a command, Ctrl+9 cancels it.
I was going through some exercises in an ACAD book and floating my command line, etc. and now I can't get it back to it's original place. Or at least when I do it's covers everything there.How do I get it back to normal?
For some reason I cannot get the ATTDEF Dialoge box to stop appearing and get the command line prompts. I have all the system variables set correctly -
FILEDIA = 0 ATTDIA = 0 CMDDIA = 0
The ATTDIA should surpress the diaolog box and give me prompts but it does not.
How do you pause the program to run a command line. Ex. MyDrawing.SendStringToExecute("command", True, False, False). I want to regen the drawing after the command. I am using Autocad 2011.
I used to have my ribbon and commandline next to each other but now whenever I try and put them back next to each other it always ends up with one on top or one on the bottom. I added a picture to try and explain this!