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] How to create PythonPart objects with multiple objects individually?


I want to create PythonPart objects individually by dragging all objects through VisualScript.
I only found a way to manually insert the index values and make them one by one.
What function should I use here to automatically create Python part objects individually for all objects?

Anhänge (3)

Typ: image/png
69-mal heruntergeladen
Größe: 131,64 KiB
Typ: image/png
95-mal heruntergeladen
Größe: 156,50 KiB
Typ: text/xml
509-mal heruntergeladen
Größe: 3,12 KiB

Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen

Zitiert von: yazevnikita
Good afternoon, a similar problem.
I have a script that creates a reference part, but I don't want to pull it out of the library every time. Is it possible to set the script to repeat while preserving the previous result?

In Allplan 2024, we now allowed VS-PyP to be placed by mouse clicking. This also allows users to place the same VS-PythonPart object one after another.

Product Owner API, Allplan GmbH

It might be possible with writing py code directly with the node ExecPythonScript.

But i don't understand why you are doing that. As the PythonPart object you get later probably won't be able to be reactivated again, as there might be no dedicated PythonPart script behind each object. Can you explain what you actually want to accomplish with this?

Product Owner API, Allplan GmbH

Good afternoon, a similar problem.
I have a script that creates a reference part, but I don't want to pull it out of the library every time. Is it possible to set the script to repeat while preserving the previous result?

Anhänge (1)

Typ: image/png
63-mal heruntergeladen
Größe: 66,82 KiB

Zitiert von: yazevnikita
Good afternoon, a similar problem.
I have a script that creates a reference part, but I don't want to pull it out of the library every time. Is it possible to set the script to repeat while preserving the previous result?

In Allplan 2024, we now allowed VS-PyP to be placed by mouse clicking. This also allows users to place the same VS-PythonPart object one after another.

Product Owner API, Allplan GmbH