ssget filter for Planar Surfaces?

ssget filter for Planar Surfaces?

Anonymous
Not applicable
1,067 Views
4 Replies
Message 1 of 5

ssget filter for Planar Surfaces?

Anonymous
Not applicable

I can't find anything online about how to call out a selection filter for Planar Surfaces.

What is supposed to be in the quotes where SURFPLANE is listed??

 

(command ".CONVTOSURFACE" (setq sface (ssget '((0 . "3DFACE")))) "")
(setq ssurf (ssget '((0 . "SURFPLANE"))))
(command ".MOVE" ssurf "" "0,0,0" "0,.25,0")
0 Likes
Accepted solutions (1)
1,068 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant
Accepted solution

(ssget '((0 . "PLANESURFACE")))

 

Next time you don't know, try this line.

 

(cdr (assoc 0 (entget (car (entsel "Select object to get a type: ")))))

...or just (entget (car (entsel))) and look for code 0

Message 3 of 5

Anonymous
Not applicable

Thank you! I tried possibly every other combination except that one haha. You have my gratitude.

I'll save the CDR code to my arsenal as well now, wasn't aware of this way of inquiry.

0 Likes
Message 4 of 5

surfer96
Advocate
Advocate

Is there a VLA-Add... method to create a PLANESURFACE?

Or do you have to create them using the AutoCAD command?

 
0 Likes
Message 5 of 5

_gile
Consultant
Consultant

@surfer96,

from the ActiveX Reference Guide: "You cannot create a surface entity via ActiveX."



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub