Skip to main content
Solved

XMLFragmenter

  • February 16, 2015
  • 4 replies
  • 66 views

Hi all,

 

 

I am using XMLFragmenter. I am giving "bldg:Building/bldg:lod2Solid" as element to match.

 

So the result I am looking is, to know which surfaces are given as href for each building. (shown here)

 

 

 

Actually, I need to check if all the surfaces that I have are given as xlink or not. Therefore, I need to expose all the "Solid.exterior.CompositeSurface.surfaceMember{}.href". But because they behaving as list attribute and also they are not stored as list in this transformer I do not know how to expose them (because the list numbers are dynamical and them might vary from 4 to n for different buildings).

 

 

I am looking forward to hearing from you.

 

 

Thank you in advance,

 

Mani

Best answer by takashi

Hi Mani,

 

 

I can see a list attribute named "Solid.exterior.CompositeSurface.surfaceMember{}" in your posted image. The list has been certainly created.

 

But you cannot manipulate it with transformers if you have not expose the name.

 

Try exposing the name with the "Attributes to Expose" parameter.

 

 

 

Just be careful not to make a typo.

 

 

Takashi
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.

4 replies

david_r
Celebrity
  • February 17, 2015
Hi,

 

 

there are several transformers available for manipulating variable length lists. Some that might be relevant to you: ListExploder, ListElementCounter, ListIndexer.

 

 

David

  • Author
  • February 17, 2015

Hi David,

 

 

Thank you for your reply.

 

I think the mentioned transformers do not work here because XMLFragmenter does not produce any list attribute (as far as I know).

That is exactly my problem.

 

 

Mani

takashi
Celebrity
  • Best Answer
  • February 17, 2015
Hi Mani,

 

 

I can see a list attribute named "Solid.exterior.CompositeSurface.surfaceMember{}" in your posted image. The list has been certainly created.

 

But you cannot manipulate it with transformers if you have not expose the name.

 

Try exposing the name with the "Attributes to Expose" parameter.

 

 

 

Just be careful not to make a typo.

 

 

Takashi

  • Author
  • February 17, 2015
Hi Takashi,

 

 

I didn't know that first I need to expose it. Thank you so much.

 

 

Mani