Search the Community
Showing results for tags 'shortcut'.
Found 12 results
vl-file-copy pdf with link / shortcut
Manuel_Kunde posted a topic in AutoLISP, Visual LISP & DCLHi all, I have written a lisp that uses the vl-file-copy command to move this PDF to another folder. But this only works for the original pdf, not for the link! Does anyone know if I need to change something in the command to be able to move the link? The file name remains the same: "sheet_cover_building1".
Creating Custom Keyboard Shortcuts with Multiple Object Snaps.
Scottie Fox posted a topic in AutoLISP, Visual LISP & DCLGreetings, everyone. I've been using AutoCAD on and off for the last couple of years but unfortunately I seem to have missed out on learning what appears to be basic / common knowledge amongst the community. When I try searching for solutions to my issues they are always written in ways which seem to assume the reader already understands how to get to a certain point, or is familiar with customising AutoCAD. I've always used AutoCAD (currently 2018) on computers which have been setup by someone else to use their own LISP and PGP files with custom settings, etc. I've tried to find articles which explain the basics (such as what LISP and PGP files actually do and how they work), but it seems a lot harder than it should be to find anything. Currently my biggest issue is understanding how to create my own keyboard shortcuts, especially for Object Snaps. The LISP file I'm using already has some custom shortcuts set up, as per below: ;;;OBJECT SNAP SETTINGS: (defun c:oem () (setvar "osmode" 3) ;;OSNAP ENDPOINT AND MIDPOINT ) (defun c:oo () (setvar "osmode" 14) ;;OSNAP ENDPOINT AND MIDPOINT AND CENTER ) (defun c:oep () ;;OSNAP ENDPOINT AND PERPENDICULAR (setvar "osmode" 129) ) (defun c:oei () ;;OSNAP ENDPOINT AND INTERSECTION (setvar "osmode" 33) ) (defun c:oen () ;;OSNAP ENDPOINT AND NEAREST (setvar "osmode" 513) ) (defun c:oenn () ;;OSNAP ENDPOINT AND NODE (setvar "osmode" 9) ) (defun c:ocm () ;;OSNAP CENTRE AND MIDPOINT (setvar "osmode" 6) ) (defun c:omn () ;;OSNAP MIDPOINT AND NODE (setvar "osmode" 10) ) I've tried adding to and editing these to create my own shortcut but it doesn't work. Basically I want to create a keyboard shortcut (Command: OO) which turns on the following Object Snaps: Endpoint Midpoint Centre (Center) Node Intersection Perpendicular Apparent Intersection Parallel I know most people don't like to work with so many turned on at the same time but this just works for me. It's especially frustrating as whenever I use the Leader or MText command it automatically switches all Object Snaps off and turns on the Nearest Snap only. I have no idea how to change this so that it doesn't alter my Object Snaps, so every time I use either the Leader or MText command I have to manually turn off the Nearest Snap then turn all 8 of my regular Snaps back on. I've tried searching for ways to set default Object Snaps but haven't come across anything. I did find an article which mentioned each Snap having its own value and needing to create a command which equals the total value, but this didn't make any sense to me. I apologise if I seem stupid or ignorant, but I have literally spent weeks looking for solutions and it's just getting so frustrating. I've even tried watching Lynda videos but they don't seem to cover these types of things. Any help would be greatly appreciated, as the guy who was like a Mentor to me and essentially got me started just seems to get frustrated when I ask how to do what are probably simple things (he's an insanely good Facade Engineer with more years AutoCAD experience than I have in life) Thanks again, Scottie. acad.pgp ben2017.lsp
Is there a shortcut for setting a certain dimstyle as default similar to right clicking 'set current as default' (which is available for some features) without going into the dialogue box? It would be fine to do that if the author of the drawings didn't have 50 with similar names. Thanks
Redcorded Macro to shortcut key
Nobull84 posted a topic in The CUI, Hatches, Linetypes, Scripts & MacrosI'm just learning how to utilize recordable macros. I have a simple one that I found how to assign to a tool palette by simply changing the properties command string to "^C^CBottom" and "^C^CTop". These are the titles of the macros I created. The article I found explaining this said you can also assign a shortcut key using the aliaseditor but it does not recognize it as a valid command. Is there a way to either use the aliaseditor or the CUI to assign a shortcut for these recoded macros? Thanks, -Nobull
Wipeout Lisp That helps me avoid the manual typing.
SunnyTurtle posted a topic in AutoLISP, Visual LISP & DCLI was doing alot of wipeout and was not enjoying the typing to create them when i wanted to select the same things each time. I wrote this lisp to help me speed the process up. It is very simple and is great for showing how you can use lisp to create short cuts for autocad comands. I would love the recive comment/critesim for this lisp and anything to help be better understand lisp. ;wipeout shotcut (defun c:wp() (setq pl1 (entsel "\nSelect closed polyline to convert to wipeout:") );setq (command "wipeout" "polyline" pl1 "yes") (command "change" "last" "" "properties" "color" "green" "") );defun one of this issue i had with is lisp is the command function. If you want an ENTER you have to "" not " ".
Polyline Arc - move arc to other side
bachrock posted a topic in AutoCAD 2D Drafting, Object Properties & InterfaceI'm making a polyline arc and would like the arc to go the other way. What button do I press to make that happen? I stumbled upon it one day, but have forgotten the button. Anyone know?
shortcut for "A" icon on top-left of ACAD2010
khoshravan posted a topic in AutoCAD GeneralWhat is the shortcut for "A" icon on top-left in AutoCAD 2010?
How can I draw square rapidly
khoshravan posted a topic in AutoCAD GeneralI want to draw a square with a line as its side given. I am looking for a rapid solution, like pressing shift while using rectangle command to make two sides equal. Is there any such a short cut for square?
Right click short-cut menu settings
cbat posted a topic in AutoCAD Beginners' AreaI use Autocad 2011, I'm a bit of a Cad newb, and I appear to have somehow messed up my right click short-cut menu settings. Before, I could right-click and get all of the edit options (delete, move, rotate, draw order, properties, select similar, etc.). I could get these options whether an object was selected or not. Now, my options are the "default" ones (Repeat, Pan, Zoom, Quick calc, etc, to name a few). This happened after I made an adjustment to the drawing in a viewport. Ie. I was in layout, clicked into model space to draw a line, then clicked back to paper space. I NEVER do this (I always switch back to model to edit), except for this one time. Also, if I select an object and hit "delete" on the keyboard, nothing happens. I've already tried adjusting the "shortcutmenu" command number, and nothing really changes in the shortcut menu itself. Also, when keying in a command, the keystrokes used to show up beside my cursor, but now they show only in the command line at the bottom. That's not really a big deal, but I did like the previous function. Any advice anyone could give me would be much appreciate. Remember I'm a newb, so please provide step-by-step instructions, if possible. Thanks!
Torient Command and Lisp
SunnyTurtle posted a topic in AutoLISP, Visual LISP & DCLHi all I am having a problem with the TORIENT command which aligns text and other stuff to a particular angle for example a line Now i am very lazy and have millions of text to align with different line i wanted to make a shortcut to this command an i created this lisp [font=Tahoma](defun c:to () (command "torient"))[/font] But I doesn't work for me it says that it is an unknown command. But when I type it in manually it works fine If this helps there is a variable torient i looked that up using !torient
Create Shortcut Through AutoLISP Code
Ahankhah posted a topic in AutoLISP, Visual LISP & DCLHello friends, how is it possible to make a shortcut by AutoLISP programming. I mean creating a file with .lnk extension which refers to an executeable file in Windows.
Macro command in command prompts shortcut?
Benjo posted a topic in AutoCAD 2D Drafting, Object Properties & InterfaceHi, I have created a macro command for my "dimaligned" so that every time i click on macro button and create a dimaligned it turns onto the good layers and i wanted to know if it is possible to remplace or create another dimaligned shortcut command (dal) by that macro command that i created. So everytime i would type Dimaligned or dal on the command prompts it would be my macro and not the standart dimaligned command. Is it possible? Heres my macro, ^C^C_-layer;_make;A-ANNO-DIMS;;_dimaligned; Thanks!