CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 2627 

CAD tip CAD tip # 11179:

Question CAD 
 %  platform  category 
Q - question

Select objects in negative elevation or in a given 3D octant.

A - answer Using the LISP filter "-4" you can easily select DWG objects, which have their definition/reference point above or below a given limit set on the individual X,Y,Z components of their coordinates. So you can select/filter objects with a reference point in a positive or negative Z-elevation, or in the positive XY half-space, or in the positive XYZ octant.

See examples of selecttion sets (can be input on the "Select objects:" prompt)

Negative Z-elevation:
(ssget "_X" '((-4 . "*,*,<")(10 0 0 0)))

Positive XY half-space, any Z:
(ssget "_X" '((-4 . ">=,>=,*")(10 0 0 0)))

Positive XY half-space, only "zero" Z (flat):
(ssget "_X" '((-4 . ">=,>=,=")(10 0 0 0)))

Positive octant XYZ:
(ssget "_X" '((-4 . ">=,>=,>=")(10 0 0 0)))

You can also combine the filters through AND, OR, NOT. Please note that only the reference point is checked (e.g. a circle center, polyline starting point), not the whole bounding box of a drawing entity.

100% *  CAD 
22.11.2016    1104×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11780:How to rename layouts by a specific attribute of the title block?
Tip 10269:How to restore erased hatch boundaries? (multiple)
Tip 10015:How to select and modify objects in all layouts of the DWG?
Tip 9350:How to move the draw order of all images or hatches to back?
Tip 9063:Flip 3D faces (front/back) in AutoCAD.

Back   All CAD Tips All CAD tips&tricks

Suddenly cannot run Dynamo in Advance Steel. « | » Which Workplane was this Sketch defined in?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.