Possible to automatically reference PV to model artifact?

Hello Capella community! In an ongoing project I want to add a new PV to my functions in LA. I have have a script which helps me fill the PV value for all my functions.

The pain point for me is that before I run the script, I first need to make a “click” on all my functions to activate the referencing to PV.

Once activated the script runs well to fill the PV values to my functions as desired.

Am sharing two snapshots of before and after activating the reference to PV by manually making a click to a function.
image

snap2

In case there is a way to avoid the manual “clicks” I would be very happy to know about it :smile:

Kind regards,
Sahil