Skip to main content
Question

Group text located near each other.

  • December 4, 2020
  • 1 reply
  • 8 views

I have a floor plan in AutoCAD. I care about two layers (Room_No and Room_Name). In Room_Name, names that span more than one line (usually word) are different features in the same layer. For example Exam Room will be two different items on the layer. I need to group these two items (words) so I can eventually concatenate them to be Exam Room. Based on my experience scraping data from other sources says to group them by their location using x and y coordinates. I can then do the same thing to add in number from the Roon_No layer.

What is the right transformer to use for this? I've tried neighborhood aggregator but it output a list of coordinates based on the text value and not the other way around.

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.

1 reply

milo89
Enthusiast
Forum|alt.badge.img+26
  • Enthusiast
  • December 6, 2020

Hi @bradcadams​,

It sounds like you should have a look at the NeighborFinder in candidates only mode and ensure merge attributes is ticked.

You should look to limit the maximum distance so you don't pick up room text which isn't related and might need some filtering for features which are single line only.