Author Topic: Setting and getting stereotype and tag values for Diagrams - how to?  (Read 1878 times)

Ribeye

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
I am looking to add Diagram stereotype and to set / get tags values in my C# code.

It quickly becomes obvious there is no native methods on Diagram class for this. There is a helpful conversation on this problem here https://sparxsystems.com/forums/smf/index.php/topic,46478.msg271861.html#msg271861

There is a quote of Paulo "As described elsewhere, we have adopted the convention to use the diagram title block (the misnamed Diagram Element Note in Sparxian) to act as a proxy for the diagram."

Have spent too long googling and looking at EA books - where is "diagram title block / misnamed Diagram Element Note"? Cant find documentation, let alone reference in API docs

Thanks

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8061
  • Karma: +118/-20
    • View Profile
Re: Setting and getting stereotype and tag values for Diagrams - how to?
« Reply #1 on: July 24, 2023, 07:56:54 am »
Have spent too long googling and looking at EA books - where is "diagram title block / misnamed Diagram Element Note"? Cant find documentation, let alone reference in API docs
That's one of the problems with making up your own names for things. He's talking about the Diagram Notes element in the Common Elements page of the toolbox.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8595
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Setting and getting stereotype and tag values for Diagrams - how to?
« Reply #2 on: July 24, 2023, 08:28:38 am »
Have spent too long googling and looking at EA books - where is "diagram title block / misnamed Diagram Element Note"? Cant find documentation, let alone reference in API docs
That's one of the problems with making up your own names for things. He's talking about the Diagram Notes element in the Common Elements page of the toolbox.
Yes, my bad! I mistyped the Sparxian name for the element.  But on the subject of own names for things, over 50 years agao when I was undertaking my Engineering Degree and WE drew diagrams on real paper with real ink, it was drummed into me that diagrams had Title Blocks (and I had to make sure they had one else, I would loose significant marks!) - there was NO mention of Diagram Notes!

It is still misnamed in EA.

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