Laerdal.com  •  MySimCenter.com


Welcome to Simulation User Network Sign in | Join | Help
in Search
  Learn more about SimStore

How does one retrieve Scenario information from a Plugin?

Last post 05-24-2018, 5:30 PM by Ståle Hauge. 1 replies.
Sort Posts: Previous Next
  •  05-16-2018, 5:14 AM 7196

    • MooseDecoder is not online. Last active: 05-24-2018, 1:56 AM DC
    • Not Ranked
    • Joined on 05-16-2018
    • n/a
    • Unknown
    • Posts 1

    How does one retrieve Scenario information from a Plugin?

    Hello,

    I am very new to the SDK and have been looking at the SDK for a few days for a project involving plugin development using C#/XAML. I have looked over the unit tests and see where, for example, a Bleeding Scenario is created, and see that the manikin object calls StartScenario. What I would like to know is how to determine the Scenario when the plugin starts? If, say, I have a session and scenario begun, I want my plugin to read information that is specific to the Scenario so that I may know how to set up my UI accordingly (depending on the scenario, we may have different setups for the UI). 

     Many thanks. 

    Filed under:
  •  05-24-2018, 5:30 PM 7197 in reply to 7196

    Re: How does one retrieve Scenario information from a Plugin?

    Hi,

    I am not sure exactly what you are looking for. The SDK has a few demo projects and the WinFormsDemo project enumerates all parameters and list their values. You can look through those and see if some parameter contains what you are looking for. E.g. there is a parameter for scenario name.

     Best regards,

    Ståle 

View as RSS news feed in XML