[Otázka] Why doesn't this Script generate two lines? Python Script + API + in Visual Scripting [Vyřešeno]


hi

I would like to create two or more Allplan objects via the API and a Python Script. However, I can only create one item at a time.

Thanks in advance

br

Francesco

(Allplan 2023)

Přílohy (2)

Type: image/jpeg
Staženo 108
Size: 44,65 KiB
Type: image/jpeg
Staženo 92
Size: 30,52 KiB

Show solution Hide solution

Was soll das "and" dort? Wie sollen zwei Linien mit einem (logischen) AND-Operator verbunden werden?

Möglicherweise sollte man die beiden Linien in eine List tun?

return [AllplanGeo.Line3D(...),AllplanGeo.Line3D(...)]

...ist aber nur so'ne Idee.

Was soll das "and" dort? Wie sollen zwei Linien mit einem (logischen) AND-Operator verbunden werden?

Möglicherweise sollte man die beiden Linien in eine List tun?

return [AllplanGeo.Line3D(...),AllplanGeo.Line3D(...)]

...ist aber nur so'ne Idee.

Hi Nemo,

deine Idee hat funktioniert.
Vielen Dank!


https://campus.allplan.com/ používá cookies  -  Více informací

Souhlasím