Is it possible to run multiple tap plans from Operator GUI simultaneously with Different Profiles?

Hi Team,
We have created an Operator UI, which can Open and Run a Tapplan with selected profile location.

But now we have a condition to run 4 Instance of Operator UI inside a Window.

Initial problem we face is ,we cannot set profile for individual tap plan , because once we set the profile it will be for all the tapplans.
ComponentSettings.SettingsDirectoryRoot = profLocation;

Is there any solution that we can try to load 4 instance at same time.
Will there be any other issues or we cannot do this way?

Regards
Jestin CI

1 Like

You should be able to use ‘Sessions’ for this.

ComponentSettings are ‘session local variables’, which means they are global, but within the context of the current session. Any ‘TapThread’ started inside the session inherits the session as well.

using(Session.Create(SessionOptions.OverlayComponentSettings)){
     // in here, a new session is created, you can modify all component settings, including(i believe) the profile.
    // let's set the profile inside the session:
    ComponentSettings.SettingsDirectoryRoot = profLocation;

}
// outside the session, we revert back to the previous session / component settings.
1 Like

Thanks you very much for the suggestion, I will try this out.
currently we made an ExeHostControl for wpf and fixed the issue .

1 Like

That’s also a good solution :slight_smile:

1 Like