AnsweredAssumed Answered

Use formula in path syntax

Question asked by Sanne on May 13, 2020
Latest reply on May 15, 2020 by Sanne

Hi,

I would like to use the value of an Element that is weakly referenced to the element for which I am making an analysis template. To reference to this attribute I make use of a path syntax as shown here below.

\\MySystem\MyDatabase\Elements[@Name=E*][@Index=3]

However, I would like to substitute 3 by a formula "Int('Punt')*2-1" where 'Punt' is an attribute of the Element for which I am making the analysis template. The formula below does not work.

 

\\MySystem\MyDatabase\Elements[@Name=E*][@Index=Int('Punt')*2-1]

And if I change "Int('Punt')*2-1" into an attribute called "Variable1" PI does also not understand what I want

 

\\MySystem\MyDatabase\Elements[@Name=E*][@Index='Variable1']

I would really appreciate some help in solving this problem!

Outcomes