Author Topic: Need Help with a Macro  (Read 2362 times)

0 Members and 1 Guest are viewing this topic.

craigr

  • Guest
Need Help with a Macro
« on: January 16, 2013, 11:28:38 AM »
What I am trying to do is to create a Rectangle then change it to a Revcloud then change it to 0.02 width on a layer called 'Blue'.

Here is what I have and it works flawlessly if I create a Rectangle first then run this macro. What I would like is ONE macro that creates a Rectangle with my mouse, then once I create that Rectangle, the Macro continiues to change it to Recloud, etc..

^C^C_Revcloud;O;Last;;^C^C_.change;Last;;_p;_la;blue;;_.pedit;_m;_p;;_w;0.02;;

Here is what I tried but it hangs on the Rectangle part.

Rectangle;\;_Revcloud;O;Last;;^C^C_.change;Last;;_p;_la;blue;;_.pedit;_m;_p;;_w;0.02;;

I don't see how to combine them - I am probably thinking too hard, as that is usually my trouble.

I would appreciate any help you may offer.

Please notice that I am using LT thus cannot use Lisps.

Craigr


Drafter X

  • Swamp Rat
  • Posts: 578
Re: Need Help with a Macro
« Reply #1 on: January 16, 2013, 11:40:01 AM »
I think you need one more '\' after the rectangle command, its waiting for the second point to be entered before carrying on with the macro I think.
CadJockey Militia Commander

craigr

  • Guest
Re: Need Help with a Macro
« Reply #2 on: January 16, 2013, 11:41:16 AM »
That was my initial thought, kinda like this - Rectangle;\;\;  And it still craps out at the first '\'.

I'm stumped.

Drafter X

  • Swamp Rat
  • Posts: 578
Re: Need Help with a Macro
« Reply #3 on: January 16, 2013, 11:43:06 AM »
no semi between \\;
as soon as you click the first point it is expecting the next, putting the semi in there sends an [enter] which stops the command
CadJockey Militia Commander

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Need Help with a Macro
« Reply #4 on: January 16, 2013, 11:43:38 AM »
Try this Craig:

Code: [Select]
^C^C_.rectang;\\_.revcloud;_O;_L;;_.change;_L;;_P;_LA;blue;;_.pedit;_M;_L;;_W;0.02;;
EDIT: Oops! Looks like I was way too late posting!

craigr

  • Guest
Re: Need Help with a Macro
« Reply #5 on: January 16, 2013, 11:45:54 AM »
PERFECT!!!

I was trying to remember some command that would 'continue' the macro on.

THANKS. - Like usual, I was thinking too hard.

ScottMC

  • Newt
  • Posts: 191
Re: Need Help with a Macro
« Reply #6 on: October 14, 2017, 09:57:22 PM »
This is what I've found for a 'continue' or repeat macro for break@: *^C^C_break \@;
Notice the asterisk[*] in front.. Of course, ESC or select a new command from the menu or toolbar to postpone your next 'break' as it will remain running   :yes:.