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] 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

Anhänge (3)

Typ: image/jpeg
99-mal heruntergeladen
Größe: 793,76 KiB
Typ: image/jpeg
40-mal heruntergeladen
Größe: 978,74 KiB
Typ: image/jpeg
28-mal heruntergeladen
Größe: 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

Anhänge (1)

Typ: image/png
60-mal heruntergeladen
Größe: 13,82 KiB

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

Anhänge (2)

Typ: image/jpeg
46-mal heruntergeladen
Größe: 748,48 KiB
Typ: application/x-sqlite3
516-mal heruntergeladen
Größe: 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

Anhänge (1)

Typ: image/jpeg
52-mal heruntergeladen
Größe: 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

Anhänge (1)

Typ: image/png
46-mal heruntergeladen
Größe: 63,48 KiB

Hi

Attached

thanks

Anhänge (1)

Typ: application/x-sqlite3
527-mal heruntergeladen
Größe: 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.

Anhänge (1)

Typ: image/png
9-mal heruntergeladen
Größe: 13,82 KiB

Zitiert von: 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.

Anhänge (2)

Typ: image/jpeg
37-mal heruntergeladen
Größe: 545,62 KiB
Typ: image/jpeg
22-mal heruntergeladen
Größe: 863,06 KiB
1 - 10 (16)

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

Akzeptieren