Question: recursive GetDimensionValue

how can I make a recursive loop to automate Getting a dimension from sevral sketches in one part?
in my solidpart i have 20  identical sketches each has a dimension called cord and  name fan  but numbered from 1 to 20   like cord@fan1@PART.PAT,
cord@fan2
@part.part
I tried to create a loop to read these dimensions from the part in the following method but it did not work.
for  i  from 1 to 20 do
GetDimensionValue(doc,cord@fan||i@part.part);
end do;

 I was not able to access this string input with a recursive loop.
when rou use
printf("VIVA Maple/d",13);
it works and I can acces the string in a C like fashion.

How can I overcome this problem??and make a recursive GetDimensionValue  like it it is done in GetCellValue
 

Please Wait...