AddEntities(Int32,Int32,LineEntity[]) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The AddEntities() method adds multiple entities to a line in a single method call.
This overload of the method includes the sessionID parameter.
'Declaration
Public Overloads Shared Sub AddEntities( _
ByVal sessionId As Integer, _
ByVal lineId As Integer, _
ByVal lineEntities() As LineEntity _
)
'Usage
Dim sessionId As Integer
Dim lineId As Integer
Dim lineEntities() As LineEntity
LineEntLink.AddEntities(sessionId, lineId, lineEntities)
public static void AddEntities(
int sessionId,
int lineId,
LineEntity[] lineEntities
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method.
- lineId
- Required. The ID of the line to which the entities are being added.
- lineEntities
- Required. The entities to be added to the line.
Observe the following input parameter rule:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
For a line's production rates to be properly calculated, you must observe the following guidelines when adding entities to a line:
- Only entities that can run jobs, capture utilization, and track OEE can be added to a line.
- The line's parent entity cannot be added to the line.
- An entity that is already a member of the line cannot be added again.
- An entity that is already a member of another line cannot be added to this line.