How do I return the name of the 'Graphic Display PG2' in a Element property expression in a that same PG 2 display
How do I return the name of the 'Graphic Display PG2' in a Element property expression in a that same PG 2 display? I have tried to add but can only find the name of the object (container or folder) that contains a number of PG2 displays. I can browse to this with the Expression Editor under the Process Data - Properties. It looks like this $'pr::Operating Area - Graphics:Name:Name' but this just returns "Operating Area - Graphics". I can't seem to browse to a PG2 display and return the name expression. How can I return the name with an expression?
Answers
Brought comment text here in answer section.
"
By MatsA on 8/6/2015 | Like (0) | Report
Is this perhaps what you´re looking for? CurrentDisplayViewReference()
By RickW on 8/19/2015 | Like (0) | Report
That doesn't appear to be what I need. That is an aspect view reference. I need to return text of the graphics file name.
By MatsA on 8/20/2015 | Like (0) | Report
But it contains the name of the current graphic aspect. I´ve done like this.
First create two expression variables:
Name:ActiveAspectView, Type: ViewReference, Expression: CurrentDisplayViewReference()
Name: ActiveAspectViewStringArray, Type:StringArray, Expression: String(SplitRE(ActiveAspectView#PresentationName, ":"))
To then get name of the current display: ActiveAspectViewStringArray[1]
"
by MatsA Rank: 5488 on 8/6/2015 12:23:14 AM | Like (0) | Report
Is this perhaps what you´re looking for? CurrentDisplayViewReference()
by RickW Rank: 31 on 8/19/2015 9:23:53 AM | Like (0) | Report
That doesn't appear to be what I need. That is an aspect view reference. I need to return text of the graphics file name.
by MatsA Rank: 5488 on 8/20/2015 4:25:25 AM | Like (0) | Report
But it contains the name of the current graphic aspect. I´ve done like this.
First create two expression variables:
Name:ActiveAspectView, Type: ViewReference, Expression: CurrentDisplayViewReference()
Name: ActiveAspectViewStringArray, Type:StringArray, Expression: String(SplitRE(ActiveAspectView#PresentationName, ":"))
To then get name of the current display: ActiveAspectViewStringArray[1]
Add new comment