Book a Demo

Author Topic: Shape script - connector line type  (Read 6169 times)

harvinder

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Shape script - connector line type
« on: May 03, 2011, 12:08:17 pm »
Following is the shape script that I have used for dependency

Code: [Select]
shape main
{
    noshadow=true;
    setlinestyle("solid");
    moveto(0,0);
    lineto(100,0);
}

As long as the connector is straight I see solid line. However, when I break the connector I would see dashed line.

Okay
Code: [Select]
Source _______________Destination

Not so okay
Code: [Select]

_______________Destination
|

|

|

|
Source


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Shape script - connector line type
« Reply #1 on: May 03, 2011, 04:31:34 pm »
This is a known bug...

I can't remember if v9 Beta fixed it or not...

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

adama

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Shape script - SOLID connector line type does not work in v13
« Reply #2 on: February 26, 2017, 04:42:26 am »
This bug is NOT fixed. Take any dashed line and try to make it solid with an EA script. Only the horizontal segments are solid; vertical segments are invisible.

A_________>B works fine

      A
      ^

      B does not work. Vertical portion is invisible

A____

          ____>B does not work correctly. Vertical portion is invisible




KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Shape script - SOLID connector line type does not work in v13
« Reply #3 on: February 27, 2017, 10:16:44 am »
This bug is NOT fixed. Take any dashed line and try to make it solid with an EA script. Only the horizontal segments are solid; vertical segments are invisible.

A_________>B works fine

      A
      ^

      B does not work. Vertical portion is invisible

A____

          ____>B does not work correctly. Vertical portion is invisible

Works for me (stereotyped Dependency using harvinder's shape script from the first post in this thread). What version of EA 13 are you using? What base connector type are you extending? What is your shape script? Line style? Diagram type? Source and target elements?
The Sparx Team
[email protected]

adama

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Shape script - connector line type
« Reply #4 on: March 09, 2017, 02:00:21 am »
Yep. It works. Obviously, some operator error over here. Thanks MUCH to KP and others.