Skip to main content
Solved

AttributeSplitter doesn't work on filepath?

  • December 29, 2022
  • 2 replies
  • 78 views

asablomberg
Contributor
Forum|alt.badge.img+8

Hi everyone!

I try using AttributeSplitter to split up a file path in all it's folder parts, but the returned list is empty. I have tried to split by '\\', '\\\\' and '/' but with the same result. How do I get this to work?

I want the 6th folder in the path wich can contain 7 or more folders so it doesn't work with FilenamePartExtractor.

I am using Windows. The filepath looks like this '\\\\server.local\\path\\to\\folder1\\folder2\\and\\so\\on\\file.mxd

 

imageimage

Best answer by asablomberg

Thanks for the tip! It helped me to find the error - I used [] instead of {} when exposing the list attributes.

The correct way: _list{3}

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • December 29, 2022

On a hunch, can you check in the Feature Information panel whether or not you can see the list?


asablomberg
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 19 replies
  • Best Answer
  • December 29, 2022

Thanks for the tip! It helped me to find the error - I used [] instead of {} when exposing the list attributes.

The correct way: _list{3}