Skip to main content
Solved

Export and share Parameter Presets


Hi,

 

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

Best answer by ebygomm

dannekroon wrote:

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

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

6 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • November 9, 2020

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)


nielsgerrits
VIP
Forum|alt.badge.img+54

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


  • Author
  • November 10, 2020

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.


danielkroon
Forum|alt.badge.img

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


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • Best Answer
  • November 10, 2020
dannekroon wrote:

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


danielkroon
Forum|alt.badge.img
ebygomm wrote:

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!


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