Author Topic: Set Default Line Style and Tree Routing  (Read 8886 times)

rothnic

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Set Default Line Style and Tree Routing
« on: June 22, 2013, 03:13:59 am »
I find that orthogonal square line style works the best for me, most of the time. However, I have to select every single line, right click, go to the menu, then select orthogonal square.

If there was a tree auto routing (versus pointing to the sides of the block) and/or I could have every line automatically be orthogonal square, this would save me a lot of time.

The auto route line style works ok, but sometimes it acts strangely around corners of blocks or compartments.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #1 on: June 22, 2013, 10:38:05 pm »
I know it’s not what you want, but an add-in will do what need quite easily. Check the OnPosNewConnector and set the attributes as you wish.

q.

rothnic

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #2 on: June 25, 2013, 07:28:24 am »
Quote
I know it’s not what you want, but an add-in will do what need quite easily. Check the OnPosNewConnector and set the attributes as you wish.

q.

Thanks, is this something that is doable via scripting or only by an add-in? I'm pretty limited on anything that requires modifying registry etc due to the computer environment I have to work in.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #3 on: June 25, 2013, 03:56:14 pm »
Hi,

you can make a script which changes the line style of every connection in the current diagram.

It's also possible to make a script for all selected elements and their in- and outgoing connections.

Of course you can also make it for all diagrams

If you are interested I can send you the code snipped in c# (addin). It would not be to complicated to transform this into a script in the language of your choice.

Kind regards,

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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #4 on: June 25, 2013, 10:08:46 pm »
Quote
Thanks, is this something that is doable via scripting or only by an add-in? I'm pretty limited on anything that requires modifying registry etc due to the computer environment I have to work in.

The broadcast events can only be catched via add-in. Else you would need to run a script manually every now and then manually.

However, writing an add-in is not too difficult. You can checkout Geerts blog and his add-in intro. I prefer Perl and have published that on the community site. These biggest issue would probably be to persuade your admins to allow modifications of the registry...

q.
« Last Edit: June 25, 2013, 10:10:18 pm by qwerty »

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #5 on: July 05, 2013, 02:56:28 am »
Quote
Hi,

you can make a script which changes the line style of every connection in the current diagram.

It's also possible to make a script for all selected elements and their in- and outgoing connections.

Of course you can also make it for all diagrams

If you are interested I can send you the code snipped in c# (addin). It would not be to complicated to transform this into a script in the language of your choice.

Kind regards,

Helmut

Can you make that code available on the community site Helmut?

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #6 on: July 05, 2013, 03:55:34 am »
Hi Graham,

I'll make the code available on the community side. If it's the code, just a Window Addin or both  I don't know.

Best regards,

Helmut

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

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Set Default Line Style and Tree Routing
« Reply #7 on: September 26, 2013, 06:24:33 pm »
Hi Helmut,

This add'in would be really useful! I also often use the orthogonal style, hence having the ability to set it by default would be great.

When do you think this plugin will be released on the community site?

Thanks
Guillaume
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #8 on: September 26, 2013, 09:19:18 pm »
Hi Guillaume,

I'll post this addin the next days. I only need some time to post it and make a little description.

Regards,

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

rothnic

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #9 on: September 27, 2013, 02:35:59 am »
Quote
Hi Helmut,

This add'in would be really useful! I also often use the orthogonal style, hence having the ability to set it by default would be great.

When do you think this plugin will be released on the community site?

Thanks
Guillaume

I put this script together and posted it here: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1377757601/2#2

I forgot to link to it from here in case others needed it. You can set it up to convert all lines on the current diagram to any of the line styles, using the built in scripting tools.

I used the scripting interface because I do not have admin rights to my work computer, so cannot use an add-in to change the style on the event of creating a new connector.
« Last Edit: September 27, 2013, 02:38:18 am by rothnic »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Set Default Line Style and Tree Routing
« Reply #10 on: October 01, 2013, 04:14:40 am »
Hi,

have a look in the community under:
http://community.sparxsystems.com/community-resources/745-toolset-to-set-linestyle-quick-search-and-a-lot-more

with that you can easily set your linestyle for selected:
  • Diagram
  • Diagram elements
  • Diagram links

You can use it as addin-window or tab window.

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