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.
|
|
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.
If you would like to post a comment, please login.