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

Using PICKFIRST

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
aluster
1218 Views, 2 Replies

Using PICKFIRST

I thought this would be a simple thing to do but I could not find anything on it. I want to be able to use the currently selected entity in a LISP routine. For example, I would start with (setq ent (entsel)) but if an entitiy was already selected, it would use that instead of prompting for a selection. Any help?

 

Thanks,

Andy

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: aluster

This will make a selection set from the currently selected entities, not necessarily one entity though

 

(setq ss1 (ssget "_I"))

 

 

Message 3 of 3
aluster
in reply to: Anonymous

Thats just what I need. Thank you very much.

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

Post to forums  

Autodesk Design & Make Report

”Boost