Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Documentation / Usage Help For Scripting Engine Libraries

2019-04-04
2023-08-21
  • mkeller - 2019-04-05

    Hi.

    Here is some example code:

    proj = projects.primary
    proj.create_external_file_object(r'd:\tmp\README.txt', 'someText', ReferenceMode.Embed, AutoUpdateMode.Always)
    found = proj.find('Application', True)
    if found is not None and len(found) == 1:
    Β  Β  raise Exception("No or more than one object found")
    app = found[0]
    app.create_external_file_object(r'd:\tmp\README.txt', 'someTextBelowApp', ReferenceMode.Link, AutoUpdateMode.Never)
    

    BR
    Martin

     
  • sven01 - 2023-08-21

    Hi,
    I am still not able to figure out how to use the the classes and their functions. πŸ˜”
    Let's say I would like to use the function "importfile()" from the class "ScriptTextListObject.ScriptTextListMarker".
    I would be grateful for an additional example. Thanks! 😊

     

Log in to post a comment.