PDA

View Full Version : Selections Problem



vaggelis.1109
2005-12-29, 09:41 PM
Hello, i am learning autolisp ( from internet courses ) and i work on for a short time.
i want to make a program that creates a 3D-tube but i have a problem(not only for that attempt but general).
I can't make selections between 2 or more objects.The selections are easy for me only when i can use the command ''all'' and ''last'', but that constrains me with multiple objects in the drawing area.I tried to use coordinates to select an object but something went wrong with car and cadr and the program did not respond.
I would appreciate any help but can anyone give me a simple routine for a selection so i can see and learn how the system works?

Thanks for the attention and any effort!

vaggelis

rkmcswain
2005-12-29, 09:57 PM
Are you trying to allow the user to select objects, or are you trying to programatically select object by using a crossing window, polygon window, or some other method?

Are you using (ssget)?

vaggelis.1109
2005-12-29, 10:37 PM
i want to make the selection using crossing or polygon window or fence.My concept is to provide the user the way to draw something by using only the keyboard or with the least use of the mouse

Opie
2005-12-29, 10:41 PM
i want to make the selection using crossing or polygon window or fence.My concept is to provide the user the way to draw something by using only the keyboard or with the least use of the mouse
Can you post what you have so far? Someone here will be able to help you out better.

rkmcswain
2005-12-29, 11:55 PM
i want to make the selection using crossing or polygon window or fence.My concept is to provide the user the way to draw something by using only the keyboard or with the least use of the mouse

Do you understand the (ssget) function?

Read up on this in HELP. Everything you need to know is in there.

Example: (ssget "_F" (list (list 0 0)(list 1 1)(list 3 1)(list 5 5))) will create a selection set of objects crossing the fence defined by points (0,0) (1,1) (3,1) & (5,5)