Home › Forums › Problems and solutions in GDL › Lists and schedules › Where I get the idxSkin? › Reply To: Where I get the idxSkin?
October 9, 2015 at 16:50 #1695
idxSkin is the index of the skin to which you would like to get the volume. Unfortunately, this index is a bit tricky, it starts from 0 and must be smaller then WALL_SKINS_NUMBER. You can use the following code to get all skins volume and area from a composite wall:
for i = 1 to WALL_SKINS_NUMBER success = REQUEST ("COMPONENT_VOLUME", i-1, skinVolume) component "volume " + WALL_SKINS_BMAT_NAMES[i], skinVolume, "m3" success = REQUEST ("COMPONENT_PROJECTED_AREA", i-1, skinArea) component "area " + WALL_SKINS_BMAT_NAMES[i], skinArea, "m2" next i
I hope it helps.
Team Leader, Library Team