I have an assignment to write a program in IronPython, that reads a Visio (2010) Document, and outputs in CMD what objects are in the active page, and how they are connected to
You could start with something like this... it's pretty straightforward I suppose..
.......
.......
page = visapp.ActivePage
for shape in page.Shapes:
if not shape.OneD:
print shape.Name + " '" + shape.Text + "'"
for connectedShapeId in shape.ConnectedShapes(2, ""):
connectedShape = page.Shapes.ItemFromID[connectedShapeId]
print " => " + connectedShape.Name + " '" + connectedShape.Text + "'"