Using VBA to query features

Hi,

I want to  create a macro which queries for certain properties and than displays the result in the data browser.

Any idea, which part of the xft has to be used?

Much better would be any profund introduction into xft programming...

 

Thanks, Stefan.

Parents
  • Please designate the version of Bentley Map you are targeting this towards.

    Thanks !

    Jerry

     

  • Stefan,

    In the Bentley Map V8i (SELECTseries 1) 08.11.07.113 release you can make use of the XPath property on a XFT locateOp object as shown in the following...

    ...which will then send the results of the locate operation to your implementation of the ILocateOpEvents interface which you could then iterate through as seen here...

    ...potentially populating your own VBA grid control since there is no method of populating the Data Browser from VBA at this time. I attached the above sample VBA code to this thread for your reference.

    If you are currently a BDN (Bentley Development Network) partner or current SELECT subscriber you can also request and obtain access to additional information available in the online "Bentley Map - Development and Product Customization Guide". If interested, please use the Geospatial Desktop Platform Account Request Form listing myself (Jeff Bielefeld) as the Bentley contact.

    Once approved, you will be granted access to the Geospatial Desktop Platform extranet site which hosts the new "Bentley Map - Development and Product Customization Guide" a frequently updated online resource for anyone interested in learning more about customizing or developing applications for the Bentley Map product line, including the new Bentley Map V8i (SELECTseries 2) releases.

    Regards,

    Jeff Bielefeld [Bentley]



    locate1.zip
Reply
  • Stefan,

    In the Bentley Map V8i (SELECTseries 1) 08.11.07.113 release you can make use of the XPath property on a XFT locateOp object as shown in the following...

    ...which will then send the results of the locate operation to your implementation of the ILocateOpEvents interface which you could then iterate through as seen here...

    ...potentially populating your own VBA grid control since there is no method of populating the Data Browser from VBA at this time. I attached the above sample VBA code to this thread for your reference.

    If you are currently a BDN (Bentley Development Network) partner or current SELECT subscriber you can also request and obtain access to additional information available in the online "Bentley Map - Development and Product Customization Guide". If interested, please use the Geospatial Desktop Platform Account Request Form listing myself (Jeff Bielefeld) as the Bentley contact.

    Once approved, you will be granted access to the Geospatial Desktop Platform extranet site which hosts the new "Bentley Map - Development and Product Customization Guide" a frequently updated online resource for anyone interested in learning more about customizing or developing applications for the Bentley Map product line, including the new Bentley Map V8i (SELECTseries 2) releases.

    Regards,

    Jeff Bielefeld [Bentley]



    locate1.zip
Children