Book a Demo

Author Topic: Shapescript with a compartment for the namespace  (Read 3398 times)

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Shapescript with a compartment for the namespace
« on: June 11, 2022, 02:39:27 am »
Hi,

Does anybody know if it is possible to write a shapescript with a compartment dedicated to showing the fully qualified namespace of the element?

In other words, instead of having the words "from ....." outside and at the bottom of the element, I would like to have a shapescript with an extra compartment holding just the name of the namespace preceed by FQN.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Shapescript with a compartment for the namespace
« Reply #1 on: June 11, 2022, 06:08:49 am »
There's a #qualifiedname# property. Never tried it. Give it a shot...

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Shapescript with a compartment for the namespace
« Reply #2 on: June 14, 2022, 10:40:37 am »
The only compartments (that EA will recognise as compartments) you can create are tied to the related elements and  child elements.

That doesn't mean you can't draw something that looks like a compartment. Positioning of those compartments is tricky, you can't control for text size etc.

If you're happy with those restrictions... I suspect packagepath would be the property you want.

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Shapescript with a compartment for the namespace
« Reply #3 on: June 14, 2022, 11:24:27 pm »
Thanks Thomas and Eve, I'll give a try.

Eve, I suspect that packagepath may not do what I am after, please see this thread for context https://sparxsystems.com/forums/smf/index.php/topic,46931.0.html.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Shapescript with a compartment for the namespace
« Reply #4 on: June 15, 2022, 08:29:35 am »
Are you saying to have a problem with how EA interprets packages as namespaces? You haven't even described what your problem is so there's no way I can help with that.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Shapescript with a compartment for the namespace
« Reply #5 on: June 15, 2022, 09:01:55 am »
Thanks Thomas and Eve, I'll give a try.

Eve, I suspect that packagepath may not do what I am after, please see this thread for context https://sparxsystems.com/forums/smf/index.php/topic,46931.0.html.
Call me a literalist, but I would have thought PackagePath should yield the path to the package (as described in the browser.)  Whereas, PackageNamespace might return the Namespace created by traversing the package path from the namespace root (which could be anywhere on that path) and the package - taking into account any suppressed packages (that shouldn't contribute to the namespace).  The results could be quite different for the two properties (or identical in many cases).

Perhaps that's what Modesto means?

Just a thought.
Paolo
« Last Edit: June 15, 2022, 09:03:45 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!

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Shapescript with a compartment for the namespace
« Reply #6 on: June 15, 2022, 06:32:41 pm »
Thanks Paolo, you are a good reader with great attention to detail. This is exactly what I mean.