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] Internal coordinates through the PythonParts script


Hi to all.

I have tried to set the initial internal coordinates through the PythonParts script, but I have not been able to set it without clicking on the program interface. Would be any way to set something like the attached images #1 & #2 below?

What I would like is to be able to control the insertion point of the element.
To activate the command we double click on the PythonPart. Then I have to assign the initial coordinates of the element. I want that, by default, the initial coordinate of the element is the point (0,0,0) since the elements that I create through code have absolute coordinates and not relative ones.
I put the example of a 2d line created with PythonPart (attached image #3).

Thank you in advance.

Anhänge (3)

Typ: image/png
38-mal heruntergeladen
Größe: 72,76 KiB
Typ: image/png
32-mal heruntergeladen
Größe: 17,34 KiB
Typ: image/png
31-mal heruntergeladen
Größe: 73,13 KiB

Hi,

you can use an iteractor PythonPart, where you have full control over the workflow.

Please have a look at the interactor examples.

Best regards
Horst


https://campus.allplan.com/ verwendet Cookies  -  Mehr Informationen

Akzeptieren