copy selected objects to selected points

copy selected objects to selected points

cool.stuff
Collaborator Collaborator
1,367 Views
3 Replies
Message 1 of 4

copy selected objects to selected points

cool.stuff
Collaborator
Collaborator

Hi!

 

I need a lisp to copy selcted objects to selected points.

 

I've found this:

 

https://www.cadtutor.net/forum/topic/50163-copy-and-paste-on-multiple-points/

 

The proble is that if I use a diferent ucs it assumes the global not the local, I think..

 

Can someone help please?

 

Many thanks!

0 Likes
Accepted solutions (1)
1,368 Views
3 Replies
Replies (3)
Message 2 of 4

ВeekeeCZ
Consultant
Consultant
Accepted solution

Try this change

(setq pt (cdr (assoc 10 (entget entpt))))

 

to 

(setq pt (trans (cdr (assoc 10 (entget entpt))) 0 1))

 

Message 3 of 4

cool.stuff
Collaborator
Collaborator

It works like a charm! :))

 

Many thanks!!!

0 Likes
Message 4 of 4

stevor
Collaborator
Collaborator

If trans worked, and you have more to do, 

this old subr is the same:

 

; return UCS coords
(DeFun Dxf_EU (gn edL / vv )
 (if (and (setq vv (cdr (assoc gn edL)))
               (member gn (list 10 11 210 )))  ; others  codes may exist
   (trans vv (cdr (assoc -1 edl)) 1) vv ) )  ; 

S