C# Class RevitPythonShell.RevitPythonShellApplication

Inheritance: IExternalApplication
Mostra file Open project: pterelaos/revitpythonshell Class Usage Examples

Public Methods

Method Description
GetCommands ( ) : IEnumerable

Returns a list of commands as defined in the settings file.

GetInitScript ( ) : string

Returns a string to be executed, whenever the interactive shell is started. If this is not specified in the XML file (under /RevitPythonShell/InitScript), then null is returned.

GetSearchPaths ( ) : IEnumerable

Returns a list of search paths to be added to python interpreter engines.

GetSettings ( ) : System.Xml.Linq.XDocument

Returns a handle to the settings file.

GetVariables ( ) : string>.IDictionary

Returns the list of variables to be included with the scope in RevitPythonShell scripts.

WriteSettings ( IEnumerable commands, IEnumerable searchPaths, string>.IEnumerable variables, string initScript ) : void

Writes settings to the settings file, replacing the old commands.

Private Methods

Method Description
CreateCommandLoaderAssembly ( string dllfolder, string dllname ) : void

Creates a dynamic assembly that contains types for starting the canned commands.

GetSettingsFile ( ) : string
IExternalApplication ( UIControlledApplication application ) : System.Result

Method Details

GetCommands() public static method

Returns a list of commands as defined in the settings file.
public static GetCommands ( ) : IEnumerable
return IEnumerable

GetInitScript() public static method

Returns a string to be executed, whenever the interactive shell is started. If this is not specified in the XML file (under /RevitPythonShell/InitScript), then null is returned.
public static GetInitScript ( ) : string
return string

GetSearchPaths() public static method

Returns a list of search paths to be added to python interpreter engines.
public static GetSearchPaths ( ) : IEnumerable
return IEnumerable

GetSettings() public static method

Returns a handle to the settings file.
public static GetSettings ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

GetVariables() public static method

Returns the list of variables to be included with the scope in RevitPythonShell scripts.
public static GetVariables ( ) : string>.IDictionary
return string>.IDictionary

WriteSettings() public static method

Writes settings to the settings file, replacing the old commands.
public static WriteSettings ( IEnumerable commands, IEnumerable searchPaths, string>.IEnumerable variables, string initScript ) : void
commands IEnumerable
searchPaths IEnumerable
variables string>.IEnumerable
initScript string
return void