Code Red => AutoLISP (Vanilla / Visual) => Topic started by: 2e4lite on February 22, 2014, 05:20:33 AM
Title: About swap position of entities
Post by: 2e4lite on February 22, 2014, 05:20:33 AM
Who can help me to improve the following routine: It's required that the routine provides three methods to specify base point: 1.According to the middle point that is selected entities by user as the base point to swap position of entities(the default). 2.With the insertion point of block or text as the base point to swap position of entities. 3.According to the point is specified by user as the base point to swap position of entities. thanks!
Title: Re: About swap position of graphics
Post by: irneb on February 22, 2014, 05:36:05 AM
Sorry, I had difficulty understanding your description. Though it seems you want a swap-move command ... something like this: http://www.cadtutor.net/forum/showthread.php?47900-quot-Swap-quot-lisp-doesn-t-work-in-Acad-2010
Title: Re: About swap position of graphics
Post by: 2e4lite on February 22, 2014, 06:00:11 AM
It does a swap-move command .Just want to add some methods of specifying base point .
Title: Re: About swap position of entities
Post by: 2e4lite on March 09, 2014, 06:14:04 AM
When Select first object and second object in following routine , It 's use entsel function,Who can modify the routine by using ssget function instead of entsel function.thanks!
Title: Re: About swap position of entities
Post by: snownut2 on March 09, 2014, 11:55:06 AM
Appears he got it from the link supplied by irneb, from Alanjt's post, (I assume that's the root of your question) however he removed the header indicating the author.... :realmad:
Apparently reading many previous post regarding this subject (removing authors information) is beyond his comprehension level.
Title: Re: About swap position of entities
Post by: CAB on March 10, 2014, 01:20:11 PM
Thanks for point that out. I added the headers back in both lisp.