Book a Demo

Author Topic: How to 'pin' Shapes on a Diagram  (Read 3533 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
How to 'pin' Shapes on a Diagram
« on: October 13, 2006, 01:36:05 am »
Is there any way to 'pin' shapes on a diagram - analogous to pinning connector ends.

We are developing automation to manage diagram rendering, based on stereotypes.

We have certain types of notes which are auto generated and we want to be able to pin them into specific locations on the diagram.

Even if we make them unselectable, Layout Diagram will move them!   :o  

And... because they are unselectable, moving them back is twice the pain! ::)

So, is there any way to tell EA not to move the jolly things...

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to 'pin' Shapes on a Diagram
« Reply #1 on: October 13, 2006, 04:30:52 am »
When working through the "human" UI you can lay out only those diagram objects that are selected.

Although you can select a set of diagram objects through automation, AFAIK the layout API calls will always lay out the entire diagram.

I am not absolutely sure of this, so you might want to check.

If the above assertion is correct, this would (IMO) be a good enhancement to the API call. What say?
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How to 'pin' Shapes on a Diagram
« Reply #2 on: October 13, 2006, 06:56:52 am »
Quote
When working through the "human" UI you can lay out only those diagram objects that are selected.

Although you can select a set of diagram objects through automation, AFAIK the layout API calls will always lay out the entire diagram.

I am not absolutely sure of this, so you might want to check.

If the above assertion is correct, this would (IMO) be a good enhancement to the API call. What say?
I feel a bit like Galileo ---  After being told to recant because through the human UI only the selected objects are layed out...  Athough the Note is NOT selectable...

"And yet it still moves..."

It may well be that the reason the API call doesn't work is that the human UI doesn't work either...

By the way, I selected the items both ways - [Ctrl+A] and individually (using [Ctrl+Click]) and the objects all moved (even the unselected ones) both times...

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to 'pin' Shapes on a Diagram
« Reply #3 on: October 13, 2006, 04:31:32 pm »
Quote
I feel a bit like Galileo

At least you haven't been excommunicated for your views. Things seem to have improved over the last few centuries...
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to 'pin' Shapes on a Diagram
« Reply #4 on: October 15, 2006, 03:15:40 pm »
Just to confirm, Layout Diagram (both UI and API call) does layout all elements on a diagram.  However, the context menu when multiple objects are selected allows only the selected objects to be laid out.  This will not take into account (or move) any other objects on the diagram.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How to 'pin' Shapes on a Diagram
« Reply #5 on: October 15, 2006, 06:29:48 pm »
Quote
Just to confirm, Layout Diagram (both UI and API call) does layout all elements on a diagram.  However, the context menu when multiple objects are selected allows only the selected objects to be laid out.  This will not take into account (or move) any other objects on the diagram.
Can we therefore have Layout Selected Elements on the main Diagram menu also then?

Is there a Layout Selected Elements in the API?  If not there needs to be...

Paolo

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to 'pin' Shapes on a Diagram
« Reply #6 on: October 16, 2006, 04:20:43 am »
Agreed, in both cases.
No, you can't have it!