The Grasshopper main window.
Constructors
GH_DocumentEditor
#public GH_DocumentEditor()
Properties
Methods
FixCanvasToolbarState
#public void FixCanvasToolbarState()
Enabled/Disables the appropriate buttons depending on whether there is a document loaded on the canvas.
ScriptAccess_CloseAllDocuments
#Closes all documents in the Document Queue.
Returns: True on success, false on failure.
ScriptAccess_CloseDocument
#Closes the currently active document and loads the next available document into the canvas. Changes will not be saved.
Returns: True on success, false on failure.
ScriptAccess_IsDocumentModified
#Gets the modified flag of the currently loaded document.
Returns: True if the document has been modified, false if not or if there is no document.
ScriptAccess_OpenDocument
#Displays a command line interface for File Open... then loads that file into the Canvas.
Returns: True on success, false on failure.
ScriptAccess_OpenDocument
#Loads a specific file off the hard disk into the Canvas.
Parameters:
| filename (string) | File to load. |
Returns: True on success, false on failure.
ScriptAccess_SaveDocument
#Saves the document currently loaded in the Canvas. If the document hasn't been saved before then a Save... dialog box will be shown.
Returns: True on success, false on failure.
ScriptAccess_SaveDocumentAs
#Saves the currently active document to disk.
Returns: True on success, false on failure.
ScriptAccess_SaveDocumentAs
#Saves the currently active document to disk.
Parameters:
| path (string) | Path of save destination. |
Returns: True on success, false on failure.
SetStatusBarEvent
#Set a new message on the Grasshopper status bar.
Parameters:
| event (GH_RuntimeMessage) | Message to set |
ToggleForm
#public void ToggleForm()
Collapses the form if it's currently expanded or expands the form if it's currently collapsed.