Skip to main content

Hi,

 

Where is the Parameter Presets saved? Is there a way to export and share presets with others?

You can use the fmw reader to read a workspace's parameters and that will give you a published_parameter_name, published_paramter_type, published_parameter_default_value etc. which you could write out to a file to share.

The only thing to note, is that both public and private parameters are returned as Published Parameter feature types with no way to distinguish between them (as far as I can tell)


As an alternative, you can copy paste the published / private parameters from the navigation pane and paste them in notepad, as JSON.


Thank you both for your input. Didn't know about the copy/paste to JSON, nice feature!

I think I wasn't precise in my question. In this case, it was the presets in the transformers I was looking for a way to export, not the user parameters.

 

@ebygomm​ , to distinguish between published and private parameters you can view/read the .fmw file as text or xml.

It is the elements named GLOBAL_PARAMETER you want to extract. Those elements have an attribute called GUI_LINE.

If the value starts with GUI IGNORE it is a private parameter.

You can see this also if you use @nielsgerrits​  copy/paste method.


I just realized I have two FME community accounts, hello again!


Thank you both for your input. Didn't know about the copy/paste to JSON, nice feature!

I think I wasn't precise in my question. In this case, it was the presets in the transformers I was looking for a way to export, not the user parameters.

 

@ebygomm​ , to distinguish between published and private parameters you can view/read the .fmw file as text or xml.

It is the elements named GLOBAL_PARAMETER you want to extract. Those elements have an attribute called GUI_LINE.

If the value starts with GUI IGNORE it is a private parameter.

You can see this also if you use @nielsgerrits​  copy/paste method.

Yes, i meant no way to distinguish them when using the fmw reader (and it strikes me as odd that private parameters are published parameter feature types...). You can of course find this info by reading the file as text.

 

As to your original question, I'm not aware there is a way to share transformer presets. There is an idea here

 

https://community.safe.com/s/idea/0874Q000000TlDkQAK/detail


Yes, i meant no way to distinguish them when using the fmw reader (and it strikes me as odd that private parameters are published parameter feature types...). You can of course find this info by reading the file as text.

 

As to your original question, I'm not aware there is a way to share transformer presets. There is an idea here

 

https://community.safe.com/s/idea/0874Q000000TlDkQAK/detail

Thank you!


Reply