Hello Chris,
Add a child list rule before you collect the data. I think this is the code you are looking for!!!
#! NX/KF 5.0
DefClass: CylinderAttributes (ug_base_part);
(Child List) cylist: {
Class, nx_cylinder;
quantity, 5;
};
(List Modifiable) writer: Loop {
For $Cylinder from 1 to...