Support Forum

[Question] Points from List


Hi everyone

I have a List that contains lengths for (X) & (Y) points structured Like the below:
X points
List[4]0 List[5]1 List[5]2 List[5]3 List[5]Y points
0 List[5]1 List[5]2 List[5]3 List[5]

I want to create 16 points combination using the above with Point3D Nod, but if I connect both List (X, Y) to the Point3D Nod I get the result as attached (Result) with 4 points . my target is to combine 0 List in the x with all 4 Y and to do this with all X List. I could achieve this by dividing the Y using ListItem Node as shown in the correct-Points attachment.

thanks

Attachments (3)

Type: image/jpeg
Downloaded 99 times
Size: 793,76 KiB
Type: image/jpeg
Downloaded 40 times
Size: 978,74 KiB
Type: image/jpeg
Downloaded 28 times
Size: 798,12 KiB
1 - 10 (16)

Hi,

you need to set the list combination by clicking the button right to X and Y.

Best regards
Horst

Attachments (1)

Type: image/png
Downloaded 60 times
Size: 13,82 KiB

Thanks for the answer. but still, it is only 4 combinations. see the attached photo and example script.

Attachments (2)

Type: image/jpeg
Downloaded 46 times
Size: 748,48 KiB
Type: application/x-sqlite3
Downloaded 509 times
Size: 132,00 KiB

Hi,

you can set

- X to "One list with single elements"
- Y to "All elements as block"

Best regards
Horst

Hi

setting the
- X to "One list with single elements"
- Y to "All elements as block"
will give 20 List.

check the attached. the required result shall be Like the attached photo 16 List each list with 5 Points to create a polygon. I was trying to remove the circled node to reduce the node number in the script.

thanks again

Attachments (1)

Type: image/jpeg
Downloaded 52 times
Size: 863,06 KiB

Hi,

please attach your current avsprj file which creates the wrong result. I need to debug it.

Best regards
Horst

I think you should try:
set X to use "Input lists as single element list per row"
set Y to use "One list with single elements"

Please check if that helps.

Product Owner API, Allplan GmbH

Attachments (1)

Type: image/png
Downloaded 46 times
Size: 63,48 KiB

Hi

Attached

thanks

Attachments (1)

Type: application/x-sqlite3
Downloaded 519 times
Size: 132,00 KiB

Hallo Horst,

vielleicht ist es ein gute Idee, die Optionen
-One list with single elements
-All Elements as a block
-Input lists as single element list per row
-Input lists as block per row

mal irgendwo zu erklären. In der Hilfe habe ich dazu nichts gefunden.
Insbesondere müssen folgende Dinge erklärt werden:

Werden die Operationen an der/den Listen vor der Ausführung des Nodes gemacht, oder mit dem Ergebnis?
Dabei sollte "Input lists" vs. "list" erklärt werden.

Was ist ein "Block"? Es gibt eigentlich nur verschachtelte Listen!

Was ist mit "per Row" gemeint. Die Listen können beliebig tief verschachtelt sein.
Eine "zweidimensionale" Liste mit Spalten und Zeilen ist sicher verbreitet, aber es kommen auch tiefer verschachtelte Listen vor!

Was ist eine "single element list"? Eine lineare List, mit atomaren Werten/Elementen ?

Nur zum Vergleich: Dynamo hat die "Listenmodifikation an den Eingängen und Ausgängen" wieder entfernt, und setzt darauf, dass der User die mit Listen mit Nodes in die richtige Form bringt.
Darüber hinaus ist es ein grunlegendes Paradigma, dass die Struktur der Listen hinsichtlich Verschachtelung am Ausgang erhalten bleiben muss. D.h. aus der Listenstruktur an den (zwei) Eingängen
muss eine äquivalente Listenstruktur am Ausgang unter Berücksichtigung des Lacings erzeugt werden. Die Verschachtelungstiefe der Elemente darf dabei keine Rolle spielen. Sonst ist ein Script/Node ggf. nicht in der Lage, mehrere Elemente aus Listen zu erzeugen.

Attachments (1)

Type: image/png
Downloaded 9 times
Size: 13,82 KiB

Quote by Xinling
I think you should try:

set X to use "Input lists as single element list per row"

set Y to use "One list with single elements"
Please check if that helps.

I try this setup but it will take a single value from the Y and then use it. but what I am looking for is similar to when I make both X & Y "Input lists as single element list per row" attached. but I want to extend this to get the X1 highlighted with yellow with the Y2, Y3, and Y4. currently the result is X1Y1, X2Y2, X3Y3, and X4Y4. The target is to match the X with all the Y values.

Attachments (2)

Type: image/jpeg
Downloaded 37 times
Size: 545,62 KiB
Type: image/jpeg
Downloaded 22 times
Size: 863,06 KiB
1 - 10 (16)

https://connect.allplan.com/ uses cookies  -  More information

Accept