To map out the nodes used to display IDP connections in an LCA, I need to retrieve the NodeEdgeX
and NodeEdgeY
values, which are stored in the custom tab of the properties menu. The only approach I can think of is using the GetPropertyValueMessage
via the IDMS SLNet call. However, since this message lacks thorough documentation—at least to my knowledge—I’m unsure whether it retrieves the values I’m looking for.
When I tested this with the SLNet Client Test Tool, calling the message without parameters returned some values from the properties menu, but not the NodeEdgeX/Y
coordinates. Furthermore, when I specified "NodeEdgeX" in the PropertyName
field, I received <no message>
, which suggests that this call does not retrieve these parameters.
Is there currently a way to retrieve these values through an ad hoc script?
I was able to fetch the values directly by simply retrieving the element properties using the GetElement() Method without the need for an SLNet call. Here is an example:
var elements = GetElements();
foreach (var element in elements)
{
var nodeEdgeX = element.Properties.Where(x => x.Definition.Name.Equals("NodeEdgeX"));
var nodeEdgeY = element.Properties.Where(x => x.Definition.Name.Equals("NodeEdgeY"));
var nodeEdgeXValue = "N/A";
var nodeEdgeYValue = "N/A";
if (nodeEdgeX.Any())
{
nodeEdgeXValue = nodeEdgeX.First().Value;
}
if (nodeEdgeY.Any())
{
nodeEdgeYValue = nodeEdgeY.First().Value;
}
}