C# Class RevitPythonShell.RevitPythonShellApplication

Inheritance: IExternalApplication
Afficher le fichier Open project: pterelaos/revitpythonshell Class Usage Examples

Méthodes publiques

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

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

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

GetInitScript() public static méthode

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
Résultat string

GetSearchPaths() public static méthode

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

GetSettings() public static méthode

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

GetVariables() public static méthode

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

WriteSettings() public static méthode

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
Résultat void