Book a Demo

Author Topic: Cannot move state machine diagram between packages  (Read 12306 times)

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Cannot move state machine diagram between packages
« on: November 15, 2018, 04:31:38 am »
When trying to move state machine diagram from one package to another, following message does appear:

Quote
Diagram frame(s) are currently being displayed
Please disable them and save the diagram(s) before continuing

Well.. what exactly I have to do in order to move this diagram?

with regards

daygp

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #1 on: November 16, 2018, 02:48:14 pm »
I have the identical problem moving SysML block diagrams between packages

EA 14.1.1427

The bypass seems to be to copy, paste then delete the original :-\

Regards
Graham

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #2 on: November 16, 2018, 04:11:59 pm »
When you are showing a diagram frame on the diagram, the frame is considered (by EA) as a rendering of the diagram's parent. Thus you can't move the diagram without also moving its parent. The two are effectively locked together. To get around this, hide the diagram frame and save the diagram. You should then be able to move the diagram independently of its parent.
« Last Edit: November 16, 2018, 04:14:22 pm by KP »
The Sparx Team
[email protected]

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #3 on: November 16, 2018, 07:19:43 pm »
How to find a diagram frame?
BTW I doubt I've created one.

thanks in advance.

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #4 on: November 21, 2018, 12:11:00 am »
Anyone please?

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #5 on: November 21, 2018, 03:17:23 am »
Try right-clicking the diagram and selecting "hide diagram frame."

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #6 on: November 21, 2018, 09:29:19 pm »
I cannot see such option.
I found documentation: https://sparxsystems.com/enterprise_architect_user_guide/14.0/model_domains/statediagram.html
But it relates to embed diagrams. The diagram contains no embed diagrams as well as this diagram is not embed onto other ones.

:(

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #7 on: November 22, 2018, 09:29:11 am »
Let's get this clear...

You have a StateMachine diagram that you are trying to move, and you get the error message:

'Diagram frame(s) are currently being displayed
Please disable them and save the diagram(s) before continuing'

If this message displays, you should have a border around your diagram (or a section of your diagram), with a small box in the top left corner identifying the parent element. If this is not the case something is wrong and you should report a bug.

If you have a frame around the diagram (or part of the diagram) you can right-click on the background of the diagram to display a context menu that provides the option 'Hide Diagram Frame'. If that option is not listed (and you do have a frame on the State Machine diagram) something is wrong and you should report a bug.

If you think that there might be a frame assigned to a StateMachine or SysML diagram, but you can't see it, right-click on the diagram background and see if the 'Show Diagram Frame' option is listed. If that option is not shown, there is no diagram frame on the diagram. If the option is shown, select it to display the diagram frame.

Let us know if your problem persists.
Best Regards, Roy

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Cannot move state machine diagram between packages
« Reply #8 on: November 22, 2018, 10:53:14 am »
Hi all,

The critical issue is that we can NEVER select  'Show Diagram Frame' menu item for UML (not SysML) Statemachine diagram under a Package (not under a Statemachine object) BUT EA says the error message.

There is no frame but EA says so, so we can not move UML Statemachine diagrams to other Package.

No problem (I think) for SysML diagrams and Statemachine diagrams under Statemachine object because we can show/hide a frame.
--
t-kouno

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #9 on: November 22, 2018, 02:15:26 pm »
Ahhh - now I see. I tested with SysML diagrams and a StateMachine diagram under a StateMachine node. Thanks for the clarification, Takeshi.

Not sure why daygp would have had a problem, though.

So have Sparx Support been notified, and have they commented?
Best Regards, Roy

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #10 on: November 23, 2018, 03:00:38 am »
Let's get this clear...

You have a StateMachine diagram that you are trying to move, and you get the error message:

'Diagram frame(s) are currently being displayed
Please disable them and save the diagram(s) before continuing'

Correct

If this message displays, you should have a border around your diagram (or a section of your diagram), with a small box in the top left corner identifying the parent element.

There is no such frame


If you have a frame around the diagram (or part of the diagram) you can right-click on the background of the diagram to display a context menu that provides the option 'Hide Diagram Frame'. If that option is not listed (and you do have a frame on the State Machine diagram) something is wrong and you should report a bug.

If you think that there might be a frame assigned to a StateMachine or SysML diagram, but you can't see it, right-click on the diagram background and see if the 'Show Diagram Frame' option is listed. If that option is not shown, there is no diagram frame on the diagram. If the option is shown, select it to display the diagram frame.

Let us know if your problem persists.

Unfortunately I cannot see "Hide..." or "Show Diagram Frame" in context menu.

If this is not the case something is wrong and you should report a bug.

Probably I should. However I have no idea how to report it in constructive way. Providing my a project is out of possibilities.

But I found another issue. I tried to create new diagram and and copy elements from one to another. And I found I cannot move even the new, empty diagram between packages. Doesn't matter in which package I will create it, it ends up with the same message. But of course, there are some StateMachine diagrams (created in the past) which can be moved.
It happens in two EA projects. One is based on repo, second is file based.

Finally I did a test creating new project.
I created 2 packages first (Package1 and Package2). Then created StateMachine diagram in Package1. trying to move the diagram to Package2 rises the known error message.

I'm using recent EA build 1427. Could you check/confirm this scenario on your end?

with regards
« Last Edit: November 23, 2018, 03:05:53 am by MaXyM »

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #11 on: November 23, 2018, 10:51:05 am »
See Takeshi's post.

I don't know if Takeshi has reported the bug, but you could still do it too. Select the 'Support > Report a bug' option at the bottom of the web page and simply say that a UML State Machine diagram created directly under an element OTHER THAN a State Machine element does not have a frame, but displays an error message saying it DOES have a frame if you try to move the diagram. Include a reference to this forum thread in the bug report.

The alternative method, if it fits in with your model structure, is to create your StateMachine diagram as a child of a StateMachine element, and then hide the frame.
« Last Edit: November 23, 2018, 10:56:43 am by RoyC »
Best Regards, Roy

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Re: Cannot move state machine diagram between packages
« Reply #12 on: November 29, 2018, 09:22:32 pm »
Hello
Sparx has confirmed the issue, they filed it with id: 18110875
Also they providing temporary workaround:

Quote
In the mean time if you require a StateMachine diagram directly under a package instead of a StateMachine element you can first create the a StateMachine element which will have a diagram under it, disable the diagram frame and save it, then move it to the required location.