Simulation and Python

Moderator: Moderators

Simulation and Python

Postby » Fri Nov 28, 2014 12:48 pm


How can i use Python-language (or Jython) in Opaque Action -element in Activity diagram ?
I have tried (by simple print-command) but, but it seems not to work (no print-text in Console).
Language is selected "Jython"

Do i need to install Jython or is it already in Simulation Toolkit ?

If Jython or Python is in(side) Simulation Toolkit, which version is it ?

Is Javascript default-language ?
Forum Newbie
Forum Newbie
Posts: 5
Posts Rating:0
Joined: Tue Nov 18, 2014 8:21 am

Re: Simulation and Python

Postby chanon_s » Thu Dec 04, 2014 3:19 am

Dear customer

First of all, could you please check if Python language is available in your machine? To do this, please select main menu Options > Environment > Simulation, as displayed below:


The default language option means that if you don't specify a language for an opaque action, the selected language of this option will be used as default. In addition, you can separately specify different languages for each opaque action in the Language property.

The image below demonstrates the result of an opaque action with Python language.


However, the drop down list in the Simulation Console will be used to change the language for the commands, typed in the console. Changing the language of this drop down list will not affect the language in the Environment Options.

You can change the language in the console to Python and type in some Python expressions to see the result, as shown below:


Best regards

Chanon S.
No Magic Customer Support
You do not have the required permissions to view the files attached to this post.
Customer Support
Customer Support
Posts: 91
Posts Rating:7
Joined: Thu Dec 04, 2014 2:21 am

Return to Cameo Simulation Toolkits

Who is online

Users browsing this forum: No registered users and 0 guests