Book a Demo

Author Topic: Flowports in Sparx 9.x  (Read 5034 times)

jprince

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Flowports in Sparx 9.x
« on: December 14, 2011, 01:58:29 am »
I am currently using Sparx 7.5 and an looking to upgrade to sparx 9.2. the thing holding me back is flowports. In sparx 9.2 whenever I add flowports they are massive and i cant make them smaller. I even tried creating a new sparx file and was unable to create smaller flowports. Below is a url for an image describing my issue.

http://imageshack.us/f/542/sparx.png/

Any help will be greatly appreciated.

thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Flowports in Sparx 9.x
« Reply #1 on: December 14, 2011, 03:47:37 am »
That looks like the MDG is corrupt. Or maybe you should check your Settings/UML/Stereotypes for a duplicate. Ports should not be an issue with 9.2.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Flowports in Sparx 9.x
« Reply #2 on: December 14, 2011, 08:52:54 am »
In 9.2 you should be able to find an option "right-click > Advanced > Port Size Customizable". If this option is switched on, you can resize the port by dragging the grab handles or by Ctrl + arrow keys. If it is switched off, the port will revert to its default size.
« Last Edit: December 14, 2011, 09:09:22 am by KP »
The Sparx Team
[email protected]

jprince

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Flowports in Sparx 9.x
« Reply #3 on: December 15, 2011, 06:44:49 am »
Thanks for the help. The "right-click > Advanced > Port Size Customizable" works but needs to be done to every port. Also all new ports i add revert back tot he large size. Is there something else i can try so all the new ports i create are automatically the smallest size possible (which is what i want)

thanks

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Flowports in Sparx 9.x
« Reply #4 on: December 15, 2011, 08:41:30 am »
Could you create a template package, then add a flowport that has been reduced to minimum size? I have not tried this myself, so I cannot say for sure whether a template flowport will respect the size setting.

If this works there is still some front-end work. You will also have to ensure the template package is available while you are building the model. This should still be less hassle than what you are doing now.

NB: I am assuming from memory that you won't need the template in a distributed model. You should verify this if you need to share the model with other authors.

David
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Flowports in Sparx 9.x
« Reply #5 on: December 15, 2011, 10:06:30 am »
I think qwerty's comment is close to the problem. The flow port gets its size from the stereotype. If it's getting the wrong size, then it must be using the wrong stereotype from the wrong profile. Open up the Resources window (Alt+6) and if you find a SysML technology or SysML profile in there, remove it. Go to Settings > UML Types and if you see a stereotype called flowPort in there, delete it. Then go to Settings > MDG Technologies and make sure that one and only one SysML technology is enabled (preferably SysML 1.2). Finally, restart EA and you should find that all new flow ports will be the correct size.

PS Welcome back David. Flying visit?
« Last Edit: December 15, 2011, 10:10:14 am by KP »
The Sparx Team
[email protected]

jprince

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Flowports in Sparx 9.x
« Reply #6 on: December 17, 2011, 01:00:47 am »
The issue does have something to do with the flow port steriotype. i have a custom Shape Script which i originally though could be the problem. i have tried deleting the entire shape script so the script is blank. Still the port comes up as the wrong size. I then tried override appearance -> none. Still no help.

When deleting the stereotype it does fully solve this size issue. The problem this creates is that i dont have the EAP file for the Sparx profile I am using. With sparx 9.2 can i rescue my UML profile? I dont think i can but worth asking.

One thing ive done was disassociate the flowchart from my UML profile which fixes the issue. (http://imageshack.us/photo/my-images/220/flowport.jpg/)

If i can get the UML profile i am using how do i modify it to recreate the flow port so it is not corrupted?


jprince

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Flowports in Sparx 9.x
« Reply #7 on: January 21, 2012, 04:23:01 am »
I ended up finding the sparx profile file. To fix the issue all i needed to do was change "FlowPort" to "flowport" in the profile and then re-import that UML profile into the sparx i am using.

What could have caused this issue?