promoting line element to subfeature Line element using a vba macro

Hey Guys!

I need to promote very designs in a Spatial Bentley Map project. This project have a text feature and a line subfeature. In Map I can promote the Text feature, but the subfeature line is impossible . Then , I planned to do it with VBA , as a matter a fact . After I planned to do this promoting the line to subfeature line but I don't have any idea and I don't find examples. It is Posible to do this with a vba code?  I ' am using Bentley Map  Select Series 3. and Oracle 11G

Thanks!!!

  • Hi Carlos,

    because your question is about Bentley Map project, I recommend to move it to Geospatial Programming forum. Here, in MicroStation Programming forum, the knowledge of term like (sub)feature, plus XFT API, is limited. To move existing discussion to another forum, use More > Move tool under your original post.

    I need to promote very designs in a Spatial Bentley Map project.

    Please follow the best practices and specify used products exactly. There were several V8i SS3 versions released, plus to know what DB you use would be too.

    In Map I can promote the Text feature, but the subfeature line is impossible .

    Yes, it "work as designed" (WAD), because BM tools support standard operations with quite simple (one level) features, with annotation subfeatures only. But it's not technical limitation, it's only because using subfeatures is very different in every project, so BM has to be customized accordingly to the project requirements.

    I insert the lines in the spatial table but they don't be recognized by Bentley Map.

    I recommend to ask separately, because it's another topic. Bentley Map defines own requirements, how spatial database have to be configured, to recognize stored spatial features. Also, you XFM project has to be configured correctly.

    It is Posible to do this with a vba code?

    Yes, it's possible. BM XFM technology is designed as a puzzle (both in good and bad meaning ;-), so you can implement own placement and promote tools, supporting and feature type and structure.

    I don't find examples.

    Unfortunately there are not many examples available. I recommend to study XFT VBA help, Geospatial Administrator help, and also VBA examples delivered with Bentley Map. In the pat, Geospatial Extranet website was available, but it's not functional anymore :-(

    I expect you will receive more responses after you will move this discussion to the right forum.

    With regards,

      Jan