Author Topic: Macro Commands  (Read 21705 times)

0 Members and 1 Guest are viewing this topic.

ELOQUINTET

  • Guest
Macro Commands
« Reply #60 on: February 09, 2004, 12:15:08 PM »
true true i have a couple brain cells left  :wink:

VerticalMojo

  • Guest
Macro Commands
« Reply #61 on: February 10, 2004, 09:56:58 AM »
I'm trying to tweak this button so that when it positions the attribute the insertion point is true. For some reason my insertion point is not in the place I want it and when I pick a position it's not exactly where I want it placed..... Any Ideas?  :?

Thanks in advance...

Allows the user to rotate the attribute then position it.
*^C^C-ate;YES;;;;\;ANGLE 0;POSITION;\;

hudster

  • Gator
  • Posts: 2848
Macro Commands
« Reply #62 on: February 10, 2004, 10:24:26 AM »
I tried this and it seems to go where I want it to go.

It looks like it moves slightly when I move the attribute to an intersection point, but when I draw a line from the insertion point of the attribute it's line is from the intersection point I moved it to. :?   (I hope that made sense).
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

M-dub

  • Guest
Macro Commands
« Reply #63 on: February 10, 2004, 01:12:56 PM »
Some of these may have already been posted...well I know they were a few months ago...I haven't been in here for a while.   :oops:

1.  Page Setups
Create a drawing called PageSetups.dwg and in it, go to File > Page Setup...
Add a page setup for each print job you could possibly have.  For example,
A-Mono-Landscape
B-Mono-Landscape
D-Mono-Landscape
B-Colour-PDF-Landscape
...and so on...
Save PageSetups.dwg in your AutoCAD/Support directory and try the macro below.
It makes printing and plotting in AutoCAD 2k and later a snap!

^C^C.-PSETUPIN "PageSetups.dwg" "*"

2. Insert Block with Dialog Box
Opens a file dialog box for you to select a block to insert. (The reason for this is to give you a preview...it almost acts as a slide library that way)

^C^C(setq BlockName(getfiled "Select drawing file" "C:/DRAWINGS/" "DWG" 0))(command "-INSERT" BlockName)

3.  Windows Explorer
To open Windows Explorer in the folder containing the current drawing open in AutoCAD:

^C^C(COMMAND ".BROWSER" (GETVAR "DWGPREFIX"))

4.  Change Text Width
CHtext.lsp must be loaded for this macro to function properly.

^C^CCHT;\\;W;\;

5.  Delete Nul Entities and Purge Them
Deletes Nul Entities - Such as empty text strings and empty blocks - Once deleted, blocks must be purged from drawing.  W:\Menus\LSP\Delnul.lsp must be apploaded for this function to work.

^C^CDELNUL;PURGE;

6.  (a)Open ACAD.PGP & (b)Reinitialize it
(a) Opens acad.pgp in Notepad so you can add or change more of your key-ins.

^C^C^P(command"notepad"(findfile"acad.pgp")) ^P

(b) After you make a change to the acad.pgp file, it must be reinitialized for the changes to take place.

^C^C_RE-INIT 16

7.  Global Attribute Edit
The standard AutoCAD attedit command with a bit of it done for you…

^C^Cattedit;N;;;;;\\;

ELOQUINTET

  • Guest
Macro Commands
« Reply #64 on: February 10, 2004, 01:23:10 PM »
can someone give me some help with how to modify my stretch to have ortho turned on before beggining:

$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),GRIP),_stretch,^C^C_stretch)

thanks

Spageddie

  • Guest
Macro Commands
« Reply #65 on: February 10, 2004, 05:56:42 PM »
8) just add orthomode;1; to the begining of the code, to set ortho ON

daron

  • Guest
Macro Commands
« Reply #66 on: February 10, 2004, 06:02:18 PM »
That is in your own menu file, right?

ELOQUINTET

  • Guest
Macro Commands
« Reply #67 on: February 10, 2004, 06:56:49 PM »
mmm no should i add any buttons i customize to my menu. hmmm that a dumb question. i know i should but i'm trying to build a menu for everyone in my office and not sure if they'd use some of my macros. i guess i should add it to mine so if my job goes south i can easily take all my tools with me. i'll give it a try tomorrow thanks guys

VerticalMojo

  • Guest
Macro Commands
« Reply #68 on: February 16, 2004, 02:10:57 PM »
Whats the Macro command for the Osnap toggle? I know snap is ^b.......

Thanks

daron

  • Guest
Macro Commands
« Reply #69 on: February 16, 2004, 02:44:30 PM »
ctrl+f

VerticalMojo

  • Guest
Macro Commands
« Reply #70 on: February 16, 2004, 02:59:54 PM »
Thanks Daron!  :)

daron

  • Guest
Macro Commands
« Reply #71 on: February 16, 2004, 03:02:23 PM »
ctrl+a controls group selectability, if you're interested.

42

  • Bull Frog
  • Posts: 483
Macro Commands
« Reply #72 on: February 16, 2004, 04:09:35 PM »
Not if some weasealy wrascal changed it to select all!! I now have a button with pickstyle as a macro.
Alastair Mallett Autodesk Certified Professional
Technical Director
Hunters South Architects

Spageddie

  • Guest
Macro Commands
« Reply #73 on: February 16, 2004, 11:33:41 PM »
8) Actually Daron,,that is ok for Acad2000 but for Acad2002 onwards it is
CTRL+SHIFT+A to toggle groups on/off

daron

  • Guest
Macro Commands
« Reply #74 on: February 16, 2004, 11:46:14 PM »
Worked on my 2004.