C# 클래스 RevitPythonShell.ShellForm

상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: pterelaos/revitpythonshell 1 사용 예제들

공개 메소드들

메소드 설명
ShellForm ( ) : System
ShowShell ( ExternalCommandData commandData, string &message, ElementSet elements ) : int

Displays the shell form modally until the user closes it. Provides the user with access to the parameters passed to the IExternalCommand implementation in RevitPythonShell so that it can be passed on. For convenience and backwards compatibility, commandData.Application is mapped to the variable "__revit__" If an InitScript is defined in RevitPythonShell.xml, then it will be run first.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
GetCaretPos ( System &lpPoint ) : bool
GetUncompleted ( string textAtPrompt ) : string

returns the uncompleted portion of the current text at the prompt.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadCommands ( ) : void

Loads a list of commands from the XML file and adds them to the tool strip. These allow the user to save frequently used commands.

PerformCompletion ( string uncompleted ) : List

complete the current word, but only if a __completer__ function is defined in the InitScript If no __completer__ function is defined, it return null.

ReplaceUncompleted ( string textAtPrompt, string uncompleted, string completed ) : string

Replaces the uncompleted portion of textAtPrompt with the completed version.

ToolStripItemClick ( object sender, EventArgs e ) : void

Run one of the configured scripts.

btnConfigureScripts_Click ( object sender, EventArgs e ) : void

Show the dialog for configuring scripts.

ironTextBoxControl_CompletionRequested ( object sender, IronTextBox e ) : void

Show a tooltip with the completions for the current text in the IronTextBoxControl.

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

ShellForm() 공개 메소드

public ShellForm ( ) : System
리턴 System

ShowShell() 공개 메소드

Displays the shell form modally until the user closes it. Provides the user with access to the parameters passed to the IExternalCommand implementation in RevitPythonShell so that it can be passed on. For convenience and backwards compatibility, commandData.Application is mapped to the variable "__revit__" If an InitScript is defined in RevitPythonShell.xml, then it will be run first.
public ShowShell ( ExternalCommandData commandData, string &message, ElementSet elements ) : int
commandData ExternalCommandData
message string
elements ElementSet
리턴 int