Book a Demo

Author Topic: Instance of a constraint block in a block's constraint compartment SysML  (Read 3553 times)

jackholdon

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
In a block definition diagram and using SysML 1.4, I have the definition of constraint block X in this diagram, if I create a block Y, how can I create a constraint property Z in block Y that  is an instance of the constraint block X (basically Z : X in Y's constraint compartment)
? I have tried to use the constraints page in the properties panel but that one will only let me put expressions between curly brackets in the block's constraint compartment...
« Last Edit: February 16, 2018, 12:55:48 pm by jackholdon »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Instance of a constraint block in a block's constraint compartment SysML
« Reply #1 on: February 16, 2018, 04:39:07 pm »
Ctrl+drag Block X (from Project Browser) onto Block Y (on the diagram) and EA will create a part of type X. If Block X is a constraint block then the part will be a constraint property. (Note that the constraint property can either be shown as a part or in a compartment, not both, so to show the compartment you will need to remove the part from the diagram.)
The Sparx Team
[email protected]

jackholdon

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Instance of a constraint block in a block's constraint compartment SysML
« Reply #2 on: February 17, 2018, 07:39:09 am »
Thank you KP, that worked as intended.