You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sparx-enterprise-archite...@googlegroups.com
Hi,
It seems to be a hot topic and I have found various pieces of the puzzle of importing relationships from Excel however does anyone actually have the code used to do so that I could please have?
I have a script working that will update the t_connector table with new rows however advice from various people (including Geerts) is to not do it that way. Unfortunately then I hit the wall of my technical capabilities and have been unable to create a whole script that will import my relationships.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sparx-enterprise-archite...@googlegroups.com
There is a complete script to create a relationship (connector) in the help at /Automation and Scripting/Enterprise Architect Object Model/Reference/Code Samples/Add a Connector.
The MDG Office Integration that Sparx just released will allow you to do this as will EADocx.
[original message]
Bellekens@localhost Geert Bellekens
unread,
May 13, 2015, 1:56:57 AM5/13/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sparx-enterprise-archite...@googlegroups.com
Adding a relation to an element using the API is actually quite simple.
You need
- SourceElement as EA.Element - TargetElementID as Long - ConnectorType as String
Then you do can call a method like this one:
Code:
function addConnector (SourceElement, TargetElementID,ConnectorType) dim NewConnector as EA.Connector 'Create the new connector at the source element set NewConnector = SourceElement.Connectors.AddNew("name or empty string", ConnectorType) 'Set the target element NewConnector.SupplierID = TargetElementID 'Save the connector NewConnector.Update 'Return the connector set addConnector = NewConnector end function
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sparx-enterprise-archite...@googlegroups.com
For completeness eaDocX can also import relationships from Excel. Go to EaDocX.com for a trial version which gives you 30days to check out if it does what you want!
[original message]
Nabil
unread,
May 13, 2015, 7:55:25 AM5/13/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sparx-enterprise-archite...@googlegroups.com
Hi PhilBennett1,
Try MDG Office Integration from Sparx Systems to import data from excel which will allow to import relationships and elements also set stereotypes to the elements