How do I return the name of the 'Graphic Display PG2' in a Element property expression in a that same PG 2 display
Brought comment text here in answer section.
Is this perhaps what you´re looking for? CurrentDisplayViewReference()
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.
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