‎30-09-2014 01:02 PM
How could I get coordinates of an object into a Diagram. I could see DrawingItem method "setPos....", does exist the getter method too?
Solved! Go to Solution.
‎01-10-2014 02:36 PM - edited ‎01-10-2014 02:36 PM
Ciao Andrea,
you have to use the "left", "top", "right" and "bottom" properties of your drawing object.
For example :
Set myDiag = getObjectfromId("xxxxxx") 'Where "xxxxxx" is the _idabs of your diagram Set oDrawing = myDiag.drawing("RW") For each oDrawingObject in oDrawing.DrawingObjects
If oDrawingObject.getId = "yyyyyy" 'Where "yyyyyy" is the getId of the concerned object msgbox "Left : " & oDrawingObject.left & vbcrlf &_ "Top : " & oDrawingObject.top & vbcrlf & _ "Right : " & oDrawingObject.right & vbcrlf &_ "Bottom : " & oDrawingObject.bottom Next
Regards,
Lionel