Book a Demo

Author Topic: Default line style  (Read 8944 times)

Sygnus

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Default line style
« on: May 18, 2013, 03:42:44 am »
Greetings.

Is it possible to spcify a default line style for a custom connector stereotype?

Are there any properties that I can set on the profile diagram elements to achieve this?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Default line style
« Reply #1 on: May 18, 2013, 04:51:13 am »
I'd catch the EA_OnPostNewConnector in an add-in to change the style.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Default line style
« Reply #2 on: May 20, 2013, 09:34:19 am »
Search the help for _lineStyle
The Sparx Team
[email protected]

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Default line style
« Reply #3 on: May 28, 2013, 04:54:29 pm »
Interesting.. I just tried that in a UML profile where I added the attribute _lineStyle with the initial value of orthogonalS in my stereotype element (extending the metaclass class) with no luck.

_lineStyle is treated as a "tagged value" when I import the UML profile and create a stereotyped element.

I'm using the latest v10 build 1007.

Anything I've missed ?

Thanks
Guillaume

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


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Default line style
« Reply #4 on: May 28, 2013, 06:59:15 pm »
I guess you need it in an extension of a connector meta class.

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Default line style
« Reply #5 on: May 28, 2013, 11:13:29 pm »
Ok it worked, but this isn't what I'mlooking for.
Creating a stereotype e.g. on the Association metaclass makes it compulsory to use a stereotype on the connector that's shown on the diagram whereas all I need is to apply a selected line style by default for all my new connectors. Furthermore I cannot change the line style with this stereotype.

Could Sparx add an option in EA Options -> Links that's similar to the existing "Generalization link style Default = tree" (Y/N) such as "Association link style Default = ..." drop down list populated with all styles & custom by default ?

Thanks
Guillaume

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


Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Default line style
« Reply #6 on: May 30, 2013, 10:34:43 pm »
To make it easier, could we have as an enhancement of EA all line styles listed in EA Tools / Options / Links -> under Default Style : replace "Routing" with Line Style

Thanks
Guillaume

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