MagicDraw/Cameo: HOWTO: Create a redefining value property with a default value using drag-n-drop

Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
UML keywords
SysMLv1.x keywords
Keywords
We're assuming here a SysML Block and value property listed in the values compartment, but the same procedure works with a Class and Property listed in the attributes compartment.
Be aware first of this:
  1. Create a "target" Block that extends (has a Generalization to) another "source" Block that already has a value property.
  2. Make sure the values compartment is open on both Block symbols.
  3. Use "OPTION drag" of the value property from the source Block onto the target Block symbol. The keyboard shortcut may differ between operating systems, on a Mac you just hold the OPTION key. (You'll know you are using this mode properly when a small plus sign in a green circle appears.) This will create a copy (only) of the value property in the target Block, it should NOT remove the value property from the source Block!
  4. Use basic drag of the same value property again from the source Block onto the the copied value property in the target Block, which will now be set as redefining the value property in the source Block.
  5. If the multiplicity of the value property in the source Block was the multiplicity of the value property in the target Block will be set to [0..1], which is not usually what you need. Set it back to using the context menu item immediately.
  6. Use inline editing on the new redefining value property row (in the target Block) to set the default value (Property::defaultValue). Or you can do it using the specification dialog.
Almost exactly the same procedure works for redefining block properties (such as part properties)

You can also use a similar procedure dragging from/onto an end Property of an Association!
Consider also doing this:
Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)