CAD Integration
 
 

Code Gallery

AutoLisp Sample for Selecting Entities by Feature Attributes in ArcGIS for AutoCAD

First you should look at the better query tool listed above this one, because it works better! If you're still interested in this as an example of working in AutoLisp then,... This download is an AutoLISP routine that selects features by feature-attribute values in ArcGIS for AutoCAD. It uses a combination of standard AutoLISP and the ArcGIS for AutoCAD AutoLISP API. It has a simple command line interface that allows me to click through the schema of feature classes in my drawing to build a simple equality-query for the selected feature class. (ie This = That)

You can use this AutoLISP file, as is… if it works for you, or you can use it as an example of how to build your own query tool that could make more sophisticated comparisons.
Author donk
Date Submitted 07-22-2009
Date Last Updated 11-17-2009
Language LISP
Product/Version ArcGIS for AutoCAD 9.3
Views 272
Downloads 136
License Type ESRI Attribution and License Agreement
(0 ratings)

Report Inappropriate Content: This Code Gallery is intended for the free exchange of code related to ESRI software products. Let us know if this entry is inappropriate (e.g., a download for a commercial product).

 

Query Builder is your better choice here...   posted by donk on Nov 17, 2009 4:03 PM

http://resources.esri.com/caddata/index.cfm?fa=codeGalleryDetails&scriptID=16590 This example was more as an example of AutoLisp customization of ArcGIS for AutoCAD. It works, but the more robust tool in Query Builder 1.1 is what you should be using.