C# Класс RevitPythonShell.RevitPythonShellApplication

Наследование: IExternalApplication
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

GetCommands() публичный статический Метод

Returns a list of commands as defined in the settings file.
public static GetCommands ( ) : IEnumerable
Результат IEnumerable

GetInitScript() публичный статический Метод

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
Результат string

GetSearchPaths() публичный статический Метод

Returns a list of search paths to be added to python interpreter engines.
public static GetSearchPaths ( ) : IEnumerable
Результат IEnumerable

GetSettings() публичный статический Метод

Returns a handle to the settings file.
public static GetSettings ( ) : System.Xml.Linq.XDocument
Результат System.Xml.Linq.XDocument

GetVariables() публичный статический Метод

Returns the list of variables to be included with the scope in RevitPythonShell scripts.
public static GetVariables ( ) : string>.IDictionary
Результат string>.IDictionary

WriteSettings() публичный статический Метод

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
Результат void