Select to view content in your preferred language

Allow query *on load* of feature service in ArcGIS for AutoCAD

511
1
08-17-2018 03:30 PM
Status: Implemented
SolanaFoo4
New Contributor III

I'd like to be able to filter the features I bring into AutoCAD when using ArcGIS for AutoCAD.  We are able to bring in the entire feature service with all records (ours is hosted on ArcGIS Server 10.5.1) but it is so large it becomes impractical to work with in CAD.  

There is an ability to limit by extent but this is not ideal.

Please add a query BY ATTRIBUTE ability to allow the user to filter which features to draw in CAD from a REST end point/feature service.

AutoLISP has this:

esri_featureservice_set

Can you allow the user to specifiy a specific index of a layer in the service, and then add an attribute query, such as "OBJECTID in (1,2,3)" within the AutoLISP?

1 Comment
MichaelDavidsonPM
Status changed to: Implemented

Hi @SolanaFoo4,

Thanks for your patience in us getting a response.

 

With esri_webfeaturelayer_add, you can limit which features are added to the drawing from a layer by including a definition query. You can also use this method to specify the layerID, by just including it in the URL.

 

In addition, you can make use of the "Add Data by URL" dialog to achieve the same.