Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Moving objects with the SSGET function

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
630 Views, 5 Replies

Moving objects with the SSGET function

Is it possible when using the SSGET function to assign the first point selected to a variable to be used later?
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

you could make a getpoint instead a ssget, store this point and make an
ssget with this point

topstone2009 wrote:
> Is it possible when using the SSGET function to assign the first point selected to a variable to be used later?
Message 3 of 6
Anonymous
in reply to: Anonymous

I wanted to use SSGET W to select certain objects to be copied and wanted to know if I could use the first point as a base point.
Message 4 of 6
Kent1Cooper
in reply to: Anonymous

Perhaps something like:

{code}
(ssget "W"
(setq pt1 (getpoint "First corner: "))
(getcorner pt1 "Opposite corner: ")
(....filter list if needed....)
); end ssget
(command "_.copy" "_previous" "" pt1 pause)
{code}

--
Kent Cooper


topstone2009 wrote...
I wanted to use SSGET W to select certain objects to be copied and wanted to know if I could use the first point as a base point.
Kent Cooper, AIA
Message 5 of 6
Anonymous
in reply to: Anonymous

Exactly what I was looking for, thank you.
Message 6 of 6
Kent1Cooper
in reply to: Anonymous

You're welcome. If you don't need to filter for object types or characteristics, it could be simpler:

(command
"_.copy" "_window"
(setq pt1 (getpoint))
pause
""
pt1
pause
); end command

Copy will even supply its own prompts. You would still have pt1 stored to use for other purpose(s) later.

--
Kent Cooper
Kent Cooper, AIA

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report