Search the Community
Showing results for tags 'button'.
-
Redefining a block via a custom marco button
mrgrotey posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hi guys, long time no post. I have a LOT of drawings all with the same block in and I have updated the block so therefore want to redefine all the blocks, ...as you do. I only have autocad LT 2010 so havent got the LISP coding option. I am trying to do it by assigning the following example code to a button and running it. The only problem is it doesn't run it properly... block name for example is 'box' C^C^_-insert;box=C:\users\michael\desktop\box.dwg;y;C^C^ All the individual lines work when typed but when used in the button macro it stops at: C^C^_-insert;box=C: ...and doesnt accept the backslash and so stops the macro from continuing. How can I get it to run a file path??? this is doing my swede in -
I have two lisp routines I'm using to enforce some CAD standards in our office. The first, STANDARD11x17, changes Dimensions, MLeaders, and MText to the appropriate styles. It prompts the user to "Include MText?" Yes or No. The second, NORMAL, changes all layer plot style names to "Normal". I've created toolbar buttons for these, using ^C^C (load "normal") normal When I type in the commands at the command line, everything works fine, but when I try to use the NORMAL button after running STANDARD11x17, I get the following error: Command: STANDARD11X17 Include MText?(load "normal") Can't reenter LISP. Invalid option keyword. Please help!
-
Hi all, I'm trying to set up a button in my ribbon for a simple process I very regularly perform in AutoCAD 2010 LT. basically I want to: 1. Select everything in the model view (through an already active viewport) 2. Erase it all 3. Purge everything 4. Paste in whatever is in the clipboard memory (previously copied from a different drawing) and locate it at 0,0 coords. 5. Zoom Extents 6. Zoom out to 97% The macro below works perfectly fine as long as there were originally objects in model space to start with, but if I try this with a new file that has no model space objects (I only want one button) it stops at the 'select all' stage and refuses to continue. The error is the standard "Selecting objects...*error*" code and stops there. ^C^C_ai_selall;erase;all;^C^C_purge;a;*;n;^C^C_pasteclip;0.0;^C^C_z;e;^C^C_z;s;0.97x; Is there a way I can get this to work for both intances, when there are objects in model space AND when there are not? Michael
-
Polyline Arc - move arc to other side
bachrock posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
I'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?