Anuncios

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

Kent1Cooper
en respuesta a: Anonymous


@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