Difference by display style

Difference by display style

saitoib
Advocate Advocate
341 Views
2 Replies
Message 1 of 3

Difference by display style

saitoib
Advocate
Advocate

Hi all.

 

rectang 0,0 100,100
rectang 100,0 200,100

After creating the above
With the display style as 2D wireframe, execute the following Lsip and select each square
Two entities are selected for each.
If you change the display style to concept, execute test, and select each square
only one entity is selected.
Why is this?
Thank you.

 

(defun c:test ( / ent pts ss nn i id)
  (setq ent (entget (car (entsel))))
  (setq pts (mapcar 'cdr (vl-remove-if '(lambda (x) (/= (car x) 10)) ent)))
  (setq ss (ssget "CP" pts))

  (princ "\n")
  (princ (setq nn (sslength ss)))
  (setq i 0)
  (repeat nn
    (princ "\n")
    (princ (ssname ss i))
    (setq i (1+ i))
  )
  (princ)
)

 

 

Saitoib
0 Likes
Accepted solutions (1)
342 Views
2 Replies
Replies (2)
Message 2 of 3

cadffm
Consultant
Consultant
Accepted solution

Also if you select the secend (the right) rectangle? 😉

 

CP (and w c cw ..) are view-dependend object selection methods

and the visualstyle is part of the current view,

also ZOOM and PAN can change the result of your TEST!

 

2DWireframe(CPU)  works different to all other VisualStyles(GPU),

what you stumbled over is how it works.

 

EDIT::

 

>>" and select each square only one entity is selected."

Not on my side: The last drawn rectangle select both rectangles, but the left one just the left.

 

 

view-dependend object selection methods are nothing what you can trust.

Sebastian

0 Likes
Message 3 of 3

saitoib
Advocate
Advocate

@cadffm 

 

I would say that the basis for drawing is a 2D wireframe.
I understand.
Thank you very much.

Saitoib
0 Likes