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 linesDEFINE SCRIPT TEMP SETUP type LINE LINE_STRING COMPLEX_STRING* SETUP feature 'commLine' SETUP level 'commLine - Fibre Optic' VALIDATE totalLength = totalLength + LENGTH MESSAGE LENGTH END ENDtotalLength = 0.0EXECUTE TEMPMESSAGE totalLength
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]