Book a Demo

Author Topic: How can I include SysML quantityKind and Unit in a custom toolbox?  (Read 3535 times)

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
If I include SysML1.3::quantityKind and SysML1.3::unit in my toolbox definition I am able to include those elements in my custom toolbox, but if I change it to the current SysML1.4:: then it doesn't work. When I drop the unit and quantityKind elements by manually selecting the SysML 1.5 toolbox, it is notable that they do not have any stereotype and likely why my inclusion in a toolbox is failing. So how then do I include the SysML 1.4/1.5 versions of unit and quantityKind elements? I'd prefer to use the latest rather than the retrograde step of using elements from SysML1.3.

I am able to successfully include SysML1.4::ValueType in my custom toolbox.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13471
  • Karma: +571/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How can I include SysML quantityKind and Unit in a custom toolbox?
« Reply #1 on: March 22, 2022, 12:13:40 am »
These simply don't exist anymore in the SysML 1.4 or SysML 1.5 profile.
You'll have to add the simple UML basetype to your toolbox.

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: How can I include SysML quantityKind and Unit in a custom toolbox?
« Reply #2 on: March 22, 2022, 08:27:59 am »
They have been added as patterns. Try "SysML1.4::Unit(UMLPatternSilent)" and "SysML1.4::QuantityKind(UMLPatternSilent)" although I'm not 100% sure if you can import a pattern from a different technology like that. If it doesn't work, you will need to recreate the patterns in your own technology. Let us know how you get on.
The Sparx Team
[email protected]

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: How can I include SysML quantityKind and Unit in a custom toolbox?
« Reply #3 on: March 22, 2022, 08:33:49 am »
Neil answered how you create the elements, so I'll just keep my explanation.

What's happened is that the SysML specification no longer defines a stereotype for these types. Instead it provides classes and Unit and QuantityKind are instances of those types. We implemented this as a pattern.

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Re: How can I include SysML quantityKind and Unit in a custom toolbox?
« Reply #4 on: March 22, 2022, 06:25:40 pm »
Thanks KP. Importing them as patterns works correctly.