[Question] Why doesn't this Script generate two lines? Python Script + API + in Visual Scripting [Solved]


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)

Attachments (2)

Type: image/jpeg
Downloaded 108 times
Size: 44,65 KiB
Type: image/jpeg
Downloaded 92 times
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/ uses cookies  -  More information

Accept