Jump to content

ssget Logical Operators


samifox

Recommended Posts

hi

 

trying to figur out how the ssget logical operator works...by Lee's website

 

:
(ssget '((0 . "TEXT") (-4 . "<OR") (40 . 1.0) (8 . "0") (62 . 3) (-4 . "OR>"))) 

 

Selects text objects with text height of 1.0 or layer "0", or with colour set to 3 (green), or a combination of all of these properties.

 

what is -4 dxf group code?

 

OR wont stop when the expression is T? than why or a combination of all of these properties?

Link to comment
Share on other sites

;;; restric selection to Arcs, Circles, Elipses, Lines, LWPolylines, 2D (Heavy) Polylines, 2D Splines & Points.
            (setq sel
                (ssget
                   '(   "_:L"
                        (
                            (-4 . "<OR")
                                (-4 . "<AND")
                                    (0 . "ARC,CIRCLE,ELLIPSE,LINE,*POLYLINE,POINT")
                                    (-4 . "<NOT")
                                        (-4 . "<AND")
                                            (0 . "POLYLINE") (-4 . "&") (70 . 88)
                                        (-4 . "AND>")
                                    (-4 . "NOT>")
                                (-4 . "AND>")
                                (-4 . "<AND")
                                    (0 . "SPLINE") (-4 . "&=") (70 . 
                                (-4 . "AND>")
                            (-4 . "OR>")
                        )
                    )
                )
            )

 

can you explain? it does not fit to every day logic "restric selection to Arcs, Circles, Elipses, Lines, LWPolylines, 2D (Heavy) Polylines, 2D Splines & Points"

 

why NOT and OR are there?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...