C# 클래스 RevitPythonShell.ScriptExecutor

Executes a script scripts
파일 보기 프로젝트 열기: pterelaos/revitpythonshell 1 사용 예제들

공개 메소드들

메소드 설명
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