Select vertical surfaces?

How to select only vertical surfaces?

I have these scripts, however, the selection is not limited to surfaces, they will also select any planar curves that are “vertical”.

SelWorldVertical.py (2.0 KB)
SelCPlaneVertical.py (1.8 KB)

2 Likes

switch to an orthogonal view use selection filter if you have other geometry and select surfaces by making a crossing box with the mouse?

1 Like

thanks

Any chance you have a script that works with surfaces and curves perpendicular to X, Y and Z axes? Having this would really speed up my workflow for some things

Maybe this?

SelWorldHorizontal.py (2.3 KB)

Note at the bottom of the script there is this:

#False to select objects on planes parallel to "plane", True for strictly in-plane
SelParallelToPlane(rs.WorldXYPlane(),False)
#SelParallelToPlane(rs.WorldYZPlane(),False)
#SelParallelToPlane(rs.WorldZXPlane(),False)

So it's actually three separate scripts, you need to uncomment the plane you want and comment out the other two.  Leaving the second argument at False will select all objects parallel to the plane, if you make it True, it will only select objects lying on the plane.

I probably should structure it a bit differently to avoid having to run it as three separate scripts, but I don't have time now...

Thanks! This worked great. Here are the modified scripts.

SelWorldHorizontal.py (2.3 KB)
SelYZ.py (2.3 KB)
SelZX.py (2.3 KB)