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
Hello all! I was hoping you could help me with a situation:
1. I have an excel table with 5 columns and about 200 rows. The columns are as follows: A = Component 1 B = Type of Interface C = Component 2 D = Interface name E = A note F = Output
2. I have to create a dependency diagram using any tool - but I want to do it in EA since it's easier to maintain later. 3. I want to include all columns but the last two can be omitted if necessary.
Any ideas? Can I import these somehow and have the lines "draw themselves"? Last thing I want to do is do this whole thing manually. :'(
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
Interesting. Any specific section in EA's API? Right now I'm trying to import via CSV...
[original message]
qwerty
unread,
Apr 17, 2012, 2:59:00 PM4/17/12
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
I'm afraid CSV import will not be able to create the references. What you need to to is in short:
Code:
pk = repos.GetTreeSelecetdObject() # highlighted package in browser for each row �c1 = pk.Elements.Addnew (col1, "Component") �# you might have a local lookup for duplicates �c1.Update �c2 = pk.Elements.Addnew (col3, "Component") �c2.Update �# now I don't know how you will handle your interfaces but to make it simple �con = c1.Connetors.Addnew("", "Association") �con.clientId = c2.ElementId �con.update() # link c1-c2 via association end
Hope that gives an idea. There are quite some example scripts you can take as a start (VB and JScript).
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
Until someone else comes up with a better solution (CSV import might have improved since I last used it) you should look into View/Scripting. The samples are a good start.
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
The old problem of should I manually do it or spend some time automating it aye?
To help you work out what its going to look like I suggest you model one example so you understand how your model will look. For instance there are two ways you can model an interface. One attached to a component and the other is as a separate object.
If you have VBScript or JScript skills then suggest writing a script that parses your CSV file and creates the components, interfaces etc. There are plenty of example scripts and you'll have to search the forum for examples on creating relationships
Once your script has successfully imported the components, interfaces and relationships then you can drag the components onto a diagram to draw up. Alternatively in your script you can make your script a bit more complex and create diagrams too.
Think this would probably take me around half a day to write, test and fix any bugs. So assuming you could do it in the same time the question is would it be quicker doing it manually? I would be tempted to resort to doing it manually if it was a one off job and there 100 or less entries in that original files. If on the other hand your going to do this more than once then definitely go down the automation process.