G
geejay
Hi
(Visio SDK, .NET Framework 3.5)
I am trying to figure out how to get absolute pin values for all the objects
I programmatically create within a Visio page.
Because I want to use groups, I have some objects that are relatively
positioned within the group. However I am struggling trying to get meaningful
pin values from these objects.
Here is the method I am trying to use:
I check to see whether the containing shape is the page or another object.
If the containing shape is the page, then I am safe, and can use the value
retrieved from Visio.VisCellIndices.visXFormPinX in the shapesheet.
If the shape is part of a group, then I try using the XYToPage method on the
shape to get the absolute page pin values. This almost works, but is always
above by about 1 cm.
I should also mention that I am using "cm" by default. However, changing the
page units doesn't seem to have much affect.
Wondering if anyone has had success with the XYToPage method?
Cheers
Greg
(Visio SDK, .NET Framework 3.5)
I am trying to figure out how to get absolute pin values for all the objects
I programmatically create within a Visio page.
Because I want to use groups, I have some objects that are relatively
positioned within the group. However I am struggling trying to get meaningful
pin values from these objects.
Here is the method I am trying to use:
I check to see whether the containing shape is the page or another object.
If the containing shape is the page, then I am safe, and can use the value
retrieved from Visio.VisCellIndices.visXFormPinX in the shapesheet.
If the shape is part of a group, then I try using the XYToPage method on the
shape to get the absolute page pin values. This almost works, but is always
above by about 1 cm.
I should also mention that I am using "cm" by default. However, changing the
page units doesn't seem to have much affect.
Wondering if anyone has had success with the XYToPage method?
Cheers
Greg