Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Guillaume on October 08, 2020, 06:48:41 pm

Title: MDG UML Profile Rectangle notation does not work for an actor
Post by: Guillaume on October 08, 2020, 06:48:41 pm
Hi,

I defined a "not human" stereotyped actor in an MDG and need to show them in the rectangle notation by default.
I used the stereotype Profile Helper which created the special attribute _UCRect = 1 in the actor metaclass.

Unfortunately when I create them, they still appear as a stickman.
Is this a known bug? Is there a workaround?
I'm using the latest EA build for this project.

Thanks
Title: Re: MDG UML Profile Rectangle notation does not work for an actor
Post by: qwerty on October 08, 2020, 08:37:06 pm
Use a shape script and a «diagram property». We do that similarly for other rectanguar notations.

q.
Title: Re: MDG UML Profile Rectangle notation does not work for an actor
Post by: Paolo F Cantoni on October 08, 2020, 08:42:51 pm
Hi,

I defined a "not human" stereotyped actor in an MDG and need to show them in the rectangle notation by default.
I used the stereotype Profile Helper which created the special attribute _UCRect = 1 in the actor metaclass.

Unfortunately, when I create them, they still appear as a stickman.
Is this a known bug? Is there a workaround?
I'm using the latest EA build for this project.

Thanks
I can confirm.  We had to change to <Apply type="Class"> to get the shapescript to respond to Rectangular Notation - yet another EAUI special!

Our shapescripts do as qwerty suggested, but it's not enough.   NOTE: I'm assuming rectangle notation is NOT the same as display as a rectangle.  If the latter, then that CAN be done with non-rectangular notation and a diagram property as qwerty said.  We wanted TRUE Rectangular notation to be able to display the various compartments.

Concistency, konsistency, consistensy! TMUffe - after Paolo

Paolo
Title: Re: MDG UML Profile Rectangle notation does not work for an actor
Post by: Guillaume on October 09, 2020, 07:15:09 pm
Thank you for your replies. If I want to keep the elements as stereotyped actors, I'm not sure if a shapescript can meforce an actor element to be rendered with the rectangle notation.
I found a related thread here where no solution was identified (except from the bug to be eventually fixed): https://www.sparxsystems.com/forums/smf/index.php?topic=38965.0 (https://www.sparxsystems.com/forums/smf/index.php?topic=38965.0)