individualBarList = [];
firstTranslatedGeometryRebarCurve;
rebarFromCurvesOne;
rebarShapeIdSettingOne;
[Imperative]
{
for(i in 0..0)
{
firstTranslatedGeometryRebarCurve = translateCurve(geometryOne, normalVectorOfSurface, firstDistanceOffsetFromFace);
rebarFromCurvesOne = barPlacement(firstTranslatedGeometryRebarCurve, rebarStyle, rebarBarType, rebarHookType, rebarHookType, rebarHookOrientation, rebarHookOrientation, hostElement, reversedNormalVectorOfSurface);
rebarShapeIdSettingOne = shapeIdSetting(rebarFromCurvesOne, rebarShape);
individualBarList.Add(firstTranslatedGeometryRebarCurve);
individualBarList.Add(rebarFromCurvesOne);
individualBarList.Add(rebarShapeIdSettingOne);
firstDistanceOffsetFromFace = firstDistanceOffsetFromFace + length;
}
};
But using the above method the rebar is creating but after the loop completes, the rebar gets disappeared. Why it is happening? If i check the list after the loop statement, The list is empty. I dont know how global variable works here? help me with this.