I tried to set a published Parameter in the Python startup script, but the parameter changes just in the dictionary (I think), but not in the workspace.
Is it possible to set a published parameter in the python startup script?
Here's my Python Code:
def ReadParameter():
ParameterFile = open(r'R:\\212_TIM\\Konzept\\TIM_Auskunft\\FME_Migration\\LOG\\ParameterFile.txt','r')
for line in ParameterFile:
key, value = line.split(' = ')
if key == 'CountStart':
return int(value)
return 'Konnte Id nicht finden'
HIS_ID_intern = ReadParameter()
d1 = {'HIS_ID' : HIS_ID_intern}
FME_MacroValues.update(d1)
Thanks for your help!
Regards,
Isabell