Select multiple objects at once instead of one at a time

Select multiple objects at once instead of one at a time

cool.stuff
Collaborator Collaborator
416 Views
2 Replies
Message 1 of 3

Select multiple objects at once instead of one at a time

cool.stuff
Collaborator
Collaborator

Hi!!

 

I've found this useful lisp to copy elements into the current drawing.

 

(defun c:nc ( / nc-cmd )
(setq nc-cmd (command "_.ncopy" "\\" (command) ))
(cond
((= nc-cmd nil) (prompt "\nMissed.. Try again!\n")(c:nc))
);cond
(princ)
)

 

The thing is that I have to select one object at a time..

Is there a way to select with the mouse window selection all object that we want and then execute the same command for each object? 🙂

 

Many many thanks in advance 🙂

0 Likes
Accepted solutions (1)
417 Views
2 Replies
Replies (2)
Message 2 of 3

Moshe-A
Mentor
Mentor
Accepted solution

@cool.stuff  hi,

 

First let understand what this lisp do...it copy\import object from block or xrefs into your current drawings.

because select objects knows to select only main objects (and not nested objects) the nature of selecting nested objects is by (nentsel) function which is done by pick one by one.

 

i think there is a way to do want but it is not worth the effort of coding. instead you can just move/copy the block nearby, explode it and take what you need - makes sense?

 

Moshe

 

 

Message 3 of 3

cool.stuff
Collaborator
Collaborator

Many thanks for your answer 🙂

 

Yes, I believe in you. Maybe it is not worth it.

As you said, better copy directly instead 🙂

 

Anyways, thanks for your time!! 🙂

0 Likes