M
Markus Breugst
Dear All,
I have a 2D shape with four connection points, and I named them TOP, BOTTOM,
LEFT and RIGHT.
If I connect the start point of a 1D connector shape to my 2D shape, I have
two possibilities:
1.) I connect the 1D shape to the entire 2D shape (i. e. i build a "dynamic
connection"). In this case, the BeginX cell of the 1D shape contains the
following formula:
_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)
2.) I connect the 1D shape to one of the four connection points of the 2D
shape. For example, if I use the BOTTOM point, the BeginX cell of the 1D
shape contains the following formula:
PAR(PNT(Sheet.55!Connections.BOTTOM.X,Sheet.55!Connections.BOTTOM.Y))
Now, I want my C# application to determine how the 1D shape is connected to
the 2D shape. I try to do this by examining the BeginX formula. (If the
formula contains the string "BOTTOM", I know that the connector is connected
to the BOTTOM connection point.)
Here's the line of code that retrieves the BeginX formula:
string beginXFormula = oneDShape.get_Cells("BeginX").FormulaU
If the 1D shape is dynamically connected, the variable 'beginXFormula'
contains the value I would expect:
beginXFormula = "_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"
BUT:
If the 1D shape is connected to one of the four connection points of the 2D
shape, the variable 'beginXFormula' does NOT contain the formula, but the
VAULE of the coordinate (as string):
beginXFormula = "86.5200 mm"
Instead, I would like to get the formula
"PAR(PNT(Sheet.55!Connections.BOTTOM.X,Sheet.55!Connections.BOTTOM.Y))"
instead.
Does anybody have an idea what's wrong here?
Thanks and best regards,
Markus
I have a 2D shape with four connection points, and I named them TOP, BOTTOM,
LEFT and RIGHT.
If I connect the start point of a 1D connector shape to my 2D shape, I have
two possibilities:
1.) I connect the 1D shape to the entire 2D shape (i. e. i build a "dynamic
connection"). In this case, the BeginX cell of the 1D shape contains the
following formula:
_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)
2.) I connect the 1D shape to one of the four connection points of the 2D
shape. For example, if I use the BOTTOM point, the BeginX cell of the 1D
shape contains the following formula:
PAR(PNT(Sheet.55!Connections.BOTTOM.X,Sheet.55!Connections.BOTTOM.Y))
Now, I want my C# application to determine how the 1D shape is connected to
the 2D shape. I try to do this by examining the BeginX formula. (If the
formula contains the string "BOTTOM", I know that the connector is connected
to the BOTTOM connection point.)
Here's the line of code that retrieves the BeginX formula:
string beginXFormula = oneDShape.get_Cells("BeginX").FormulaU
If the 1D shape is dynamically connected, the variable 'beginXFormula'
contains the value I would expect:
beginXFormula = "_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"
BUT:
If the 1D shape is connected to one of the four connection points of the 2D
shape, the variable 'beginXFormula' does NOT contain the formula, but the
VAULE of the coordinate (as string):
beginXFormula = "86.5200 mm"
Instead, I would like to get the formula
"PAR(PNT(Sheet.55!Connections.BOTTOM.X,Sheet.55!Connections.BOTTOM.Y))"
instead.
Does anybody have an idea what's wrong here?
Thanks and best regards,
Markus