LinkSubList/pl

Opis
LinkSubList to struktura danych, która jest używana jako wejście dla różnych funkcji i obiektów. Jej celem jest przekazanie obiektu podrzędnego lub elementu podrzędnego (wierzchołka, krawędzi lub ściany) z obiektu do innego obiektu, który będzie używał lub przekształcał tę geometrię.

A LinkSubList is composed of a list of tuples.

Each tuple contains at least two elements; the first element is a reference to a document object, and the second element is a text string indicating the internal name of the subelement. This name has a number starting with one, and up to the total number of those subelements.

The second element of the tuple can itself be a list of strings, indicating various subelements of the same document object.

It is possible to see that a LinkSubList is a list of LinkSub structures. Each tuple is in fact a LinkSub.

Scripting
FreeCAD Scripting Basics, LinkSub.

A new scripted object can accept a LinkSubList by adding the corresponding property.

It is important to recompute the objects before their subelements are used as input for other objects, otherwise an error may be produced as the geometry may not contain a valid Shape.

The subelement can then be extracted from the assigned property, and can be manipulated to do something.