C# Класс RevitPythonShell.ScriptExecutor

Executes a script scripts
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ExecuteScript ( string source ) : int

Run the script and print the output to a new output window.

ScriptExecutor ( ExternalCommandData commandData, string message, ElementSet elements ) : System
SetupEnvironment ( ScriptEngine engine, ScriptScope &scriptScope ) : void

Set up an IronPython environment - for interactive shell or for canned scripts

Приватные методы

Метод Описание
AddSearchPaths ( ScriptEngine engine ) : void

Add the search paths defined in the ini file to the engine.

GetScope ( ScriptScope scriptScope ) : Microsoft.Scripting.Runtime.Scope

Be nasty and reach into the ScriptScope to get at its private '_scope' member, since the accessor 'ScriptScope.Scope' was defined 'internal'.

Описание методов

ExecuteScript() публичный Метод

Run the script and print the output to a new output window.
public ExecuteScript ( string source ) : int
source string
Результат int

ScriptExecutor() публичный Метод

public ScriptExecutor ( ExternalCommandData commandData, string message, ElementSet elements ) : System
commandData ExternalCommandData
message string
elements ElementSet
Результат System

SetupEnvironment() публичный Метод

Set up an IronPython environment - for interactive shell or for canned scripts
public SetupEnvironment ( ScriptEngine engine, ScriptScope &scriptScope ) : void
engine ScriptEngine
scriptScope ScriptScope
Результат void