Skip to main content
Solved

How to extract workspace parameters in bulk from .fmw scripts?


dragonsam

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.

Best answer by david_r

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

View original
Did this help you find an answer to your question?

4 replies

dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • December 4, 2023

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.


david_r
Evangelist
  • Best Answer
  • December 4, 2023

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


dragonsam
  • Author
  • December 5, 2023
david_r wrote:

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.


krystalp
Contributor
Forum|alt.badge.img+3
  • Contributor
  • July 9, 2024

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?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings