Hi Ilopez, you can import in the relationships using this script in Excel:
Sub relationshipcreate(outputws As Worksheet)
Dim x As Integer
x = 3
Do Until IsEmpty(outputws.Cells(x, 4))
If IsEmpty(outputws.Cells(x, 4)) Or IsEmpty(outputws.Cells(x,

) Or IsEmpty(outputws.Cells(x, 9)) Then
MsgBox "The relationships have not been populated correctly in row " & x & vbCrLf & vbCrLf & "Please check the " & outputws & " tab" & _
vbCrLf & vbCrLf & x - 3 & " relationships have been created in EA", vbOKOnly
Exit Sub
Else
Call addConnector(outputws.Cells(x, 4), outputws.Cells(x,

, outputws.Cells(x, 9), outputws.Cells(x, 10))
x = x + 1
End If
Loop
MsgBox x - 3 & " relationships have been created in EA", vbOKOnly
outputws.Select
outputws.Cells.EntireColumn.AutoFit
outputws.Cells(3, 1).Select
End Sub
Function addConnector(SourceElementID, TargetElementID, ConnectorType, connectorname)
Dim SourceElement As EA.element
Dim newconnector As EA.connector
Dim repository As EA.repository
Set eaapp = GetObject(, "EA.App")
Set repository = eaapp.repository
Set SourceElement = repository.GetElementByID(SourceElementID)
Set newconnector = SourceElement.connectors.AddNew(" ", ConnectorType)
newconnector.SupplierID = TargetElementID
newconnector.Name = connectorname
newconnector.Update
Set addConnector = newconnector
End Function
The excel worksheet columns will need to be in this format:
SourcePackage,SourceType,SourceName,SourceID,TargetPackage,TargetType,TargetName,TargetID,RelationshipType,RelationshipName
You will first have to retrieve the ID's of the elements from the model. Let me know if you need a hand getting these.
Cheers,
Rupert