Book a Demo

Author Topic: Shortcut Required  (Read 4519 times)

Prateek

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Shortcut Required
« on: June 20, 2013, 09:06:45 pm »
Hi All,

We are building upon a model wherin we require a combination of connectors i.e some are direct and the rest are Line Stlye-->Tree Style Horizontal. We have some 300-400 connectors per diagram and we have number of such diagrams to make. So we wanted to know if there is any shortcut for Line Style--> tree style horizontal also like we have a shortcut(Ctrl+Shift+D) for direct connections.

Sadly,the tool also does not have the option for selecting multiple connectors. :(

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Shortcut Required
« Reply #1 on: June 20, 2013, 10:50:51 pm »
No, there's not.

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Shortcut Required
« Reply #2 on: June 20, 2013, 11:47:09 pm »
Hallo,

if you have rules for your line-types you may write an addin.

I made a script where I select Elements and say what line style I want to have. Then the Addin change the line style of all in/out-coming visible lines according to the selected linestyle.

The gist is: You need to have rules that you can enforce by the addin.

The ingredients for such a script are:
- selected elements
- selected connector (only one)
- stereotypes
- etc.

Best regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Prateek

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Shortcut Required
« Reply #3 on: June 21, 2013, 01:29:09 am »
Thanx Helmut.
Can you please tell what is the name of that addin and from where can I get it.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Shortcut Required
« Reply #4 on: June 21, 2013, 01:45:36 am »
Quote
if you have rules for your line-types you may write an addin.

Those who can read have a clear advantage ...
« Last Edit: June 21, 2013, 01:46:01 am by Makulik »

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Shortcut Required
« Reply #5 on: June 21, 2013, 04:43:29 am »
Instead of an AddIn an automation script might also be suitable (sufficient) for this task once or repeatedly for the already existing connectors.

[edit]
Just to figure out the intend of my previous reply it should have been looking like this:

Quote
Quote
if you have rules for your line-types you may write an addin.
Thanx Helmut.
Can you please tell what is the name of that addin and from where can I get it.
...
[/edit]
« Last Edit: June 21, 2013, 05:47:56 am by g.makulik »
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Shortcut Required
« Reply #6 on: June 21, 2013, 04:48:00 am »
Hi,

I have implemented a c# Addin with my own rules. They are simple:

  • Select one or more Elements on the diagram
  • Choose the line-type in the addin (all standard line types without shortcut)

The Addin will apply the line-style to all visible connections of the selected elements.

If you are interested I send you the source code of the addin without warranty and free of charge. Ok in fact you will get a lot more functions which you could use or delete. In effect: Free of copyright.

A deployment project WIX is included.

You may use it as a starting point for your own Addin.

Have a look on LieberLieber. If I remember correctly they also have something.



Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Shortcut Required
« Reply #7 on: June 21, 2013, 04:53:12 am »
Hi,

a script solution as proposed by g.makulik is also smart. The advantages of a script solution are:
- Easier to develop
- Faster in execution

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)