question

Laurenz Peleman avatar image
0 Likes"
Laurenz Peleman asked Laurenz Peleman commented

Active Flexsim instances in tree structure

Hello everyone

Is it possible to find the active Flexsim instances on my pc in the tree structure of Flexsim? For example, if I have two different Flexsim models opened, is there a treenode with two subnodes, each referring to one of the instances? Or otherwise, can I refer by code to the second instance, from the first one?

Kind regards

Laurenz Peleman

tree structure
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Laurenz Peleman commented

When you open two FlexSim instances, they open as two separate application processes on your computer with two separate trees.

You cannot communicate from one FlexSim instance to another FlexSim instance any easier than you can communicate from FlexSim to any other non-FlexSim application.

What are you trying to do?

· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Laurenz Peleman avatar image Laurenz Peleman commented ·

Hi @phil.bobo

I was wondering if there is some way to check if there are still opened Flexsim instances, e.g. when you close one.

Kind regards

Laurenz Peleman

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Laurenz Peleman commented ·

Not with FlexScript. You could use C++ to find processes by name to determine if another FlexSim instance is open.

0 Likes 0 ·
Laurenz Peleman avatar image Laurenz Peleman Phil BoBo ♦♦ commented ·

Hi @phil.bobo

How do I have to do that? Is there a guide somewhere? I have no experience (yet) with using C++ in Flexscript.

0 Likes 0 ·
Show more comments