Hi all,

im not sure how i can explain this but i will try..

i have a structure which basicly looks like this:

TStructureList = class;

TStructure = class
StructureType {either stGroup, stPolyhedron, stFace or stEntity}
children: TStructureList;
.. Other properties ..
end;

Now in my editor, i have a Treeview, which i want to display all these structure objects
eg.


Groups can contain: Groups, Polyhedrons, and Entities
Polyhedrons can only contain faces
Faces and Entites do not contain anything.

The only way i can think of doing this is with lots of If and For Loops?

Please can anyone give their ideas of how i can do this??

Thanks for any help,
M109uk