PDA

View Full Version : selection sets and program logical order



Croftyno1
5th Jan 2011, 10:44 am
I have 6 selections sets in my lisp routine
ss1, ss2, ss3, ss4, ss5, ss6

I also have 6 programs in the same lisp routine and each program uses one selection set in the order as above.

My problem is that if there is no value for ss1 for the first program, it will not continue to run the next one along. Having said that if I have a value for every selection set the routine works fine.

How would I write the code to say, if no ss1 then continue to the next progam, if no ss2 then run the next program etc.

The value for my selection sets are (layers).


- Crofty -



Whose idea was it to put an "S" in the word "lisp"?

David Bethel
5th Jan 2011, 11:10 am
1 way would be:



(if (> (sslength ss1) 0)
do_process1)
(if (> (sslength ss2) 0)
do_process2)
(If (> (sslength ss3) 0)
do_process3)

etc...


-David

MarcoW
5th Jan 2011, 11:11 am
Why not post the code you have? We might have a better view on the case.
Regards,
MarcoW

edit: David beats me

Croftyno1
5th Jan 2011, 12:01 pm
Hi Marco,

Ive attached a drawing and the lisp routine.

It basically calculates quantities and works you pick a window around all the different lines. If you tried it without one of the lines it doesnt continue on to the next calc.
25565
25564