I'd like a text string in an embedded object to show the group name it’s currently in.
If I use <".Name"> in the Text expression of the original object I get the name of the Library Group it came from.
If I create a Parameter for the Text expression and set the Parameter default value to <".Name"> it shows <.Name> in the string.
If I put <".Name"> in the Parameter expression after it’s been embedded it then shows the Group name it is currently in. Thought it would be nice not to have to remember to type that in each time.
Possibly an issue with using Text parameter instead of Value.
I am using the Value parameter and have a working embedded Text block in a templated mimic that has Value = 'Some fixed text ' + ".Name"
Also, maybe instead of ".Name" you want ".ParentGroupName" to get the name of the group the object is in.
You have that as the "Default Value" in the original objects Parameter for the text?
Using the Text or Value Animations Expression don't seem to matter. The Parameter "Default Value" comes through as the text string <".Name"> not the group name. If I just put the same thing <".Name"> in the same Parameter after it's been embedded then it works.
So every time you embedded it you have to go in and put <".Name"> in the same Parameter even though the Parameter "Default Value" is the same thing it just don't process it first and passes the sting.
No. I guess I misused "Parameter" when I should have used "Property". The text box in the mimic I use has no templated "Parameters", it just uses a fixed Expression to set the value of the text box value to ".ParentGroupName" which grabs the Group name of the group that the mimic is in.
To the best of my knowledge, anytime you use a mimic with additional "Parameters" assigned, you have to configure those Parameters when you use the mimic as an embedded mimic. I also did a quick test, I couldn't get a default value to use .Name or .ParentGroupName.
Ok, is there may be a way to have some script update the parameter when the object is embedded? I’d also like to have a template update it’s tags Outstation path when creating an instance.
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!