Script Function Library

Материал из archestra.info
Версия от 14:18, 25 октября 2013; Admin (обсуждение | вклад) (Новая страница: «== Работа с расширениями библиотеки == === Последовательность разработки === #Разработать б…»)

(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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

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

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


Note that it may be necessary when reimporting an existing script function to first delete the DLL in Program Files\ArchestrA\Framework\FileRepository\'name of galaxy'\Vendors\ArchestrA

To import a script function library

   Point to Import on the Galaxy menu and then click Script Function Library.
   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.
   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