Yesterday I was cruising along as normal when all of the sudden my escape key stopped working. I believe it happened after I accidentally loaded the dbconnection manager or something similar but not sure. When I envoke a command, the escape key does nothing. When I select something and hit the escape key, it doesn't deselect everything. I know it's not my keyboard because I'm using a laptop and both the attached keyboard and the keyboard on the laptop function the same in that the escape key doesn't work. I also have a Logitech Performance MX with a button set as the escape command and that doesn't work. When I type in cancel or ^c^c, the response is "unknown command".
Something I have found useful in day to day drafting is changing the F1 key to a secondary escape button. This way you won't have to wait for the help window to appear.
I have a vb.net Autocad add-in which runs an iterative routine with a while..wend loop that often takes a few minutes to finish. The routine is very stable and always restores user control eventually, but if the user hits the escape key while it is running, a fatal error occurs in acad.exe.
if there is a way to detect that the escape key has been pressed so the routine is exited?
Any way to trap when the user hits the escape key without a user input function. The idea is to loop infinitely and perform some analysis until the user hits the escape key.
I suppose I could do the same thing with a form but I would not.
show me an event handler (or whatever is needed) for bailing out of an AddIn? I'm using VB.net. The end users would prefer to use the ESCAPE key for this.
To reproduce this bug, you must set the Command Line in the new semi-transparent style as featured in AutoCAD 2013. If it's docked in old-fashion like previous AutoCAD versions, the bug won't work.
When there's no command active, you have the following Command Line with the text "Type a command":
If you press the Escape key to cancel (weither you're in a command or not), AutoCAD focus on the command line with a bar sign and the transparent background turns white:
Now if you move the crosshair with your mouse in the drawing area, the Command Line bar sign will revert back to the "Type a command" text, which is fine.
But if the mouse cursor hovers the Ribbon region and you press the escape key, and then you click a Ribbon button, instead of executing the button's command/macro, the Command Line will simply revert to the "Type a command" text. So in the Ribbon area, if you want a Ribbon button to work, you must not have the bar sign in the Command Line. This gets annoying when you often have the habit of pressing escape while in a command and having the mouse ready to chose another command in the Ribbon.
My guess is that the new Command Line format in 2013 may have focus priority issues with other AutoCAD pallettes like the Ribbon. In AutoCAD 2012, the Command Line did not have a friendly "Type a command" message. So it probably has to do with this new implementation when AutoCAD decides when you have the "Type a command" text or the sign bar.
I know the way to sendCommand to AutoCAD will cancel one order . I mean is there any other way to use .net API to cancel one order but not using 'SendCommand'
I want to cancel deletion of certain Part Feature (where PartFeature.Name starts with ''I_''). In my dll, I capture « DocumentEvents.OnDelete ».
private void PartDocument_OnDelete(object o, BeforeAfterEnum beforeAfter, NameValueMap context, out HandlingCodeEnum handlingCode) { if (beforeAfter == BeforeAfterEnum.Before) { if (((PartFeature)o).Name.StartsWith(‘’I_’’)) { MessageBox.Show(‘’You cannot delete ’’I_*’’ part features.’’); // MISSING CODE HERE TO CANCEL DELETION !!! } } }
First I thought that putting « handlingCode » to « HandlingCodeEnum.evtCancelHandle » would do the job, but when I read the API, it says that Inventor doesn’t care about that output argument. Then, how can I cancel the deletion of an object when capturing ‘On Delete’ event ?
I work in AI more than PS, so my habits from AI are hard to break. One interface difference I ran across was the "esc" key functionality. In AI hitting "esc" saves current changes in the symbol editor and moves the user back to the artboard. In PS, hitting "esc" cancels any editing tool, such as "transform" or "Puppet Warp" without saving changes. While the PS "esc" function is probably more appropriate, it is annoying for someone who is used to the AI worflow. Image my frustration when I worked diligently on a "Puppet Warp" session and lost it all by hitting "esc". Noticed this inconsistancy in the two programs?
Any way this can happen in a reasonable time frame, say in a release or 2,since view creation takes so long?Or did you development guys sneak that into R9?
It is possible to cancel a command using visual lisp reactors. If this is not there another way I could do that. I tried to use UNDEFINE but it works only with own CAD commands and not with Visual Lisp command.
Is it possible to add a stop or cancel button onto ilogic code?
I have code that looks into all .ipts with a certain material type,that works great but if we run by accident there is no way of stopping code until it finishes .
I'm having the "Arbor Press " as a project..I did everything except the 4 screws that we place in the Cover Plate..i don't know how they look like but i got a description of it that i cant understand "Cover Plate Screw ... (8-32 UNC x .50 cap screw)"I'm using Autocad 2008 & i have to draw it in 2D.
Alright, so I was using this site earlier to create a 3D park where, because of how I cad, was told to use the "press and pull" command on closed objects as they will be pulled or pressed into 3D shapes.
Up to this point it has worked on every structure I can think of but this time around it has not.
I am working on a Whale Slide for the park and, for some reason, I am unable to press/pull the parts out in order to complete the 3D effect.
This is the area I am tryin to press/pull:
Whale Slide Selection.jpg
Now, as you can see the entire slide is not complete yet. The reason being that I don't want to cad it all out only to find that it doesn't work. The "tail" part of it was avle to form pefectly fine but this part will not. I have tried the loft, swipe, etc. commands but they never make a solid object which is what I need. The lines are all connected and I've pressed/pulled angles before so I'm not to sure what is wrong.
Here is the file incase you need it: Whale Slide.dwg
I have two menus that I use often and I would like to add them to my mouse buttons. Attached is a picture of the two menus I like and the two buttons. The Shift + Click has the correct menu already (Osnap menu2) my problem is adding my custom menu to the CTRL + Click doesn't work. I labeled Osnap Menu 1 and 2, 1 being the custom menu I have use in the past and 2 being the default osnap menu that comes with the cui file. How to get the second button to read my menu rather than both read the same osnap 2 menu?
we do a lot of sheet metal fabricaton, using inventor and autocad to create the drawing for a laser then the pars are formed on a press brake.
My problem is showing necessary diminsions for the press brake when there are 2 or more bends. The first bend is no problem I can show the diminsion from the edge to the bend for the backgauge setting, the second bend needs a diminsion from the flange of the first bend to the bend line of the second bend for a back guage setting. That is the diminsion I am having trouble showing on the drawings.
I would like to give the press operator the backguage settings on the drawings.for each part.
I've installed PDS premium 2012 and when I would like to use a shortcut it doesn't work. I have to push enter after pushing the shortcut. On the other computers of our R&D dept shortcut work properly.
I am using Autocad LT 2011 and when i press the hatch button it shows the comment 'not responding' at the top of the page and it takes about 15-20 seconds to repsond and when it does eventually respond it doesn't allow me to change the scale until after i have chosen an area which in some case proves a problem if the scale is very small.
I can't find a keystroke or combination of keystrokes that will issue the "escape" command in a script file without ending the script. In other words, I want a line in the script which will issue the "escape" command and then go to the next line of the script and continue on.
For some days when I press the open button or print button on the toolbar, Autocad LT 2008 does not respond until after two or three minutes and opens the window.
I noticed that this only happens when I have enabled LAN. The "plotter" that I use is shared by a print server and when I hit the open button, the default folder that shows me a folder on the server.