HOWTO easily "hack" the SysML-1.6 ~InterfaceBlock conjugation and «~interfaceBlock» keywords in MagicDraw/Cameo (until it is supported)

Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Specification keywords
SysMLv1.x keywords
Keywords
Steps:
  1. Create (in your own Profile package) a "temporary" custom stereotype ~InterfaceBlock that extends (has a Generalization to) the stereotype InterfaceBlock
  2. Give your ~InterfaceBlock stereotype a property original:InterfaceBlock
  3. Create a Customization also called ~InterfaceBlock and set its customizationTarget to be your stereotype ~InterfaceBlock (easy using drag n' drop)
  4. Set the 'keyword' of that Customization to be '~interfaceBlock' so when applied it will show as «~interfaceBlock»
  5. Now make sure your Customization for ~InterfaceBlock for extends (has a Generalization to) the tool's existing Customization for InterfaceBlock (which you can do using search).
    • Note how the existing one already has hideMetatype=true
  6. !!!SAVE THEN CLOSE YOUR PROJECT then RE-OPEN YOUR PROJECT!!!
Did you CLOSE then RE-OPEN YOUR PROJECT? No? Then CLOSE then RE-OPEN YOUR PROJECT!

One easy way (until full tool support comes) to use your custom stereotype is to create a regular InterfaceBlock using the menus then use refactor to convert it to an ~InterfaceBlock. Then use the specification dialog to set the tagged value for the original.

Ensure that every provided/required Feature of each ~InterfaceBlock is the opposite of its original InterfaceBlock, and that if the name of the original is Name that its matching ~InterfaceBlock is ~Name
Beware that once tool support comes you will have to migrate all of your custom ~InterfaceBlock instances, but you can find them easily from the specification dialog for the custom stereotype.
See also this tip:
Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)