CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 2023 

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.

ACAD
100% *  CAD 
22.11.2016    2094×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 12210:How to erase a specific object type in all DWG layouts?
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?


Back   All CAD Tips All CAD tips&tricks



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   



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info


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