Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

ACAD 2002 Multiple copies

Anonymous

ACAD 2002 Multiple copies

Anonymous
No aplicable

Hello, I'm trying to change the "copy" menu macro ^C^C_copy to be able to select multiple objects then place them multiple times.  I can select multiple objects with the regular command but can only place them once.  I can add "\ m)" to the end of the command and select one object and place multiple copies. But I can't get set the macro so it does both.

 

THANKS 

0 Me gusta
Responder
Soluciones aceptadas (1)
652 Vistas
9 Respuestas
Respuestas (9)

dmfrazier
Advisor
Advisor

Try starting your macro with a "SELECT" command instead.

0 Me gusta

Anonymous
No aplicable

Where do I put the "select"?

 

$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),grip),_copy,^C^C_copy \ m)

 

THANKS for the response

0 Me gusta

dmfrazier
Advisor
Advisor

Between ^C^C and _copy.

Also, pause for user to select objects.

Not sure, but you might have to make sure PickFirst variable is set to 1 also.

0 Me gusta

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

Where do I put the "select"?

....


The SELECT command in a command macro, unlike any other command involving object selection, can take one  backslash for User input, under which you can select any number of things, use any selection options [Remove, Fence, All, etc.], and when you finish the SELECTion, you can go on, giving the Previous selection to the COPY command.  Just that portion of it, through to the Multiple option in COPY:

 

SELECT \COPY P;;M

 

[You can use two spaces after the P -- I just used two semicolons so it's clear there are two, one to "register" the P and one to complete the selection.]

Kent Cooper, AIA
0 Me gusta

Anonymous
No aplicable

I'm sorry, I am stupid on this stuff, what exactly goes between ^C^C and _copy?

0 Me gusta

Kent1Cooper
Consultant
Consultant
Solución aceptada

@Anonymous wrote:

.... 

$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),grip),_copy,^C^C_copy \ m)

....


Looking at that some more, and if I'm reading it right, considering that I have hardly done anything with Diesel so I may have this wrong [I didn't try it]:

 

When Grip-editing, if you have multiple objects selected and you grab a grip and go into the Copy option, it copies only the object that the grip is on.  But if you hit Enter before going into the Copy option, it copies everything selected.  But multiple-Copy mode is automatic in that context.  So try this:

 

$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),grip),;_copy,^C^CSELECT \COPY P;;M)

 

However, it looks like that should go into Copy-everything mode if you have things selected and you grabbed a grip first before picking on the macro, otherwise it will cancel the selection and ask you to SELECT things.  That means if you have things pre-selected and pick on the macro without having grabbed a grip first, it will also cancel your selection, and you'll have to pick things again.  Do you need to have it keep  any pre-selection if you pick on the macro without having first grabbed a grip?

Kent Cooper, AIA

Anonymous
No aplicable

Kent, THANKS for the help.

 

This lets me place 1 selected object multiple times:  $M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),grip),_copy,^C^C_copy \ m) 

 

What goes where so I can select multiple objects to copy to multiple places?

0 Me gusta

Anonymous
No aplicable

Sorry, I sent the last post before I saw this latest one.

0 Me gusta

Anonymous
No aplicable

Your last post did it, THANKS very much, I have been trying different combinations all afternoon.

 

THANKS, again

0 Me gusta