[fdo-users] Re: Visual data filtering
Zdeněk Neustupa
zdenek.neustupa at centrum.cz
Sun Mar 18 10:37:37 EDT 2012
Thank you very much.
I was using MgLayer just to set Visibility.
If I need to process the query through all layers in my map, do I have to do
the same for all layers in MgLayerCollection object?
Thanks.
Zdeněk Neustupa
From: fdo-users-bounces at lists.osgeo.org
[mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Partha P. Sarkar
Sent: Thursday, March 15, 2012 4:37 PM
To: FDO Users Mail List
Subject: RE: [fdo-users] Re: Visual data filtering
Hi Zdenek,
FDO API will work in Civil 3D also as it's built on top of Map 3D. Try using
MgFeatureQueryOptions object.
Try the following code snippet -
AcMapMap currentMap = AcMapMap.GetCurrentMap();
MgLayerCollection layers = currentMap.GetLayers();
MgLayerBase layer = layers.GetItem("Roads");
MgFeatureService fs =
AcMapServiceFactory.GetService(MgServiceType.FeatureService) as
MgFeatureService;
string fsId = layer.GetFeatureSourceId();
string className = layer.GetFeatureClassName();
MgFeatureQueryOptions query = new MgFeatureQueryOptions();
query.SetFilter("FeatId = 5");
MgResourceIdentifier resId = new MgResourceIdentifier(fsId);
MgFeatureReader featureReader = fs.SelectFeatures(resId,
className, query);
Hope this helps.
Thanks,
Partha Sarkar
-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org
[mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Zdenek Neustupa
Sent: Thursday, March 15, 2012 7:38 PM
To: 'FDO Users Mail List'
Subject: RE: [fdo-users] Re: Visual data filtering
Thank you.
Yes I know about this functionality. But I need to do this exact thing
programmatically.
Is there any possibility?
Zdenek Neustupa
-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org
[mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Thursday, March 15, 2012 1:53 PM
To: fdo-users at lists.osgeo.org
Subject: [fdo-users] Re: Visual data filtering
Civil3D should have the same FDO data connect functionality as AutoCAD
Map3D.
So you should just be able to follow the link below to bring a SHP file into
the current drawing that can be filtered and whose attribute data can be
displayed in a grid with the Data Table:
<http://docs.autodesk.com/CIV3D/2012/ENU/filesMUG/GUID-9E2597F9-9DA8-4825-B6
2>
http://docs.autodesk.com/CIV3D/2012/ENU/filesMUG/GUID-9E2597F9-9DA8-4825-B62
D-8EB21BAD423-131.htm
This procedure requires no programming
- Jackie
--
View this message in context:
<http://osgeo-org.1560.n6.nabble.com/Visual-data-filtering-tp4620958p4621200
>
http://osgeo-org.1560.n6.nabble.com/Visual-data-filtering-tp4620958p4621200.
html
Sent from the FDO Users mailing list archive at Nabble.com.
_______________________________________________
fdo-users mailing list
<mailto:fdo-users at lists.osgeo.org> fdo-users at lists.osgeo.org
<http://lists.osgeo.org/mailman/listinfo/fdo-users>
http://lists.osgeo.org/mailman/listinfo/fdo-users
_______________________________________________
fdo-users mailing list
<mailto:fdo-users at lists.osgeo.org> fdo-users at lists.osgeo.org
<http://lists.osgeo.org/mailman/listinfo/fdo-users>
http://lists.osgeo.org/mailman/listinfo/fdo-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fdo-users/attachments/20120318/443c5900/attachment.html
More information about the fdo-users
mailing list