C# Class RevitPythonShell.ScriptExecutor

Executes a script scripts
Afficher le fichier Open project: pterelaos/revitpythonshell Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ScriptExecutor() public méthode

public ScriptExecutor ( ExternalCommandData commandData, string message, ElementSet elements ) : System
commandData ExternalCommandData
message string
elements ElementSet
Résultat System

SetupEnvironment() public méthode

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