Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - DavidM

Pages: 1 2 [3] 4
General Board / Re: SHape script tag
« on: August 10, 2016, 03:24:52 pm »
That took some finding in the documentation!

General Board / transfer project to DBMS
« on: August 10, 2016, 03:23:31 pm »
I am not sure if this is a bug or not, I have contacted Sparx support and not received anything back and it's quite critical.

I have just persuaded my company to buy Sparx as an EA modeling tool having used it before.
i had to set it up however (first time!) on SQL Server.

When I transfer my project it seems to work.
When I come to use it however, it comes up with a problem "locked by another user", even though I am the only on that currently has access. This  happens every time I change an object.

On top of that notes I had embedded in diagrams have gone blank after the transfer, and I cannot re-set them as I get the error, but for those it won't save.

Is this a bug or am I doing something wrong?

I transferred the right project to the right destination, the objects are physically in the DBMS, but I get this annoying error all the time.
People are waiting to use it, Sparx is not getting back and it's very embarrassing

General Board / SHape script tag
« on: August 06, 2016, 10:53:57 am »
I am using Sparx 9.2.
Can anyone tell me if it is possible to print user defined tags from an element on a shape, from within that element's shape script?
I know you can test them, but have found no evidence you can print them.

I have a horrible, horrible,horrible, horrible, horrible feeling that you cannot.


General Board / Re: Sparx Toolbox Icon
« on: July 24, 2016, 05:30:07 am »
Hi Geert/Query
Just to let you know I tried the suggestions yesterday of putting the icon attribute in the original
Sterotype of the element and unbelievably - IT WORKED FIRST TIME.

When I think of the wasted days I spent trying to make it work as per the official Sparx instructions.

This is a lot leaner and cleaner and simpler.
Thank you all very much. True consultants!

Which begs the questions,why or why or why is Sparx documentation to such a poor standard?

If what they are suggesting doesn't work,or if there is something in addition that needs to be done, they need to fix it.

Thanks again

General Board / Re: Sparx Toolbox Icon
« on: July 17, 2016, 07:04:00 pm »
Yes I'm with you Geert.
I'll give it a try as soon as I get home.
Thanks for your patience.

General Board / Re: Sparx Toolbox Icon
« on: July 17, 2016, 01:02:54 pm »
Thanks Geert and Qwerty.
Qwerty what I can see of you books looks great. Having a set of use cases that walk you through are what is needed I think in my opinion.  I'd certainly be interested in buying one. I am away from home for 1 week so I will check out when I get back.

Geert from what I can recall my steps were as follows :
I created a metatype toolboxitemimage.

I created a stereotype with the exact name as the element I referenced in the toolbox attribute to belong to the menu. In this stereo type I created an icon attribute which had the physical file and pathname. This stereo type was extent to the  toolboxitrmicon.

All of this was done following the one page example on the sparx web


I will be interested however in comparing your scripts to mine on my return to identify the issues.

I do believe somehow the official documentation is flawed however and I only know what I read there.

Thanks everyone!

General Board / Re: Sparx Toolbox Icon
« on: July 16, 2016, 11:02:57 am »
An update - Whatever image is generated in the Toolbar.XML is also being successfully transferred to the output XML generated by the MDG process.
I got that wrong earlier.

So I would say the error is either in the Toolbar.XML generation process (Does anyone know if there is a way to confirm the image?) or somehow when I Import the MDG XML into the target Sparx, something is going wrong.

General Board / Re: Sparx Toolbox Icon
« on: July 16, 2016, 09:21:18 am »
I am trying to change a dotted line into a solid line, quite trivial really, once I get that working I was going to change the colour as it would have a special meaning.

I have also tried it with normal element objects though, and the same problem, the default icon disappears, to be replaced by some picture of a folder where I have no idea where it comes from.
The functionality of the elements perform as they should, once dragged onto the Diagram. Their shape scripts work, etc. it is only the representation in the toolbox that is wrong.

Unfortunately this is one of the important items, as we are trying to consolidate the many connectors and elements, and make then intuitive to a particular group.

One thing I did notice, the toolbox.xml seems to get generated ok (I am assuming it is ok, but I have no way of confirming the text based XML version of the BMP is correct), but when it goes through MDG it seems to lose the image and gets replaced by another one (or at least different codes).

Is there something "special" I should be doing in MDG?
i.e. I am just selecting profile, toolbox and diagram XMLs, but NOT images, should I be doing something with images?
So much for me giving up - ;-)

I'm not sure how to add an attachment otherwise I would drop the ICON in here.

I appreciate your help.

General Board / Re: Sparx Toolbox Icon
« on: July 16, 2016, 06:10:51 am »

I gave up, worked into the early hours of the morning and still nothing, even having set it up on a different computer.
Thanks for all your help anyway guys, it was very reassuring to know there are many people out there willing to give up their free time helping others.

General Board / Re: Sparx Toolbox Icon
« on: July 15, 2016, 05:26:34 pm »
Hmm that's interesting.  I created it through paint and it saves as 24 bit if I remember correctly.

