CAD Forums > CAD General

Need Help with a Macro

(1/2) > >>

craigr:
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:
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.

craigr:
That was my initial thought, kinda like this - Rectangle;\;\;  And it still craps out at the first '\'.

I'm stumped.

Drafter X:
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

Lee Mac:
Try this Craig:


--- Code: ---^C^C_.rectang;\\_.revcloud;_O;_L;;_.change;_L;;_P;_LA;blue;;_.pedit;_M;_L;;_W;0.02;;
--- End code ---

EDIT: Oops! Looks like I was way too late posting!

Navigation

[0] Message Index

[#] Next page

Go to full version