Author Topic: Calculations based on Tagged Values  (Read 1569 times)

skranenburg

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Calculations based on Tagged Values
« on: October 05, 2022, 02:03:06 am »
Hi,

I have a imported package in my model that has a large number of systems represented as blocks with numeric tagged values. Is it possible to use these specific values within a parametric diagram for certain calculations? I have having trouble finding a way to "pull out" these values to use them elsewhere in the model. Any help on this would be much appreciated.

Thanks!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Calculations based on Tagged Values
« Reply #1 on: October 05, 2022, 02:20:08 am »
Use scripting and the TaggedValues collection of the according elements. That's pretty simple.

q.

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Re: Calculations based on Tagged Values
« Reply #2 on: October 05, 2022, 07:04:12 pm »
You could also look at Scriptlets - I've not used them yet, but the claim is that they will run when a diagram is opened. It might be appropriate to make a diagram make your calculations when opened based on elements on the diagram.