Script Function Library

Материал из archestra.info
Версия от 14:29, 25 октября 2013; Admin (обсуждение | вклад) (Другие темы)

Перейти к: навигация, поиск

Работа с расширениями библиотеки

Последовательность разработки

  1. Разработать библиотеку, например в Visual Studio. NET.
  2. Импортировать библиотеку в IDE.
  3. Написать необходимый скрипт и задеплоить объект (лучше для деплоя использовать тестовый AppEngine - не основной)
  4. Отладить скрипт
  5. Если требуется обновить библиотеку (например, после расширения функционала), то:
    • раздеплоить объект(ы)
    • Сделать Shutdown AppEngine для выгрузки из памяти .NET функционала
    • Запустить AppEngine.
    • Повторить с шага 1


Удаление DLL библиотеки

Если необходимо, можно в ручную удалить импортированную ранее библиотеку.

Для этого: необходимо удалить DLL файлы из каталога:

Program Files\ArchestrA\Framework\FileRepository\'name of galaxy'\Vendors\ArchestrA


Импорт DLL библиотеки

  1. Point to Import on the Galaxy menu and then click Script Function Library.
  2. In the Import Script Function Library dialog box, browse to locate the library file (.aaSLIB, .dll, .wdf, .tlb and .olb extension). Select the file and click Open or Cancel to end the import function.
  3. Click OK in the final message box. The Galaxy imports the designated library makes its functions available to all IDEs connected to the Galaxy through the script function browser on the Script page of the object’s editor.

If the library’s name is identical to the name of a library that has been previously imported into the Galaxy, you are prompted to replace the library or rename the library being imported. Also, if you replace an existing script function library and redeploy the objects using it, you must restart the objects’ AppEngine for the new script function library to take effect.



Источник: https://wdn.wonderware.com/sites/WDN/Lists/Solution%20Central%20Q%20and%20A/display.aspx?List=a9ff589d-c336-4bcf-807f-e3260856359a&ID=3330


Другие темы