Forum de la communauté Allplan

[Question] Script erzeugte Parts lassen sich nach dem Speichern nicht wieder Starten.


Hallo Forum,
Script läßt sich immer nur einmal ausführen.
Gespeicherte Parts lassen sich nicht, wieder aufrufen, jedenfalls nicht als Pythonparts.
Das Traceing hat gezeigt, das xml Dateien nicht gefunden werden und was überrascht es wird versucht auf vorgänger xml Dateien zuzugreifer.
Was echt nervt ist der Umstand, das die Scripts einmal funktionieren und danach nicht mehr.
Wo liegt das Problem?
Ich habe die Pfade kontrolliert und Dateien entsprechend verteilt,
es hat bisher nichts genutzt.
Wer weiß eine Lösung?

Im .pyp-File steht oben das zuständige Script!
Achtung: Das kann/muss auch in das entsprechende Verzeichnis verweisen.

Pièces-jointes (1)

Type: image/png
Téléchargé 68 fois
Size: 86,88 KiB

Hallo Nemo,
Danke für die Antwort,
konnte ich leider nicht mit Anfangen.
Ich habe in den Scripts nach ähnlichen Zeilen geschaut. Habe auch Verzeichnispfade gefunden, welche ich dann auf dem Rechner nicht wieder gefunden habe.
Zu der Umgebung in der das Allplan läuft, wir arbeiten mit dem Workgroup - Manager und die Usr werden auf dem Server verwaltet,
parallel gibt es einen usr auf dem lokalen Rechner. Meine Vermutung das es daran liegt.
Außerdem finden sich im Script Pfadangaben die ich auf dem Rechner nicht wiederfinden kann, siehe Anlage.

Ich werde eine Allplan Testversion als Einzelplatz auf einem frischen Rechner installieren um zu sehen ob es dann Funktioniert.

Pièces-jointes (1)

Type: image/png
Téléchargé 51 fois
Size: 32,21 KiB

den etc Ordner (liegt in einem standardmäßig versteckten Pfad) findest du über Allmenü > Service > Windows Explorer > Allgemeine Programdaten (etc, lic) oder der Standardpfad (für Allplan 2023): C:\ProgramData\Nemetschek\Allplan\2023\Etc

Viele Grüße
Florian

LinkedIn-Profil

www.vollack.de

Cité par Algermissen
Script läßt sich immer nur einmal ausführen.
Gespeicherte Parts lassen sich nicht, wieder aufrufen, jedenfalls nicht als Pythonparts.

Funktionieren alle VS-PythonPart-Ojbekt nicht bei Wiederaufrufen? Haben Sie irgendwelche Fehlermeldung bekommen?

Product Owner API, Allplan GmbH

Hello,
The scripts usually only work once, right after they are created.
The scripts can be saved as a py file.
However, after saving and exiting the script, the Python part can no longer be opened as a Python part.
Usually the message comes that the script has an error or is not found.
I have observed that the scripts hang after a certain number of components.
For example: Support on a grid, plus a ceiling and a wall around it and the script can no longer be saved.
The order of the components and how they are put together in the script does not matter.

Do you have any error logged either in the trace or in the <TMP>\allplan_python.out while reactivating the PythonPart object in Allplan?

Product Owner API, Allplan GmbH

Pièces-jointes (1)

Type: image/png
Téléchargé 18 fois
Size: 30,76 KiB

I have startet the trace and i have see that the Scripts have problems woth the Path.

I copied the avsprj, xml & py files to all paths without success.

Next I will equip a new computer with a single-user version, maybe it will work then


https://connect.allplan.com/ utilise des cookies  -  Plus d'informations

Accepter