Skip to main content
Solved

Detecting where lines are not snapped to nodes (DWG)

  • October 14, 2016
  • 1 reply
  • 33 views

Forum|alt.badge.img

I have .dwg file with large number of lines which are snapped to points, so they form closed polygons. I would like to create closed polyline from snapped lines so i can calculate area of polygon, and the main criteria is that lines are snapped to node of point, which is not always the case (lines are often snapped to endpoint, nearest point, or not even closed). My question is: how can i detect where lines are not snapped to nodes of points, so i can manually snap them?

Thank you for answers.

Best answer by itay

Hi @zolja87, You can use the PointOnLineOverlayer with a very small tolerance, all lines emerging with _overlaps = 0 are not within the tolerance distance to any point(s)

Hope this helps.

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

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • Best Answer
  • October 14, 2016

Hi @zolja87, You can use the PointOnLineOverlayer with a very small tolerance, all lines emerging with _overlaps = 0 are not within the tolerance distance to any point(s)

Hope this helps.