Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Kamal Hammoutene on November 16, 2012, 03:27:36 am
-
hello,
I am trying without success to stereotype a SysML Use Case stereotype.
In the profile diagram, I am creating a steterotype "SysML1.2::UseCase" and a stereotype "MyUseCase" which specialize the SysML stereotype.
This does not work. I have tried also "SysML::UseCase" and "UML4SysML::UseCase" as described in the SysML specification document.
What am I doing wrong?
-
SysML doesn't make any changes to the Use Case type.
The UML4SysML namespace you see in the spec is just referring to a subset of UML.
Therefore what you want is just to extend the UML Use Case. Drop the metaclass onto your diagram and select UseCase.
-
SysML doesn't make any changes to the Use Case type.
The UML4SysML namespace you see in the spec is just referring to a subset of UML.
Therefore what you want is just to extend the UML Use Case. Drop the metaclass onto your diagram and select UseCase.
Thank you.
What about specializing SysML Requirement type or SysML Block type?
-
SysML doesn't make any changes to the Use Case type.
The UML4SysML namespace you see in the spec is just referring to a subset of UML.
Therefore what you want is just to extend the UML Use Case. Drop the metaclass onto your diagram and select UseCase.
Thank you.
What about specializing SysML Requirement type or SysML Block type?
Sorry to spam the forum but I am struggling making my own SysML Requirements stereotypes.
As I am in Europe, the excellent Sparx support team is replying each time with 24 hours delay but i cannot blame them.
I have downgraded the UML profile to the very basic sterotyping of a SysML Requirement type as shown below:
<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
<Documentation id="47F62F33-7" name="SysMLRequirementTest" version="1.0" notes="SysMLRequirementTest"/>
<Content>
<Stereotypes>
<Stereotype name="MySysMLRequirementType" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0" generalizes="SysML1.2::Requirement" baseStereotypes="SysML1.2::Requirement"/>
</Stereotypes>
<TaggedValueTypes/>
</Content>
</UMLProfile>
But this does not work. Any idea? Thanks.