ChrisNash
Aerospace
- Oct 28, 2009
- 1
Can anyone please help me out with this? I am trying to create some KF code to create a list of lists. Each child list should contain the diameter, height, origin, and direction for each cylinder in a list. I figured the best way to gather this information would be to use a loop. I started simple by just trying to gather the values of the cylinder diameters. The code I have is listed below. The error I keep getting is "Child not available in this context".
Are there any suggestions or ideas out there?
#! UGNX/KF 2.0
DefClass: CylinderAttributes (ug_base_part);
(list) CylList: {
Cylinder:,
Cylinder_0:,
Cylinder_1:,
Cylinder_2:,
Cylinder_3:,
Cylinder_4:
}
(list) writer: loop
{
for $ch in CylList:; #iterator
collect Diameter:;
};
(list) demandValue" {writer:};
Are there any suggestions or ideas out there?
#! UGNX/KF 2.0
DefClass: CylinderAttributes (ug_base_part);
(list) CylList: {
Cylinder:,
Cylinder_0:,
Cylinder_1:,
Cylinder_2:,
Cylinder_3:,
Cylinder_4:
}
(list) writer: loop
{
for $ch in CylList:; #iterator
collect Diameter:;
};
(list) demandValue" {writer:};