Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: liquidray on June 15, 2007, 03:07:12 pm
-
Hi Everyone
I am wondering if its possible to set attributes on multiple elements all in 1 operation. Here is the scenario:
I have the Project Browser organized as such:
[]Project Name
L Use Case View
L Package 1
L Use Case 1
L External Requirement 1
L External Requirement 2
L External Requirement 3
L Use Case 2
L External Requirement 4
L External Requirement 5
L External Requirement 6
L Use Case 3
L External Requirement 7
L External Requirement 8
L External Requirement 9
L Package 2
L Use Case 4
L External Requirement 10
L External Requirement 11
L External Requirement 12
I would like to set the Phase Attribute of Package 1, Use Cases 1,2 and Requirements 1-6 to 1.5
So far I cant find a faster way than to have the Project Browser and The Properties roll out open and hand editing that attribute one by one.
Is there a way to set attributes en mass?
Follow up question: is there a way to set custom tagged values en mass?
Thank you!
-
In general, No... It's been requested often (and I think it's supposed to be coming - but then so is Christmas 2008 )
However, in the case of Status, Phase, Version and Modified date you can use:
<context Menu>|Package Control>Update Package Status...
on a selected package in the browser
Paolo
-
Bummer...
This makes handling a lot of connected elements a lot harder :(
Sounds like I will be putting in a lot of overtime bringing our models up to date.
-
Or perhaps a bit less overtime writing an add-in to do that for you.
Either way, I fear you're in for some unplanned evenings...
-
You bring up an interesting point...
How does one right an add-in for EA?
My only reservation about writing an add-in is that the next version will have the feature(s) I will want and will write.
It seems rather logical to me, having used the product for a little under two years, that one may want to do the same thing on a set of objects in the project - like let say add the same key word or change the language, version, or phase. Also one thing that I found really weird is that there was no way to multi-select objects in the tree and then create an RFT doc just for the selected objects. Oftentimes in my projects my documentation is for the current iteration which involves parts of many packages and creating a document for review is a difficult chore.
-
I think something like your rtf concern was added to version 7.0, but I'm not sure.
As to writing an add-in, there are basically two approaches (with variations on both themes possible). You can write an application outside of EA, and then call EA as a COM server. You can also write an add-in that will be packaged as a callable dll file, which EA will then load and execute as appropriate.
The former relies on the API described in the EA help and documentation under Automation and Scripting | The Automation Interface | Reference.
The latter requires a bit more reading between the lines. Go down to the Add-Ins section a bit below the above reference. You'll need to practice a bit, particularly if you've never written an MS Office add-in - though the two paradigms part company pretty early. Take a look at the downloads from Sparx as examples of add-ins. They are pretty primitive, but they give the right idea.
Just remember that the closer you get to the EA engine the more you have to think in terms of servicing events.
David
-
Hi,
We did write an addin to update the Version and / or phase on multiple items in a diagram. This was about ten years ago, and today there is support for this in EA.
I would like to update the Author of multiple elements and diagrams. The Use Case for this is, when I get a requirements document that I formulate to a Use Case, or when I receive a Powerpoint presentation that I make into a sequence diagram. I want all these elements to have the name of the engineer responsible.
I had a programmer write an addin for this, but even though it works well on a file base model, it (partly) fails on a SQL based model, or so I thought.
I had AI re-write it to add output at every variable change, and now it seems to work fine. I tried copying the script to here, but I am blocked. Probably that Cloudfare business.
Sincerely,
Shimon
-
I tried pasting the script here, but as it includes a See Que Ell statement, I can't manage it.
-
You bring up an interesting point...
How does one right an add-in for EA?
My only reservation about writing an add-in is that the next version will have the feature(s) I will want and will write.
A script would be a much simpler and quicker solution.
-
Hmm, we are resurrecting a post from 2007 :o, when EA was on only a toddler at version 7.
Is that really a good idea?
A script that updates the author on a set of elements is fairly easy to write.
Geert
-
Hi Geert,
This post was the closest existing one to what I wanted to share.
It's a shame that any script that contains SQL cannot be shared on this forum.
Sincerely,
Shimon
-
Hi Geert,
This post was the closest existing one to what I wanted to share.
It's a shame that any script that contains SQL cannot be shared on this forum.
Sincerely,
Shimon
yes, or a script that contains a command line command. Had that issue yesterday when trying to post an error message EA gave me.
I've sent a bug report to Sparx support about it.
Geert