N
nyar
Using C, how would you reference a shape inside of a group?
I currently use the following code to iterate through the shapes, but I can't figure out how to iterate through the subshapes.
// temp vars
long nShapeCount = 0;
long nShapeIndex = 0;
// get shape count
hr = pShapes->Count(&nShapeCount);
// index is 1 to ShapeCount in Visio
for(nShapeIndex = 1; nShapeIndex <= nShapeCount; nShapeIndex++)
{
// get shape
hr = pShapes->Item(VVariant(nShapeIndex), vsCurrentShape);
//I WANT TO ITERATE THROUGH vsCurrentShapes GROUP SHAPES HERE!
}
Any information is appreciated.
I currently use the following code to iterate through the shapes, but I can't figure out how to iterate through the subshapes.
// temp vars
long nShapeCount = 0;
long nShapeIndex = 0;
// get shape count
hr = pShapes->Count(&nShapeCount);
// index is 1 to ShapeCount in Visio
for(nShapeIndex = 1; nShapeIndex <= nShapeCount; nShapeIndex++)
{
// get shape
hr = pShapes->Item(VVariant(nShapeIndex), vsCurrentShape);
//I WANT TO ITERATE THROUGH vsCurrentShapes GROUP SHAPES HERE!
}
Any information is appreciated.