Scripting - get Custom Property in Extension Functions

Hi everyone,
I have a vision template and from “power table” in this template, under “Extension function”, I want to access to one custom properties of my Template which is under root container.

Any idea?
to access to root container’s customer properties, it is:

event.source.parent.getComponent().NameofCustomProperty ?

For event routines (no def at the top), it would be event.source.parent.NameOfCustomProperty. In other routines (with def), use self.parent.NameOfCustomProperty.

1 Like