Support Forum

[Question] Import additional libraries [Solved]


Hello AllPlan community,

I would like to know about the possibility of bringing additional python libraries to work with Allplan API, e.g. Can I import pandas, numpy, matplotlib, among others ?
Thanks in advance for your help!

Show solution Hide solution

Hello!
Yes, you can use additional packages in your PythonPart scripts. First of all, install your package. There are two ways to do it:

  • manually by saving the files in ...\Prg\Python\lib\site-packages.
  • using the PythonPart InstallPythonPackage located in …\etc\Examples\PythonParts\ToolsAndStartExamples

then you import the packege in your script as usual using import ___ statement

I hope, I could help you!

Hello!
Yes, you can use additional packages in your PythonPart scripts. First of all, install your package. There are two ways to do it:

  • manually by saving the files in ...\Prg\Python\lib\site-packages.
  • using the PythonPart InstallPythonPackage located in …\etc\Examples\PythonParts\ToolsAndStartExamples

then you import the packege in your script as usual using import ___ statement

I hope, I could help you!


https://connect.allplan.com/ uses cookies  -  More information

Accept