SupportedConnections Method - Intergraph Smart 3D - Reference Data - Hexagon PPM

Intergraph Smart 3D Hangers and Supports Reference Data

Language
English
Product
Intergraph Smart 3D
Subproduct
Hangers and Supports
Search by Category
Reference Data
Smart 3D Version
13.1
Standard Database for Smart Reference Data Version
2020 (12.0)

The SupportedConnections method of the CustomSupportDefinition class provides information specifying those components of the assembly that physically connect to the supported input objects. The method is defined as:

public override Collection<ConnectionInfo> SupportedConnections

{}

The method returns a collection of ConnectionInfo. The following example code shows a sample implementation of this method for the structural support assembly shown in Figure 2.

public override Collection<ConnectionInfo> SupportedConnections

{

get

{

try

{

//Create a collection to hold the ALL Route
// connection information

Collection<ConnectionInfo> routeConnections = new Collection<ConnectionInfo>();

for (int iIndex = 1; iIndex <= SupportHelper.SupportedObjects.Count; iIndex++)
// partindex, routeindex

{

if (includeUBolts)

{

routeConnections.Add(new ConnectionInfo(PIPEATT[iIndex], iIndex));

}

else

{

routeConnections.Add(new ConnectionInfo(HOR_SECTION, iIndex));

}

}

//Return the collection of Route connection
// information

return routeConnections;

}

catch (Exception e)

{

Type myType = this.GetType();

CmnException e1 = new CmnException("Error in Get Route Connections." + myType.Assembly.FullName + "," + myType.Namespace + "." + myType.Name + ". Error:" + e.Message, e);

throw e1;

}

}

}

Figure 2: Trapeze Support with Associated Ports

In the previous code example, the collection contains 1 ConnectionInfo object for each route selected. If the support contains u-bolts, then each ConnectionInfo object contains a u-bolt partKey and its corresponding route index. If u-bolts are not include, then each ConnectionInfo object contains the trapeze steel partKey and a route index.