23 October 2014 12:43:19 Dusan Rodina - softwareideas.net

Add Comment

Paola 23 October 2014 12:43:19

Generating the Source Code in the student version

I have a question: is this function to generate the source code, starting from a class diagram for example, available also in the free student version of the software?

Because I have this version and in the menu voice "Tools", there isn't the voice "Templates" and then "Source Code".

I need help, thanks in advance.

Dusan Rodina - softwareideas.net 23 October 2014 14:13:50

RE: Generating the Source Code in the student version

Unfortunately, the source code generation and source code templates are not available in the Standard (student) version. These features are available only in higher editions.

TinTouneT 31 March 2015 20:01:48

State diagram : Entry/Do/Exit

Is there any way to get the Entry/Do/Exit functions names in the template ?

thanks

Dusan Rodina - softwareideas.net 31 March 2015 21:52:39

RE: State diagram : Entry/Do/Exit

Unfortunately, these fuctions are not exposed to template framework at the moment, but I will change it in the next version.

Thank you for your notice!

TinTouneT 1 April 2015 15:18:54

Imports

I would like to know at which element item is related the template command keyword "Imports". More precisely : how do i set up the imports for a class element.

Thanks

Dusan Rodina - softwareideas.net 1 April 2015 21:10:10

RE: Imports

Imports can be defined only globally for the whole generation (Source Code Generation dialog - Imports tab). I will add possibility to set imports individually for each class in the new version. It should be released within few weeks. If you have any other questions or suggestions, feel free to let me know.

Nico Verduin 16 May 2017 13:55:37

RE: RE: Imports

Where can I add imports to a class? Or is that not fixed yet?

Dusan Rodina - softwareideas.net 16 May 2017 21:47:16

RE: RE: RE: Imports

The imports can be added to a class using tagged values - you can find it in Properties dialog - Tagged Values tab. If you add a tagged value: Tag=Import Value=NameOfYourImport; you can enumerate the imports in the source code template this way:

<%==SIM:ForEach:Element.Imports==%>

#include <%==SIM:Import.Name==%>;<%==SIM:Line==%>

<%==SIM:EndFor==%>

EganSolo 29 June 2015 10:30:46

Template for Free Pascal?

Is there an existing template for FreePascal (ObjectPascal) in the tool already? Has anyone created such a template? Also, once the template is created, will Software Ideas Modeler be able to do a full round-trip (import/export) from Free Pascal?

Dusan Rodina - softwareideas.net 30 June 2015 8:12:12

RE: Template for Free Pascal?

You can try the template "Delphi" for source code generation (export).

Import (and also round-trip) is not yet supported and will be implemented in one of next versions.

You can create a custom template using Software Ideas Modeler, but it is only for export (not for import).

Nico Verduin 26 July 2016 15:51:59

setters and gettere

My understanding is, is that this is available since version 6. I am working with the latest version (ultimate 30 day trial) And was wondering how do I do that?

Regards

Nico

Dusan Rodina - softwareideas.net 26 July 2016 16:14:56

RE: setters and gettere

Hello,

Source Code Template editor is available in the ribbon: Process (tab)/Templates (group)/Source Code Templates

Nico Verduin 26 July 2016 16:27:21

RE: RE: setters and gettere

Figured it out. Thanks

Nico Verduin 26 July 2016 16:29:06

adding current date time in source template

Is it possible to add the generation date and time of the source files in the templates?

Dusan Rodina - softwareideas.net 26 July 2016 17:08:27

RE: adding current date time in source template

Yes, it is - using the following command:

<%==SIM:Now==%>

If you would like to add only date, it is also possible using this:

<%==SIM:Today==%>