hosyn 发表于 2022-7-5 15:12:08

How we can use (AND OR) logica

Hey Guys
4 basicallyquestion :
1- How we can use (AND OR) logical in autolisp and equvant those in lisp
2-Are there any equivalent command JUMP in lisp.
3-In the following codes hhh vvv ccc selection set was chosen. Are there any function for summing them together.

(setq hhh (ssget))(setq vvv (ssget))(setq ccc (ssget))
4-Are there any parameter for ssget to select totally object and entity in a drawing.

BIGAL 发表于 2022-7-5 15:30:41

1 There is lots of examples of and / or here look at code by Tharwat he uses this method a lot.
2 Jump ? You can call defuns in the middle of code and return to next line etc I know did it for a bubble sort routine needed a left and right option choice.
3 look into ssadd.
4 look at ssget filters there are lots "X" come to mind.

Tharwat 发表于 2022-7-5 15:33:49

Thank you BIGAL for your recommendations.
 
@hosyn, more explanations is needed.

hosyn 发表于 2022-7-5 15:47:57

I really apprecieat your helping me:)
How way became better in vl lisp. I intend learn more about it and the web is only thing i can use it. Any recommend to start proper way efficiently?

Tharwat 发表于 2022-7-5 15:59:02

 
Did you get what you wanted working now or still in need of helping hand ?

hosyn 发表于 2022-7-5 16:10:47

Indeed my majordesigning, often need to some vlisp programming

Jef! 发表于 2022-7-5 16:13:39

If you want to learn I suggest you start by looking at http://www.afralisp.net/index.php
Great resource to learn!
页: [1]
查看完整版本: How we can use (AND OR) logica