Hi Igor, I'm thinking that you'll need to use a combined TCL/FMEObjects script, and call it from the workspace using SystemCaller or TCLCaller.
It shouldn't be as hard as it sounds (I hope). There are schema reading objects (classes/functions/methods/????) in fme objects, and it appears quite simple to call these within a TCL script. Take a look at http://www.fmepedia.com/index.php/Sandbox I posted a TCL script there that does a simple Shape to Shape translation. The translation bit is less important to you, I think the important part would be... FMEFeature SchemaFeature while { [ Reader readSchema SchemaFeature] } { ... } Unfortunately I don't have time at the moment to work it into a proper working example, but hopefully this will help get you started. If you want to use Python instead, then I have this info from a colleague... -------- See the Python SQLite reader for starting point: http://www.fmepedia.com/index.php/Python_SQLite_Reader_Example Instead of using SQLite to create a reader, you would need to use an FME reader to open the data, then use readSchema and return the schema features. -------- Hope this helps, Regards, Mark Mark Ireland, Senior Product Specialist Safe Software Inc. Surrey, BC, CANADA [EMAIL PROTECTED] http://www.safe.com Solutions for Spatial Data Translation, Distribution and Access --- In [EMAIL PROTECTED], "ialbor" <[EMAIL PROTECTED]> wrote: > > Hi Guys, > > I have created a TCl/FME WB that scans a folder, reads MID/MIFs and > extract "some" attribute/feature metadata, basically to facilitate > reporting inconsistencies in the ETL process. I have not been able to > find the variables in the reader/writer that set/holds the "type" and > "width" parameters of the fields. Has anyone done this type of > manipulation on the attributes of the attributes? > I can read the field value length and type, but that is not what I am > really after. > > Thanks. > > > Igor > For insights into what's up at Safe Software and what's on the development horizon, visit Safe's blog at spatial-etl.blogspot.com. Safe Software has also made slides available that outline enhancements planned for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2 of the FME Worldwide Users Conference. To view these slides, visit www.safe.com/2006uc. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/fme/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
