Import tool for Visio

Started by xs2ahmed, June 26, 2008, 04:44:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xs2ahmed

Hi,
I am new on this forum as I found this website to be a good Visio programming resource,
I am to write an Import tool for our application which may Import Visio Diagrams into our own drawing board,
I am using Automation using C# ato interact with Visio,
I am researching as to how can we read shapes, So far I have come across one way to read shapes,
which is
through Shape object->Paths collection->Path object->Points array (points represent boundry of shape)...
If I read an object/shape such as en ellipse or circle using the above way, I end up with hundreds of points and if I increase the tolerance to get lesser points, I would not be able to recreate that shape in my own application,
Is there a way to find out if a shape(path) is a cricle or ellipse and if so, is there a way to get its parameters that define an ellipse or circle, like a bounding box,.. so that I can easily reproduce that programatically in my own program, ?
Regards,
Ahmed

aledlund

why not open the shapesheet and read the geometry sections?