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 ?


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


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.


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:


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


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?



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

RE: setters and gettere


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:


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


dr.siegmund priglinger 28 February 2024 15:46:42

Source Code Template for Python

I am not able to find any detailed information besides of the example templates about the metalanguage, in order to define a template.

Where can I find a manual ?



Dusan Rodina - softwareideas.net 29 February 2024 12:07:26

RE: Source Code Template for Python

Hello Siegmund,

To find the manual and detailed information about defining templates using our template language, please visit the following link: https://www.softwareideas.net/c/29/template-language. This section provides an overview and some essential commands used within our template language. However, I acknowledge that this documentation may not cover all commands at present.

We are in the process of updating this section to ensure it includes all necessary commands and examples for a more comprehensive guide.

Additionally, for practical examples of the template language in use, you can explore the built-in templates through the Source Code Template Management module. Here's how you can access these examples:

  • Open the Source Code Template Management module (Process / Templates / Source Code Templates).
  • Choose any programming language from the top toolbar drop down.
  • Select any template from the list of templates.
  • Navigate to the Files tab on the right part of the window.
  • Select a file and click on the Edit File button to view the entire code of the template, including the utilized template tags.

These examples can serve as a valuable resource for understanding how our template tags are applied in real scenarios, complementing the documentation provided.

I hope this guidance helps you find the information you need. Please feel free to reach out if you have any more questions or require further assistance.

Philippe L. 2 March 2024 23:35:45

Generating import from RelationShip

Dear Dusan,

I have a question about the code generation (any language) :

I need to generate the imports corresponding to the relationship bw 2 objects.

For example, my solution is composed by :

1 class "user" in a main package.

1 class "group" in a organization package which is in the main package.

The user object references the group object (usage or dependency), one of its attribute is of type "group"

So in the generated code the user object should reference the "group" like this : import / use


The Element.Namespace instruction returns "maingroup", so namespace without the dot.

Is it possible to add dot bw all namespace packages ?

Is there a way to resolve my issue ?

Many thanks for any help !

Dusan Rodina - softwareideas.net 4 March 2024 9:53:05

RE: Generating import from RelationShip

Dear Philippe,

Thank you for your question. Yes, it is indeed possible to address your issue. You can utilize the command Element.Namespace("."), which accepts an argument specifying the namespace separator. Normally, the default separator is a dot, even without specifying another separator through the argument. However, there appears to be a minor bug affecting this behavior, which we plan to fix in the forthcoming software update.

Philippe L. 4 March 2024 11:01:16

RE: RE: Generating import from RelationShip

Many thanks for your answer !!

I didn't read that Namespace have such an argument !

Do you have any documentation about this kind of tip ?

And thanks for your work on this very usefull software !


1 2 Next >