Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: gpatenaude on March 09, 2016, 07:33:08 am

Title: Can't drop an extended stereotype from Toolbox
Post by: gpatenaude on March 09, 2016, 07:33:08 am
Hi,

I extended the archimate device element using UML Profile.  Everything works great if I drop my new element from the Resource tab:

https://www.dropbox.com/s/wzzjl8sus79nlok/2016-03-08_15-29-54.png?dl=0

But when I try from the diagram toolbox, there is a folder icon.  Sometimes nothing happens when I drag the element on a ArchiMate diagram, sometimes a context menu appears with 2x the device element:

https://www.dropbox.com/s/j3mjckioacotur7/2016-03-08_15-28-06.png?dl=0

Here's my UML profile diagram:

https://www.dropbox.com/s/fz5tdu1yfpybtim/2016-03-08_15-20-17.png?dl=0

Here's the UML profile XML:

<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
   <Documentation id="1846CB48-4" name="SSQ_Archimate_Extensions" version="1.0" notes="SSQ_Archimate_Extensions"/>
   <Content>
      <Stereotypes>
         <Stereotype name="SSQ_Archimate_Device" notes="" cx="167" cy="88" bgcolor="13434828" fontcolor="0" bordercolor="0" borderwidth="1" hideicon="0" generalizes="Archimate2::ArchiMate_Device" baseStereotypes="Archimate2::ArchiMate_Device">
            <AppliesTo>
               <Apply type="Class">
                  <Property name="isActive" value=""/>
               </Apply>
            </AppliesTo>
            <TaggedValues>
               <Tag name="CPU" type="" description="" unit="" values="" default=""/>
               <Tag name="RAM" type="" description="" unit="" values="" default=""/>
               <Tag name="IP" type="" description="" unit="" values="" default=""/>
               <Tag name="DNS" type="" description="" unit="" values="" default=""/>
            </TaggedValues>
         </Stereotype>
      </Stereotypes>
      <TaggedValueTypes/>
   </Content>
</UMLProfile>

Is there anything wrong with my XML?

Any help would be appreciated.

I'm using version 12.1.1224 on a local project on my desktop (no shared repository)
Title: Re: Can't drop an extended stereotype from Toolbox
Post by: Glassboy on March 09, 2016, 07:57:20 am
I can't see the images from work unfortunately, but you'll either have a spelling mistake or the base type wrong. 
Title: Re: Can't drop an extended stereotype from Toolbox
Post by: qwerty on March 09, 2016, 08:13:16 am
Maybe you have installed your MDG twice? From Resources and from MDG/Advanced? What does the Extensions/MDG say?

q.
Title: Re: Can't drop an extended stereotype from Toolbox
Post by: gpatenaude on March 09, 2016, 09:20:57 am
Thanks I'll check this out at the office tomorrow... it's only -16 hours in eastern Canada.
Title: Re: Can't drop an extended stereotype from Toolbox
Post by: Paolo F Cantoni on March 09, 2016, 11:36:32 am
When you see a folder in your toolbox, it usually means your icon is not correctly referenced.  Can you show your toolbox definition?

Paolo
Title: Re: Can't drop an extended stereotype from Toolbox
Post by: gpatenaude on March 10, 2016, 01:16:57 am
Everything works now. 

I was trying to make my extended Archimate element available using only the "UML profile":  By adding the XML file into UML profile ressource tab AND having it available in Diagram Toolbox -> More tools -> Set Toolbox Visibility (Enabling my UML profile from there).

I proceeded with the whole MDG technology file integration process and bingo!

Thanks for your hints!
Title: Re: Can't drop an extended stereotype from Toolbox
Post by: Glassboy on March 10, 2016, 08:36:49 am
Good to see you've fixed it.  IME with MDGs it's best to step through the whole process with a couple of extensions and then build up the MDG once you're comfortable with the whole process.