If you have it working I wonder if it's some kind of configuration problem isolated to my machine.

General Board / Re: Sparx Toolbox Icon
« on: July 15, 2016, 04:31:59 pm »
Hi Geert,
I have checked my Meta types on the original profile element, on the Toolbox stereotype and on the image icon themselves and they are all defined, and in a consistent manner.

What I am curious about though, is I am getting some form of default for that Toolbox image (folder picture), so the connection is being made somehow, just the image is not being inserted.

Again many thanks everyone for your help thus far, I do appreciate it. I wish there was a bit more Sparx documentation on the subject, I am totally at a loss.

General Board / Re: Sparx Toolbox Icon
« on: July 15, 2016, 04:04:51 pm »
Hi Everyone,
Thanks a lot for all your help so far..
Just an FYI I have updated back to Icon and re-aligned the names, still with no sucess.
Geert - I don't know if this helps = I haven't changed the profile details for a number of days, since
I have been struggling with the profile names.

I am guessing the folder icon that is shown, is a default of some form?

<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
   <Documentation id="06BDE8B1-D" name="wuToolBox" version="1.0" notes="wuToolBox"/>
         <Stereotype name="ConceptualApplications" alias="ConceptualApplications" notes="Toolbox for Conceptual Model" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
               <Apply type="ToolboxPage"/>
               <Tag name="wuProfile::Application" type="int" description="" unit="" values="" default="Application"/>
               <Tag name="wuProfile::DataStore" type="int" description="" unit="" values="" default="DataStore"/>
               <Tag name="wuProfile::Orchestration" type="int" description="" unit="" values="" default="Orchestration"/>
               <Tag name="wuProfile::DataFlow" type="int" description="" unit="" values="" default="DataFlow"/>
         <Stereotype name="ConceptualBusiness" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
               <Apply type="ToolboxPage"/>
               <Tag name="wuProfile::CoreCapability" type="int" description="" unit="" values="" default="CoreCapability"/>
               <Tag name="wuProfile::SupportCapability" type="int" description="" unit="" values="" default="SupportCapability"/>
               <Tag name="wuProfile::ExternalOrg" type="int" description="" unit="" values="" default="ExternalOrg"/>
               <Tag name="wuProfile::InformationFlow" type="int" description="" unit="" values="" default="InformationFlow"/>
         <Stereotype name="ConceptualData" alias="ConceptualData" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
               <Apply type="ToolboxPage"/>
               <Tag name="wuProfile::DataEntity" type="int" description="" unit="" values="" default="DataEntity"/>
               <Tag name="wuProfile::References" type="int" description="" unit="" values="" default="References"/>
         <Stereotype name="ConceptualDataToApp" alias="ConceptualXLinks" notes="" cx="90" cy="70" bgcolor="12632256" fontcolor="-1" bordercolor="-1" borderwidth="1" hideicon="0">
               <Apply type="ToolboxPage"/>
               <Tag name="wuProfile::IsCreatedBy" type="int" description="" unit="" values="" default="IsCreatedBy"/>
               <Tag name="wuProfile::IsUpdatedBy" type="int" description="" unit="" values="" default="IsUpdatedBy"/>
               <Tag name="wuProfile::IsStoredIn" type="int" description="" unit="" values="" default="IsStoredIn"/>
               <Tag name="wuProfile::IsDeletedBy" type="int" description="" unit="" values="" default="IsDeletedBy"/>
               <Tag name="wuProfile::IsCRUDBy" type="int" description="" unit="" values="" default="IsCRUDBy"/>
               <Tag name="wuProfile::IsArchivedFrom" type="int" description="" unit="" values="" default="IsArchivedFrom"/>
               <Tag name="wuProfile::IsSupportedBy(UML::Dependency)" type="int" description="" unit="" values="" default="IsSupportedBy"/>
         <Stereotype name="wuProfile::IsSupportedBy(UML::Dependency)" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
            <Icon type="bitmap" xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="bin.base64">Qk02AwAAAAAAADYAAAAoAAAAEAAAABAAAAABABgAAAAAAAADAADEDgAAxA4AAAAAAAAAAAAA
               <Apply type="ToolBoxItemImage">
                  <Property name="isActive" value=""/>

General Board / Re: Sparx Toolbox Icon
« on: July 15, 2016, 03:47:53 pm »
Yes thanks for that. Those two changes you mentioned were a result of me "fiddling " after I couldn't get it to work out of desperation.

I'll set them back though in case. 

General Board / Re: Custom profile diagram
« on: July 15, 2016, 03:07:54 pm »
Ahh ok, thanks for your replies guys.

General Board / Re: Sparx Toolbox Icon
« on: July 15, 2016, 03:06:19 pm »
Sorry yes it is 16 x 16.. a bit too zealous with my typing.
This is the custom element it is based upon.

<Stereotype name="IsUsedBy" alias="IsUsedBy" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="3" hideicon="0">
               <Apply type="Generalization">
                  <Property name="direction" value="Source -&gt; Destination"/>
                  <Property name="isSubstitutable" value=""/>



Pages: 1 2 [3] 4