Author Topic: Getting locations of diagram elements  (Read 1054 times)

Jon

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Getting locations of diagram elements
« on: January 27, 2004, 08:14:16 am »
I've been writing a custom document generator using the automation interface, and I'm having problems getting the locations of elements in the generated diagrams.

I've generated a diagram using PutDiagramImageToFile, which is fine.  I can iterate the elements on the diagram using Diagram.DiagramObjects, and can get each element's "location" using the left, right, top and bottom attributes.

Here's where I get stuck - the left, right etc don't align with the element's visual appearance in the diagram.  I've tried getting the same information through the xml "project" interface - but get the same problem.  the element is drawn slightly offset compared to the coordinates reported.

Anyone know how I can get the actual location of the diagram elements?

jon