Author Topic: Macro help?  (Read 2002 times)

0 Members and 1 Guest are viewing this topic.

craigr

  • Guest
Macro help?
« on: March 02, 2010, 11:25:43 AM »
I have a couple of different macros that work -

^C^C_snap;off;Change;\;p;c;blue;;
&
^C^C_snap;off;copybase;0,0;\;erase;previous;;Z;extents;Snap;on;pasteblock;0,0;z;previous;

The first is used to simply change a words color to Blue.
The second is used to copyclip then pasteblock into the same location.

I use these to make a word blue and stay that way unless someone explodes the block. (the word is usually 'NOTE ##').

When I combine these 2 macros into ONE macro, it craps out after changing the word to Blue.

What am I missing here?

craigr

M-dub

  • Guest
Re: Macro help?
« Reply #1 on: March 02, 2010, 11:30:40 AM »
When you're 'troubleshooting' any macro, your F2 button is your best friend.  It's mine, anyway.  The command line will show you exactly where the macro gets hung up.

craigr

  • Guest
Re: Macro help?
« Reply #2 on: March 02, 2010, 11:31:42 AM »
I agree.

I know WHERE is is hanging, I just can't figure out why.


JCTER

  • Guest
Re: Macro help?
« Reply #3 on: March 02, 2010, 11:32:43 AM »
Can you paste the command line jargin?

M-dub

  • Guest
Re: Macro help?
« Reply #4 on: March 02, 2010, 11:33:43 AM »
Can you copy and paste the command line text in here?

Can you paste the command line jargin?

craigr

  • Guest
Re: Macro help?
« Reply #5 on: March 02, 2010, 11:34:16 AM »
Is this what you mean?

Command: _snap

Specify snap spacing or [ON/OFF/Aspect/Style/Type] <0.0500>: off

Command: Change

Select objects: 1 found

Select objects:
Specify change point or [Properties]: p

Enter property to change
[Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/Material/Annotative]: c

New color <BYLAYER>: blue

Enter property to change
[Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/Material/Annotative]:

Command:
Command:
Command: _copybase
Specify base point: 0,0

Select objects:

M-dub

  • Guest
Re: Macro help?
« Reply #6 on: March 02, 2010, 11:37:34 AM »
For the objects you're selecting to copy, are you doing a window or a single object selection?

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Macro help?
« Reply #7 on: March 02, 2010, 11:48:34 AM »
try using P for previous seletion set...
Be your Best


Michael Farrell
http://primeservicesglobal.com/

craigr

  • Guest
Re: Macro help?
« Reply #8 on: March 02, 2010, 12:13:55 PM »
try using P for previous seletion set...

That and an extra ; did the trick.

^C^C_snap;off;Change;\;P;C;blue;;^C^C_copybase;0,0;P;;erase;previous;;Z;extents;pasteblock;0,0;z;previous;

Thanks