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] Integrate python scripts in Allplan (2022) [Gelöst]

Schlagworte:
  • PythonParts
  • Python
  • Script
  • Integration
  • 2022

Hi all,

even tough my question is PythonPart related at the moment, i'm not shure if this is the only way to go.

My task:
I've written a script to handover IFCIDs and Allplan specific infos such as version and Allplan paths to another software tool.
Datas are transfered via REST API.
Allplan specific infos are gathered by the Allplan PP API.

What i want to achieve:
Fast and low level access for cad users.
Reliability.

My solution for now:
I've linked my script into a dummy PythonPart which i could integrate to the ActionBar thanks to Allplan 2022.
This works most times, but not very reliable.
The workflow is also not pretty much fast forward for the users because he needs to click at least twice buttons.
In the AB and in the PP.

Allplan crashes regularly if i try to start only my python script in the PP without a proper geometry and palette...

So long story short:
What is the best way to integrate such a script into allplan?

Thanks for any comments and informations!

Regards
Marcus

VG
Marcus

Lösung anzeigen Lösung verbergen

Hello Marcus,

if you create your PP as interactor, you can directly start the handover of the data. For more details how to create an interactor you can have a look at the InteractorExamples.

Best regards
Horst

Hello Marcus,

if you create your PP as interactor, you can directly start the handover of the data. For more details how to create an interactor you can have a look at the InteractorExamples.

Best regards
Horst

Hello Horst,

thank you!

Best regards
Marcus

VG
Marcus