file Running without embeding the module

5 years 8 months ago #2822 by jcantoniochamp
Hello,

I would like to know if it is possible and how to use the API without creating a module.

I would like to manipulate the model without actually running the Modelio Application.

This would work if the module is started.
IModelingSession session = Modelio.getInstance().getModelingSession();
But without being within a module Modelio.getInstance() would return null.

How could I get a session without being within a module?

Kind regards,

JClaude

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2824 by ebr
Hi JClaude,

You can use Jython scripts instead of module.

I would not try to manipulate a model without using Modelio in order to avoid invalid manipulation without any feedback.

Regards,

EBR

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2826 by jcantoniochamp
Hello ebr,

Thank you for your reply.
I actually wanted to avoid using Jython as I did not want to add another development environment if I could avoid it.
Would it be possible via java? I actually wanted to parse the model.

Kind regards,

JClaude

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2832 by ebr
Hi JClaude,

If you want to use the Java API the best way is to create a module, using the an API dedicated to Modelio module without modelio seems a little bit weird.

Another solution is to rebuild a new software from Modelio source code.
In this case it will not anymore related to Modelio...

Why do you want so much avoid to have a running instance of Modelio?
I guess that you do not only want to parse a model, you want to retrieve sone information I guess or perform some treatements?

Regards,

EBR

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2834 by jcantoniochamp
Hello EBR,

I was probably not very clear by what I meant by not running Modelio.
I just wanted to avoid creating a module, package the module, then deploy it.
I understood that the Document Publisher can work via a batch command, so I assumed that it can be ran without opening Modelio UI.
Hence I concluded that it was probably possible to do the same via the API.

Kind regards,

Jean-Claude

Please Log in or Create an account to join the conversation.

Moderators: tmachmaab
Time to create page: 0.095 seconds
^ Back to Top