Support Forum

[Question] Detect area node/option; Access to existing AllPlan commands; [Solved]

Tags:
  • Detect
  • Area
  • Commands
  • Polygon
  • Polyline

Hello everyone,
I have a couple of questions and decided to put them in one post to avoid spam. They are as follows:

1. Is there a "Detect area node" or additional data input options for 2D commands such as polygon or polyline?

Example scenario: I need to trace a large numbers of lines into a polyline/polygon and I wondered what is the fastest way. The method that came up to my mind is creating a room, using the detect area checkbox and then use the convert command "Rooms to 2D Polygons". Unfortunately, this method uses 3-4 commands which is still not optimal, thus leading to the second question.

2. Is there a way to add/use the default AllPlan commands in a VS script? - To access the "Create room" command, draw it with its detect area checkbox and finally convert it to 2D polyline/polygon.

Kind regards,
Dobromir

Show solution Hide solution

Quote by DGeorgiev
1. Is there a "Detect area node" or additional data input options for 2D commands such as polygon or polyline?

If I understand that correctly, you want to check if your lines are inside one closed polygon. Currently, we don't have such a node. I tried with node IntersectionPoint, but it seems not to work with closed polygon...

Quote by DGeorgiev
2. Is there a way to use add/use the default AllPlan commands in a VS script? - To access the "Create room" command, draw it with its detect area checkbox and finally convert it to 2D polyline/polygon.

No. VS can only use a allplan function/command, if it is already exposed to Python API. And not all of them are available yet...

Product Owner API, Allplan GmbH

Quote by DGeorgiev
1. Is there a "Detect area node" or additional data input options for 2D commands such as polygon or polyline?

If I understand that correctly, you want to check if your lines are inside one closed polygon. Currently, we don't have such a node. I tried with node IntersectionPoint, but it seems not to work with closed polygon...

Quote by DGeorgiev
2. Is there a way to use add/use the default AllPlan commands in a VS script? - To access the "Create room" command, draw it with its detect area checkbox and finally convert it to 2D polyline/polygon.

No. VS can only use a allplan function/command, if it is already exposed to Python API. And not all of them are available yet...

Product Owner API, Allplan GmbH