Skip to main content

I am doing an inventarisation of all our scripts. Each script has the workspace parameters completed. This information is ideal for the inventary. I have found a way to do this adding each .fmw script individually, but this is very time consuming so I am looking for a way to do so in bulk.

 

I tried to use Directory reader to initially find all the .fmw scripts in a particular path, and this works, however I do not find a way now from this list how to extract info from inside the various files. I tried the FeatureReader transformer as I used this before to extract DWG files in bulk, but that does not seem to work for .fmw files.

It sounds like you need a Parent-Child workspace setup using the WorkspaceRunner. In the first workspace (parent), you will use the Directory and File Pathnames Reader to create a feature for each of the .fmw files. Those will be fed into the WorkspaceRunner, where it will be set to the second workspace (child) that is running your script.


You're on the right track. In the FeatureReader, use the FMW reader. Check the output from the UserParameters feature type, see https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/fmw/Feature_Representation.htm


You're on the right track. In the FeatureReader, use the FMW reader. Check the output from the UserParameters feature type, see https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/fmw/Feature_Representation.htm

Thank you, that was exactly what I was looking for. It works now.


I was hoping to use the FMW Reader to see what version of Python was set in the Workspace Parameters but it doesn’t seem to capture that.  Any other suggestions?


Reply