Author Topic: Macro Commands  (Read 21427 times)

0 Members and 1 Guest are viewing this topic.

hudster

  • Gator
  • Posts: 2848
Macro Commands
« Reply #15 on: February 05, 2004, 10:10:11 AM »
That worked for me although if you want it to keep running put a * at the start so you have the command as

*^C^C_DDEDIT;\;_ATTEDIT;
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

VerticalMojo

  • Guest
Macro Commands
« Reply #16 on: February 05, 2004, 10:12:23 AM »
sweet.... learn something new everyday.

hudster

  • Gator
  • Posts: 2848
Macro Commands
« Reply #17 on: February 05, 2004, 10:14:07 AM »
Vertical I loved your Mtext editor macro su much I made a button image for it.



available here http://theswamp.org/lilly.pond/Hudster/notepad.bmp
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

VerticalMojo

  • Guest
Macro Commands
« Reply #18 on: February 05, 2004, 10:33:55 AM »
How about this?

*^C^C_Craig;reply;Jokes;
 
:lol:  :lol:  :lol:

hudster

  • Gator
  • Posts: 2848
Macro Commands
« Reply #19 on: February 05, 2004, 10:34:30 AM »
Here's a macro command to open the windows calculator

^C^C_START;C:/I386/CALC.EXE;

This is the default location for windows calculator under Xp, I Don't know if it's the same for all versions.
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

Craig

  • Guest
Macro Commands
« Reply #20 on: February 05, 2004, 10:40:43 AM »
Quote from: VerticalMojo
How about this?

*^C^C_Craig;reply;Jokes;
 
:lol:  :lol:  :lol:

Hey! :?  :shock:  :?  :(  :oops:  :cry:

VerticalMojo

  • Guest
Macro Commands
« Reply #21 on: February 05, 2004, 10:46:48 AM »
Oh craig.... I enjoy them!  :D

How do you get so many?

Hudster, On mine it dosent recognize _Start....?

hudster

  • Gator
  • Posts: 2848
Macro Commands
« Reply #22 on: February 05, 2004, 11:00:38 AM »
mite be a just full cad thingy then.
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

ELOQUINTET

  • Guest
Macro Commands
« Reply #23 on: February 05, 2004, 11:02:11 AM »
here's a couple of mine. question though about the last two. what do i add to have the layer switch back to the previous after it hatches?

sets layer to 0 then performs block command:

^C^C(command "-layer" "n" "0" "c" "WHITE" "0" ) ;setvar clayer "0";b

sets layer to 0-by others then performs hatch command:

^C^C(command "-layer" "n" "0-BY OTHERS" "c" "9" "0-BY OTHERS" ) ;setvar clayer "0-BY OTHERS";hpname;stipple;hpscale;1;bhatch

sets layer to 0-hatch then performs hatch command:

^C^C(command "-layer" "n" "0-HATCH" "c" "9" "0-HATCH" ) ;setvar clayer "0-HATCH";hpname;STEEL;hpscale;1;hpang;0;bhatch

ELOQUINTET

  • Guest
Macro Commands
« Reply #24 on: February 05, 2004, 11:21:08 AM »
anybody know if i could add something to qleader to turn the capslock on. that would be great!

VerticalMojo

  • Guest
Macro Commands
« Reply #25 on: February 05, 2004, 11:23:39 AM »
Quote from: Hudster
mite be a just full cad thingy then.


Awww shucks...... theres got to be a way :?

daron

  • Guest
Macro Commands
« Reply #26 on: February 05, 2004, 11:24:18 AM »
(command "-layer" "n" "0-HATCH" "c" "9" "0-HATCH" );(setq var (getvar 'clayer));setvar clayer "0-HATCH";hpname;STEEL;hpscale;1;hpang;0;bhatch;/;(setvar 'clayer var);

Not sure about that part between bhatch and the reset, though.

ELOQUINTET

  • Guest
Macro Commands
« Reply #27 on: February 05, 2004, 12:21:13 PM »
daron not working, here's the results i get:

Command: (command "-layer" "n" "0-HATCH" "c" "9" "0-HATCH" )
-layer
Current layer:  "ALUMINUM"
Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAte]:
n
Enter name list for new layer(s): 0-HATCH
Layer "0-HATCH" already exists.
Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAte]:
c
Enter color name or number (1-255): 9
Enter name list of layer(s) for color 9 <ALUMINUM>: 0-HATCH Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAte]:
nil
Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAte]:
(setq var (getvar 'clayer))
"ALUMINUM"
Invalid option keyword.
Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAte]:

daron

  • Guest
Macro Commands
« Reply #28 on: February 05, 2004, 12:28:32 PM »
Don't create a new layer called "o-hatch". If you want to make sure it exists, use make not new.

VerticalMojo

  • Guest
Re: Macro Commands
« Reply #29 on: February 05, 2004, 12:39:36 PM »
Quote from: Hudster
Rotate Selected Attributes to zero degrees (note this macro runs till escape is pressed)
*^C^C-attedit;Y;;;;\;a;0;;


try this......

*^C^C-ate;YES;;;;\;ANGLE 0;POSITION;\;

you may have to add a ; at the end if you have full version of cad.....
Allows you to rotate the attribute and then position it.....