[Question] Integrate python scripts in Allplan (2022) [Solved]

Tags:
  • 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

Show solution Hide solution

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