Das Wissen aller Anwender nutzen

Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.

Es erwarten Sie:

  • Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
  • Tipps von User für User
  • international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch

Melden Sie sich jetzt an und diskutieren Sie mit!

Zur Registrierung

[Frage] Detect area node/option; Access to existing AllPlan commands; [Gelöst]


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

Lösung anzeigen Lösung verbergen

Zitiert von: 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...

Zitiert von: 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

Zitiert von: 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...

Zitiert von: 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