Book a Demo

Author Topic: Autogenerating personalized component names in a diagram  (Read 3764 times)

Knightrider

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Autogenerating personalized component names in a diagram
« on: May 31, 2016, 09:59:51 am »
Hi All

I want to be able to automatically generate a personalised ID for each component I am creating on a component diagram. The first one I create should be tagged with id AC001 where AC represents Application Component. The next one I create should automatically be tagged AC002 and so on. I also want to be able to generate sub-ids. Say for example AC001.01 becomes the first sub-component within component AC001 and AC001.02 is the second sub-component. I have a big diagram and many people will be working on it. I don't want people to have to keep track of what ID we are up to. I will have an Oracle database in the background so maybe I can use sequence ID number from there (Just a thought).

As I am completely new to Sparx, I dont know if this is asking for too much. I assume there must be a way of coding this to work in Sparx. Can someone please advise?

Thanks in Advance

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Autogenerating personalized component names in a diagram
« Reply #1 on: May 31, 2016, 10:11:10 am »
Everything except the sub-ids can be done by following the instructions on this page:

http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/autocounternames.html

You may want to give your components descriptive names and set up the auto-naming for the alias field. Then you can ask EA to show name and alias at the same time.
« Last Edit: May 31, 2016, 10:19:34 am by KP »
The Sparx Team
[email protected]