SupportedConnections Method - Intergraph Smart 3D - Reference Data

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
11 (2016)

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>();

routeConnections.Add(new ConnectionInfo(PIPECLAMP, 1)); //partindex, routeindex

//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 previous example, collections of six ConnectionInfo's are returned. These collections represent the four assembly components physically touching three pipes, the cross bar, and three U-bolts. The first argument in ConnectionInfo is the partKey of the assembly part as referenced from the list returned in the Parts() method.