Author Topic: v16 - Metatype attributes for Connector shapescripts  (Read 305 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8228
  • Karma: +233/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
v16 - Metatype attributes for Connector shapescripts
« on: August 09, 2022, 04:18:07 pm »
In the help for Display Element/Connector Properties, we find:
  • source.metatype                      for details of these four source.metatype properties; see the
  • source.metatype.general               Define Metamodel Constraints Help topic
  • source.metatype.specific
  • source.metatype.both
(with the equivalent target versions).
Unfortunately, while the Help defines these, it doesn't describe the values returned and how they may be used in a shapescript.  Can anybody enlighten us on these points?

TIA,
Paolo
« Last Edit: August 09, 2022, 04:20:30 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 12894
  • Karma: +369/-296
  • I'm no guru at all
    • View Profile
Re: v16 - Metatype attributes for Connector shapescripts
« Reply #1 on: August 09, 2022, 07:07:20 pm »
I seem to remember having seen a page with those values. But I forgot where. Probably it's needed to wait for a Sparxian coming back from holiday...

q.

Takeshi K

  • EA User
  • **
  • Posts: 435
  • Karma: +18/-1
    • View Profile
Re: v16 - Metatype attributes for Connector shapescripts
« Reply #2 on: August 10, 2022, 10:42:05 am »
Hi all,

As Paolo quoted, it is described in the Define Metamodel Constraints Help topic.
https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_frameworks/metamodelconstraints.html

See the Special Metaclasses section in the help page.

HTH,
--
t-kouno

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8228
  • Karma: +233/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v16 - Metatype attributes for Connector shapescripts
« Reply #3 on: August 10, 2022, 07:46:00 pm »
Hi all,

As Paolo quoted, it is described in the Define Metamodel Constraints Help topic.
https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_frameworks/metamodelconstraints.html

See the Special Metaclasses section in the help page.

HTH,
Thank you, Takeshi-san.
As I said, this defines them, but it doesn't describe the values returned and how they may be used in a shapescript.  Do you know?

Also, I note with my usual exasperation that although there is NOW a <profile name>::*  value, you can't investigate it with the shape script.

Paolo
« Last Edit: August 10, 2022, 07:47:35 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7753
  • Karma: +105/-19
    • View Profile
Re: v16 - Metatype attributes for Connector shapescripts
« Reply #4 on: August 15, 2022, 08:42:46 am »
It's a case of our help team incorrectly extrapolating something that was added in one place and applying it to something that looks similar.

None of those are anything that shape scripts know anything about.
Eve

support@sparxsystems.com

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8228
  • Karma: +233/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v16 - Metatype attributes for Connector shapescripts
« Reply #5 on: August 15, 2022, 02:02:45 pm »
It's a case of our help team incorrectly extrapolating something that was added in one place and applying it to something that looks similar.

None of those is anything that shape scripts know anything about.
Thanks for the clarification, Eve!
As I mentioned, they didn't seem to be useful in shapescripts.

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