MagicDraw/Cameo: You can drag a Class symbol onto a Class symbol (in a Class Diagram) or a Block symbol or ValueType symbol onto or Block symbol (in a Block Definition Diagram) to create a new part property or value property

Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Specification keywords
UML keywords
SysMLv1.x keywords
Keywords
Click on the image to view it full size

This is typically one of the first "modelling power tips" new tool users learn. It works for many classifier types: Class, Block, ValueType, Signal etc. Note that:

- A dragged-on Class or Block will usually create a Property with AggregationKind 'composite' (so it will be considered a 'part').

Unfortunately, at least for MagicDraw/Cameo v19SP3, if the "dragged" Class or Block had a name that was a single letter, the automatically generated name in the tool for the newly created Property (such as B:B in the left of the image) does not meet Webel Best Practice: Luckily, the newly created Property will already be selected as a row in the block compartment, so you can easily rename it. In the case shown you might rename it to from B:B to b:B.

The problem only seems to happen when the Classifier has a single letter name, otherwise you get something like block:Block or thatBlock:ThatBlock (with UpperCamelCase, a.k.a. PascalCase).

GOTCHA: If you for some reason can't see the new Property in a compartment on your Class or Block, it may be because under the symbol properties the relevant compartment has suppress selected, so check that first.

- If you drag a Class onto a Class it should appear in the attributes compartment.

- If you drag a Block onto a Block it should appear in the parts compartment.

- If you drag a ValueType onto a Block it should appear in the values compartment.

- If you drag a Signal onto a Class or Block it should appear in the receptions compartment.

If you still can't see the new Property, it may be that you need to adjust this display setting:


This "drag-on" feature in a sense works together with this "drag-out" feature:

Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)