You can't see the properties, because the MgSelection class is a SWiG wrapper for a C++ class. Visual Studio does not call the underlying Dll (P/Invoke), so basically no properties are visible.
It quite annoying, but normal.
For some problems, you can get the values by typing something like "? sel.ToString()" in the "Immediate" window.

Regards, Kenneth, GEOGRAF A/S



Darrin Maidlow skrev:

Hi Steve,

Thanks for the suggestion and quick reply. I had tried MgSelection initially, and changed it over to MgSelectionBase in my trying of things. I just set it back and am still receiving the Not Implemented error.

One other thing I noticed that may or may not be relevant is they if I right click and quick watch on the mgselection object, the properties are not visible in the IDE.

Below is the XML from my selection in case it is relevant.

<FeatureSet size="1">

<Layer id="4631e36a-0000-1000-8004-0011d8b31fa4">

<Classid="Default:V_FV_BLDG_DOCUMENT">

<ID>VHlwaWNhbCBIaWdoIFJpc2UgT2ZmaWNlAJkAAAAJAAAABQAAADM2MCBDYW1lcmEACAAAADM2MCBDYW1lcmEAbW92AAEAAAACAAAAT2ZmaWNlIC0gTGFyZ2UgMzYwANcHCAENAAAAAAAAAQAAAA==</ID>

</Class>

</Layer>

</FeatureSet>"

Thanks again

darrin

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Steve Dang
*Sent:* Monday, April 14, 2008 2:47 PM
*To:* MapGuide Users Mail List
*Subject:* RE: [mapguide-users] Not Implemented for MgSelection.GenerateFilter

Try to use MgSelection instead of MgSelectionBase (e.g. Dim currentSel As New MgSelection(oMap))

Steve.

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Darrin Maidlow
*Sent:* Monday, April 14, 2008 1:28 PM
*To:* [email protected]
*Subject:* [mapguide-users] Not Implemented for MgSelection.GenerateFilter

Hi,

I'm stuck trying to work with a selection generated from the dwf viewer. I've been working with the sample in the developers guide but ported over to vb.net. I'm running MGE 2008.

Basically I go through the motions, create new selection based on the passed selectionXML and everything is cool until I get to the MgSelection.GenerateFilter call. When I pass the layer object, and the session ID I get an MgNotImplemented error.

I've attached a text file with a bit o' code. Any suggestions would be greatly appreciated. I'm sure I've missed something little or done something silly.

Thanks

darrin

------------------------------------------------------------------------

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to