Skip to main content
Solved

AttributeManager - export conditional to text

  • August 19, 2021
  • 4 replies
  • 24 views

mathiku
Supporter
Forum|alt.badge.img+8

I have a very large conditional I would like to export to text, so far I've tried copy/paste, and can't seem to find any other ways.

However it doesn't wok.

Best answer by JennaKAtSafe

Thank you - was hoping for something slightly easier to work with. The conditional is rather hard too read and extremely long - below is approximately a third of it:

 

FACTORY_DEF {*} AttrSetFactory  COMMAND_PARM_EVALUATION SINGLE_PASS  FACTORY_NAME { AttributeManager_18 }  INPUT FEATURE_TYPE SpatialFilter_PASSED  INPUT FEATURE_TYPE SpatialFilter_FAILED  MULTI_FEATURE_MODE { NO }  NULL_ATTR_MODE { NO_OP }  ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV  ACTION_COLUMN 3  DEF_VAL_COLUMN 2  MISSING_INPUT_ATTR_HANDLING RENAME_SET_VALUE REMOVE  ATTR_ACTION { "Kategori" "Kategori" "FME_CONDITIONAL:DEFAULT_VALUE'_FME_NO_OP_'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2 OR 3;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>etc.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>landbrug<space>mv.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>produktion'Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>eller<space>lignende'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>transport<comma><space>handel<space>etc;TEST 

 

Alternatively, you could click Copy on the AttributeManager from the Navigator and Paste it into a text editor. The output format is very similar to what you find in the .fmw but it will at least save you some scrolling :) If this is a feature you'd like to see enhanced feel free to submit this as an Idea! 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • August 19, 2021

You could open up the .fmw in a text editor (notepad, or notepad++) and find the conditions there. Note it will likely have some funny formatting so you will need to fix that


mathiku
Supporter
Forum|alt.badge.img+8
  • Author
  • Supporter
  • 69 replies
  • August 20, 2021

You could open up the .fmw in a text editor (notepad, or notepad++) and find the conditions there. Note it will likely have some funny formatting so you will need to fix that

Thank you - was hoping for something slightly easier to work with. The conditional is rather hard too read and extremely long - below is approximately a third of it:

 

FACTORY_DEF {*} AttrSetFactory  COMMAND_PARM_EVALUATION SINGLE_PASS  FACTORY_NAME { AttributeManager_18 }  INPUT FEATURE_TYPE SpatialFilter_PASSED  INPUT FEATURE_TYPE SpatialFilter_FAILED  MULTI_FEATURE_MODE { NO }  NULL_ATTR_MODE { NO_OP }  ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV  ACTION_COLUMN 3  DEF_VAL_COLUMN 2  MISSING_INPUT_ATTR_HANDLING RENAME_SET_VALUE REMOVE  ATTR_ACTION { "Kategori" "Kategori" "FME_CONDITIONAL:DEFAULT_VALUE'_FME_NO_OP_'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2 OR 3;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>etc.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>landbrug<space>mv.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>produktion'Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>eller<space>lignende'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>transport<comma><space>handel<space>etc;TEST 

 


JennaKAtSafe
Safer
Forum|alt.badge.img+8
  • Safer
  • 192 replies
  • Best Answer
  • August 23, 2021

Thank you - was hoping for something slightly easier to work with. The conditional is rather hard too read and extremely long - below is approximately a third of it:

 

FACTORY_DEF {*} AttrSetFactory  COMMAND_PARM_EVALUATION SINGLE_PASS  FACTORY_NAME { AttributeManager_18 }  INPUT FEATURE_TYPE SpatialFilter_PASSED  INPUT FEATURE_TYPE SpatialFilter_FAILED  MULTI_FEATURE_MODE { NO }  NULL_ATTR_MODE { NO_OP }  ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV  ACTION_COLUMN 3  DEF_VAL_COLUMN 2  MISSING_INPUT_ATTR_HANDLING RENAME_SET_VALUE REMOVE  ATTR_ACTION { "Kategori" "Kategori" "FME_CONDITIONAL:DEFAULT_VALUE'_FME_NO_OP_'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2 OR 3;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>etc.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>landbrug<space>mv.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>produktion'Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>eller<space>lignende'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>transport<comma><space>handel<space>etc;TEST 

 

Alternatively, you could click Copy on the AttributeManager from the Navigator and Paste it into a text editor. The output format is very similar to what you find in the .fmw but it will at least save you some scrolling :) If this is a feature you'd like to see enhanced feel free to submit this as an Idea! 


mathiku
Supporter
Forum|alt.badge.img+8
  • Author
  • Supporter
  • 69 replies
  • August 26, 2021

Thank you - was hoping for something slightly easier to work with. The conditional is rather hard too read and extremely long - below is approximately a third of it:

 

FACTORY_DEF {*} AttrSetFactory  COMMAND_PARM_EVALUATION SINGLE_PASS  FACTORY_NAME { AttributeManager_18 }  INPUT FEATURE_TYPE SpatialFilter_PASSED  INPUT FEATURE_TYPE SpatialFilter_FAILED  MULTI_FEATURE_MODE { NO }  NULL_ATTR_MODE { NO_OP }  ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV  ACTION_COLUMN 3  DEF_VAL_COLUMN 2  MISSING_INPUT_ATTR_HANDLING RENAME_SET_VALUE REMOVE  ATTR_ACTION { "Kategori" "Kategori" "FME_CONDITIONAL:DEFAULT_VALUE'_FME_NO_OP_'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2 OR 3;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>etc.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>landbrug<space>mv.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>produktion'Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>eller<space>lignende'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>transport<comma><space>handel<space>etc;TEST 

 

Nahh... I don't need it very often, I was just surprised how overly complicated it is.