Defining Hanger and Support Part Ports - 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 part symbols used to represent a hanger and support assembly are expected to generate ports as output. The ports in question are objects implementing the IJHgrPort interface. Use the Port constructor that is provided for creating such objects. The creator of the port is responsible for the naming and the orientation. An example showing the creation of ports and setting the orientation is shown below.

public AspectDefinition m_Symbolic;

//Option1 – creating using single constructor

//Creating StructurePort port (Port1) using Port()

//It creates the port and also sets orientation to the port

Port port1 = new Port(OccurrenceConnection, part, "StructurePort", new Position(B/2, (S+2*T)/2, 0), new Vector(1, 0, 0), new Vector(0, 0, 1));

//Add the port to output collection

m_Symbolic.Outputs["StructurePort"] = port1;

//Option2 – creating using constructor and then setting origin & orientation

//Creating Pin port (Port2) using Port()

Port port2 = new Port(OccurrenceConnection, part, "Pin");

//set origin to the port

port2.Origin = new Position(B/2, (S+2*T)/2, - E);

//set orientation to the port

port2.SetOrientation(new Vector(1, 0, 0), new Vector(0, 0, 1));

//Add the port to output collection

m_Symbolic.Outputs["PinPort"] = port2;

The port's name is set using the "name" property on the port object. The following conventions should be used when naming ports.

  • If a symbol is in contact with or is considered to interact with a routing object, it should output a port named "Route". The port's location should represent the idealized point of contact between the symbol and the route object.

  • If a symbol is in contact with or is considered to interact with a structural object, it should output a port named "Structure". The port's location should represent the idealized point of contact between the symbol and the structural object.

This information is used in combination with the output from SupportingConnections( ) and SupportedConnections( ) of the Custom Support Definition (see the Hangers and Supports Reference Data Guide for more information about Custom Support Definition). For example, the software uses this data to generate reports and ISOGEN drawings.