How to get IScriptDeviceObject

MSprock
2016-10-28
2016-11-02
  • MSprock - 2016-10-28

    Hi,

    I'd like to use a method from IScripDeviceObject in a "regular" plugin that does not use ScriptEngine yet. Is there a way to get the IScripDeviceObject from IDeviceObject? (Cast does not work.) Or do I have to use ScriptEngine.Execute?

    Thanks in advance.

     
  • mkeller - 2016-10-31

    Hi MSprock.

    MSprock hat geschrieben:
    I'd like to use a method from IScripDeviceObject in a "regular" plugin that does not use ScriptEngine yet. Is there a way to get the IScripDeviceObject from IDeviceObject? (Cast does not work.) Or do I have to use ScriptEngine.Execute?

    Which method do you want to use?

    BR
    Martin

     
  • MSprock - 2016-11-02

    M.Keller hat geschrieben:
    Hi MSprock.
    Which method do you want to use?
    BR
    Martin

    Hi Martin,

    the methods are: export/import_io_mappings_from_csv

    Best regards

     
  • mkeller - 2016-11-02

    Hi MSprock.

    Your question should normally be send to our support because it is beyond the scope of this forum.

    MSprock hat geschrieben:
    the methods are: export/import_io_mappings_from_csv

    These two methods of the IScriptDeviceObject are just calling the corresponding command with the necessary arguments.

    Both commands use the following argument list:
    - File path of the CSV file
    - Project handle of the project which contains the device
    - Object Guid of the device which should import/export its IO mapping

    BR
    Martin

     

Log in to post a comment.