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] *.py file path [Gelöst]


Hi Everyone,

I'm interested if it is possible or not to define in the *.pyp file a path other than the "PythonPartsScripts" directory.
I want to store the *.py files on a secure server or on a cloud.
As far as I know, as described on allplan.pythonparts.com, "The path must be related to the PythonPartsScripts directory, found in the std or prj path from Allplan. Sub folders can be used and must be separated by the \ character".

Thank you in advance.

Csaba

Lösung anzeigen Lösung verbergen

the syntax is :

mklink /D "Link" "Target"

full article here

Link: Specifies the name of the new symbolic link

Target: Specifies the path to which the new link refers

so in your case :

mklink /D "C:\Data\Allplan\2024\Std\PythonParts\" "C:\Temp\PythonParts\"

replace your std path

Christophe

Hi,

The python script (*.py) must be into a "PythonPartsScripts" directory (in STD for example) but you can set up a symbolic link if your files need to be in a different place.

Best
Christophe

Hi,

Thank you for the answer.
Could you give me an example, for instance the path should be "C:\Temp\PythonParts\"

Csaba

the syntax is :

mklink /D "Link" "Target"

full article here

Link: Specifies the name of the new symbolic link

Target: Specifies the path to which the new link refers

so in your case :

mklink /D "C:\Data\Allplan\2024\Std\PythonParts\" "C:\Temp\PythonParts\"

replace your std path

Christophe

Thank you very much for the detailed answer.
I will test it as soon as possible.

Have a great one.

Csaba