Expression get tag parent folder path as string

Hi,

I’m trying to make an expression that needs the tags parent folder path.

Is it possible to get that somehow?

{PathToParentFolder} and {[.]} doesn’t seem to work.

It’s not a UDT. It’s just an expression tag inside a folder.

Running Ign v. 8.0.3.

Thanks

Sounds like you really should be using a UDT for this, but you can get what you want by using string manipulation:

left({[.]mytag.Path},lastIndexOf({[.]mytag.Path},{[.]mytag.Name}))

We are getting the complete tag path and then removing the tag name from the end.

1 Like