C# Class RevitPythonShell.ScriptExecutor

Executes a script scripts
Exibir arquivo Open project: pterelaos/revitpythonshell Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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'.

Method Details

ExecuteScript() public method

Run the script and print the output to a new output window.
public ExecuteScript ( string source ) : int
source string
return int

ScriptExecutor() public method

public ScriptExecutor ( ExternalCommandData commandData, string message, ElementSet elements ) : System
commandData ExternalCommandData
message string
elements ElementSet
return System

SetupEnvironment() public method

Set up an IronPython environment - for interactive shell or for canned scripts
public SetupEnvironment ( ScriptEngine engine, ScriptScope &scriptScope ) : void
engine ScriptEngine
scriptScope ScriptScope
return void