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 - ferran

Pages: [1] 2
1
General Board / Edit Code templates
« on: June 16, 2020, 11:14:11 pm »
Hi there,

I have several classes in a class diagram, from which I want to generate code.
I have 1 class that gets the code generated properly and 2 other classes that only get #define variables in the .h/.c corresponding files.

Is there some feature that makes this happen? Which one? How can I change it and make it default for all classes?

Kind regards,

Ferran.

2
General Board / Re: Cutom Toolbox profile - MDG technology
« on: March 27, 2020, 07:51:41 pm »
Send with all related files to be checked.

3
General Board / Re: Cutom Toolbox profile - MDG technology
« on: March 27, 2020, 04:14:18 am »
Hi Geert,

I make that sure, I do not have the duplicate warning anymore but the real problem is still there.

I tried adding the _metatype attribute with the icon together in the same stereotype.

Also does not work... Some ideas?

Ferran.

4
General Board / Cutom Toolbox profile - MDG technology
« on: March 26, 2020, 10:55:14 pm »
Hi Sparx support,

I have got a similar problem.

I create and MDG technology with a custom Toolbox profile created following the sparx support link: https://sparxsystems.com/enterprise_architect_user_guide/15.1/modeling/add_toolboxes.html

The toolbox profile implements 3 other profile that extend a Block class type with special icons.
Then I created the MDG technology with the bitmap files for the icons, the profile xmls and the toolbox xml.

I checked the process and it follows all recommendations from Sparx on how to create and MDG technology.

Afterwards I import the MDG technology into my company official project and it does not recognize the elements in the toolbox, I close the project and open it again and change a couple of times the focus of selection of the toolbox and then it recognizes the elements but with random icons: sometimes the block icon is displayed, other times the stereotype icon is displayed and also I found once like a pie chart icon.

I checked the .xml file of my MDG technology and compared to other MDG technologies that comes with the Ultimate edition and nothing seems to be wrong.

Could someone help me with this one?

I post it here because I think this is quite related to what Paolo is explaining.

Kind regards,

Ferran.

5
Hi Paolo,

I have got a similar problem.

I create and MDG technology with a custom Toolbox profile created following the sparx support link: https://sparxsystems.com/enterprise_architect_user_guide/15.1/modeling/add_toolboxes.html

The toolbox profile implements 3 other profile that extend a Block class type with special icons.
Then I created the MDG technology with the bitmap files for the icons, the profile xmls and the toolbox xml.

I checked the process and it follows all recommendations from Sparx on how to create and MDG technology.

Afterwards I import the MDG technology into my company official project and it does not recognize the elements in the toolbox, I close the project and open it again and change a couple of times the focus of selection of the toolbox and then it recognizes the elements but with random icons: sometimes the block icon is displayed, other times the stereotype icon is displayed and also I found once like a pie chart icon.

I checked the .xml file of my MDG technology and compared to other MDG technologies that comes with the Ultimate edition and nothing seems to be wrong.

Could someone help me with this one?

I post it here because I think this is quite related to what Paolo is explaining.

Kind regards,

Ferran.

6
General Board / Re: Scripting - workflow group
« on: January 22, 2020, 11:01:34 pm »
ok thanks. I will try this way.

7
General Board / Scripting - workflow group
« on: January 22, 2020, 07:33:19 pm »
Dear Sparx,

I want to have a better control over projects connected to SVN(subversion).

Is there any possibility to set up a script that executes when EA is closed or when project in EA is closed and executes a commit of the project file .eapx and the related .xml using the SVN connection set up for that project?

This is in order to make sure there is no user forgetting to commit after changing stuff in a project.

Thank you very much.

Ferran.

8
General Board / Re: Shape script - Println types
« on: January 21, 2020, 08:03:47 pm »
Hi Uffe,


Thanks! I will take that into account!

Ferran.

9
General Board / Re: Shape script - Println types
« on: January 21, 2020, 03:15:13 am »
Ok thanks!

Because I want to represent dataflow structures like queues, stacks, circular buffers, etc.

And I personally think that stereotyping each of them is better and clearer.

Ferran.

10
General Board / Shape script - Println types
« on: January 20, 2020, 09:22:19 pm »
I have the following shape script linked to a class element:

shape main
{
      startpath();
     moveto(20,10);
      lineto(20,90);
     arcto(0,0,100,100,20,100,85,100);
     lineto(78.5,10);
     arcto(0,0,100,100,80,0,20,0);
     lineto(20,10);
      endpath();
      fillandstrokepath();
     arcto(0,-80,100,20,20,20,85,20);
     moveto(20,20);
     arcto(0,-70,100,30,20,30,85,30);
     addsubshape("namecompartment", 100, 50, 0, 17);
      shape namecompartment
      {
       h_align = "center";
       editablefield = "name";
       println("#name#");
      }
     addsubshape("namecompartment2", 100, 50, 0, 5);
      shape namecompartment2
      {
       h_align = "center";
       editablefield = "attribute";
       println("#att#");
      }
}

My problem is that the   #name#   works but the #att# or #attribute#  I tried, does not work.
Does anybody know, which label I need between the hashtags to make it show the attributes defined in the class?

Thank you very much.

Ferran.

11
General Board / Re: Attribute Initial Value generated code
« on: January 15, 2020, 07:53:32 pm »
Thanks JSC,

worked at the end with this approach.

Kind regards,

Ferran.

12
General Board / Re: Attribute Initial Value generated code
« on: January 14, 2020, 11:26:44 pm »
Thanks for the answer, but this is not working for me.

I know it should work but it does not for the "attribute declaration" script.

13
General Board / Re: Attribute Initial Value generated code
« on: January 14, 2020, 07:18:41 pm »
Hi Maxh,

I am generating code in C language.

What i have tried so far in the "Attribute declaration" script is the following 2 options:

1) %attInitial ? " = " value%
2) %attInitial ? value%

None worked for generating the value introduced at the "Initial Value" field.
Has someone faced this same issue?

Kind regards,

Ferran.

14
General Board / Re: Attribute Initial Value generated code
« on: January 10, 2020, 07:28:03 pm »
yeah I know I can do that with an IDE!

The thing is to find a way of doing this by generating the code automatically. When I import the code with an array with a value set, it imports the values correctly.

I do not understand, why it does not work the other way around?


15
General Board / Attribute Initial Value generated code
« on: January 09, 2020, 08:11:52 pm »
Dear colleagues,

I have got a problem while generated code and having a attribute defined in a class with a Initial Value.
The issue is that the attribute is generated as a variable but the Initial Value is not generated.

From this other post:https://www.sparxsystems.com/forums/smf/index.php?topic=24567.0
I understand that this can only be modified by editing Code templates.

The problem is that checking the macros for attribute field substitution I can only find the "attInitial" macro as the possible value, but when I edit the code template in order to generate this field, it did not work.

Any ideas on how to get that done?

Thank you very much.

Ferran.

Pages: [1] 2