Book a Demo

Author Topic: Is there any rational behind when an element has/has not a Rectangle Rep?  (Read 5216 times)

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
I just realized that some elements e.g. Event has no rectangle representation but most elements have.
I intended to use an Event as basis for a stereotype having a shape script extending rectangle representation. Is there any understandable reason why e.g. an Actor has but an Event has not a Rectangle Representation?
Best regards,

Peter Heintz

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Maybe because Superstructures talks of rectangles only for Classifiers. An Event is just a PackageableElement. But the documentation isn't ver< specific with that. There might also be historic reasons (if you'd go back to the 1.5 specs, which I did not consult).

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Hi Peter,

See my post on rectangle notation context menu for objects.

As it happens, with my exploration of shapescripts, there is, normally, a direct link between the inclusion of the rectangle notation test in a shape script and the "magical" appearance of the context menu item to control whether the rectangular notation is set (convention over configuration?).

Anyway, we've successfully managed to do it for all the metaclasses we had tried.  However, it seems that both t_object.Object_Type=Object and (now - since on your prompting I've just tested it) t_object.Object_Type=Event - don't respond.  Sparx have confirmed the Object problem is a bug.  Please report the Event as another (reference number for that is: 16053870).

Paolo
« Last Edit: June 01, 2016, 10:23:22 am by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Ok! I reported a Registered Bug Report.
Best regards,

Peter Heintz

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
There is no API method/attribute to switch a diagram object to Rectangular Representation, right?
Best regards,

Peter Heintz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
There is no API method/attribute to switch a diagram object to Rectangular Representation, right?

I don't think so, but you can probably do it yourself by editing the style(ex) field or something similar.

Geert