Search Project: *:*

 
<< < 1 .. 396 397 398 399 400 .. 3647 > >> (Page 398 of 3647)

Ticket #15: Searching for an object example Scripting snippets (Ticket)
# Search recursivly for 'TheObjectIWantToSearchFor' Recursive = True result_list = projects.primary.find('TheObjectIWantToSearchFor', Recursive) for result in result_list: print("Object " + result.get_name() + " found with Guid " + str(result.guid)) ~~~Searching for an object example Scripting 0 snippets Ticket tickets Searching for an object example 2020-02-24 20:59:08.832000 Unlicense False 0 aliazzz Ticket #15: Searching for an object example 0 False /tol/scripting/snippets/15/ None 2020-02-08 18:33:58.464000 None 15 scripting Search recursivly for 'TheObjectIWantToSearchFor' Recursive = True result_list = projects.primary.find('TheObjectIWantToSearchFor', Recursive) for result in result_list: print("Object " + result.get_name() + " found with Guid " + str(result.guid)) ~~~ False False 2
Last updated: 2020-02-24

Ticket #16: Disable System Prompts and Dialogs Scripting snippets (Ticket)
Disable prompts, as those are enabled in UI mode by default: system.prompt_handling = PromptHandling.None ~~~Disable System Prompts and Dialogs Scripting 0 snippets Ticket tickets Disable System Prompts and Dialogs 2020-04-21 07:28:02.722000 Unlicense False 0 ingo Ticket #16: Disable System Prompts and Dialogs 0 False /tol/scripting/snippets/16/ None 2020-04-21 07:27:37.613000 None 16 scripting Disable prompts, as those are enabled in UI mode by default: system.prompt_handling = PromptHandling.None ~~~ False False 2
Last updated: 2020-04-21

Ticket #17: Handle Answers of Dialogs Scripting snippets (Ticket)
Log Message Keys: system.prompt_handling |= PromptHandling.LogMessageKeys Define Reaction for specific messages: system.prompt_answers["EnterDebugMode_Prompt"]=PromptResult.OK ~~~Handle Answers of Dialogs Scripting 0 snippets Ticket tickets Handle Answers of Dialogs 2020-04-21 07:31:44.928000 Unlicense False 0 ingo Ticket #17: Handle Answers of Dialogs 0 False /tol/scripting/snippets/17/ None 2020-04-21 07:31:37.976000 None 17 scripting Log Message Keys: system.prompt_handling |= PromptHandling.LogMessageKeys Define Reaction for specific messages: system.prompt_answers["EnterDebugMode_Prompt"]=PromptResult.OK ~~~ False False 2
Last updated: 2020-04-21

Ticket #18: Installation of missing libraries Scripting snippets (Ticket)
Script that lists all the library dependencies: proj = projects.open(projectPath) objects = proj.get_children(recursive=True) for candidate in objects: if candidate.is_libman: for libref in iter(candidate): if libref.is_placeholder: if libref.effective_resolution is not None: libInfo = str(libref.effective_resolution) libMissing = False elif libref.default_resolution is not None: libInfo = str(libref.default_resolution) libMissing = True elif libref.is_managed: libInfo = str(libref.managed_library) else: libInfo = str(libref.name) Script that downloads the libraries: libraryServers = ["https://store.codesys.com/CODESYSLibs/"] for server in libraryServers: libraryFileName = None url = str("%s%s/%s/%s/" % (server, data['supplier'], data['name'], data['version'])) response = requests.get(url + "index") fileUrl = str("%s%s" % (url, libraryFileName)).rstrip() response = requests.get(fileUrl) f.write(response.content) Script that installs the downloaded libraries: repo = librarymanager.repositories[0] librarymanager.install_library(absLibPath, repo, overwrite=True) Installation of missing libraries Scripting 0 snippets Ticket tickets Installation of missing libraries 2020-07-14 11:16:24.475000 Unlicense False 0 jelle Ticket #18: Installation of missing libraries 0 False /tol/scripting/snippets/18/ None 2020-07-14 10:04:51.779000 None 18 libraries missing download install scripting Script that lists all the library dependencies: proj = projects.open(projectPath) objects = proj.get_children(recursive=True) for candidate in objects: if candidate.is_libman: for libref in iter(candidate): if libref.is_placeholder: if libref.effective_resolution is not None: libInfo = str(libref.effective_resolution) libMissing = False elif libref.default_resolution is not None: libInfo = str(libref.default_resolution) libMissing = True elif libref.is_managed: libInfo = str(libref.managed_library) else: libInfo = str(libref.name) Script that downloads the libraries: libraryServers = ["https://store.codesys.com/CODESYSLibs/"] for server in libraryServers: libraryFileName = None url = str("%s%s/%s/%s/" % (server, data['supplier'], data['name'], data['version'])) response = requests.get(url + "index") fileUrl = str("%s%s" % (url, libraryFileName)).rstrip() response = requests.get(fileUrl) f.write(response.content) Script that installs the downloaded libraries: repo = librarymanager.repositories[0] librarymanager.install_library(absLibPath, repo, overwrite=True) False False 2
Last updated: 2020-07-14

Home (version 2) discussion Scripting home (Thread)
Home (version 2) discussion
Last updated: 2018-10-29

(no subject) Scripting snippets (Thread)
Last updated: 2020-07-14

Snippets (version 54) discussion Scripting home (Thread)
Snippets (version 54) discussion
Last updated: 2020-01-06

(no subject) Scripting snippets (Thread)
Last updated: 2020-02-08

(no subject) Scripting snippets (Thread)
Last updated: 2020-02-08

(no subject) Scripting snippets (Thread)
Last updated: 2020-02-08

(no subject) Scripting snippets (Thread)
Last updated: 2020-02-08

(no subject) Scripting snippets (Thread)
Last updated: 2020-02-08

Home (version 7) discussion Scripting home (Thread)
Home (version 7) discussion
Last updated: 2018-12-07

Home (version 1) discussion Scripting home (Thread)
Home (version 1) discussion
Last updated: 2018-10-29

Snippets (version 47) discussion Scripting home (Thread)
Snippets (version 47) discussion
Last updated: 2019-07-12

Snippets (version 41) discussion Scripting home (Thread)
Snippets (version 41) discussion
Last updated: 2019-01-06

Snippets (version 11) discussion Scripting home (Thread)
Snippets (version 11) discussion
Last updated: 2018-12-07

Snippets (version 15) discussion Scripting home (Thread)
Snippets (version 15) discussion
Last updated: 2018-12-07

Snippets (version 49) discussion Scripting home (Thread)
Snippets (version 49) discussion
Last updated: 2019-10-19

Snippets (version 13) discussion Scripting home (Thread)
Snippets (version 13) discussion
Last updated: 2018-12-07

Snippets (version 1) discussion Scripting home (Thread)
Snippets (version 1) discussion
Last updated: 2018-10-29

(no subject) Scripting home (Thread)
Last updated: 2020-03-21

Snippets (version 39) discussion Scripting home (Thread)
Snippets (version 39) discussion
Last updated: 2019-01-06

Snippets (version 48) discussion Scripting home (Thread)
Snippets (version 48) discussion
Last updated: 2019-10-24

<< < 1 .. 396 397 398 399 400 .. 3647 > >> (Page 398 of 3647)

Showing results of 91171

Sort by relevance or date