N
nyar
I am trying to figure out a way to iterate through all the shapes within a group. Does anybody know how to reference a shapes inside of a group programmatically using C?
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 THE 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 THE GROUP SHAPES HERE!
}
Any information is appreciated.