Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Jon

Pages: [1]
1
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

Pages: [1]