Utilities -> Scripting ??? XFM Features ???

I was getting all excited about these GSF files and how easy I could do some basic report writing using these things!

My project is setup with xfm features and upon reading the help file It seems that xfm features aren't supported?

I can't seem to find anywhere in the help file it specifically states that only MSCATALOG style features are supported anyone able to shed some light on this?

Something like the script below is what I'm using as a test, on a side note the LENGTH value seems to be the same value every element even though all lines are different lengths.

*Test report
*Sum length of all lines

DEFINE SCRIPT TEMP
  SETUP type    LINE LINE_STRING COMPLEX_STRING
* SETUP feature 'commLine'
  SETUP level  'commLine - Fibre Optic'

  VALIDATE
    totalLength = totalLength + LENGTH
    MESSAGE LENGTH
  END
 
END

totalLength = 0.0
EXECUTE TEMP
MESSAGE totalLength

  • I do not want to discourage other members having more experience or authority than I in this matter from responding; however I did find some (older) information on the Be Communities with respect to GeoScripts and MSCATALOG that may be of some help.

    GeoScripts Documentation Bentley Map > Scripting  
    Samples Example script files (GSF)  
    Articles Unleashing Database Linkages In MicroStation [CS] Posted: 2002/2/13

    HTH,
    Bob



  • Jamo,

    It is good to hear that you have discovered some of the power of the Bentley Map scripting engine. Unfortunately you also discovered that the scripting engine does not fully support the XFM data model, specifically reading business properties from XFM feature instances or setting search criteria based upon XFM feature classes etc... However you can still leverage the power of the scripting engine to process Bentley Map data, accessing all element information and RDBMS business properties.

    For the LENGTH issue, I just ran a test using latest Bentley Map release and found the value to change as expected based upon the different linear elements in my design file. What version and edition of Bentley Map are you using?

    Regards,

    Jeff Bielefeld [Bentley]