Constructors
Properties
Methods
ClearClipboard
#Clear the Clipboard Text content. This function wipes both the Text and UnicodeText clipboard fields.
Copy
#Copy the internal document into the clipboard.
public bool Copy()
clipboard,
Specifies the clipboard type to use.
limitToSelection
If true, only the selected objects will be copied.
Returns: True on success, false on failure.
Copy
#Copy the specified objects in the internal document into the clipboard.
Returns: True on success, false on failure.
GetDocumentIcon
#Try and extract the icon image of a document. Not all gh/ghx files contain an icon so this function may return null. The document itself is not loaded and rendered, so the icon really has to be part of the file already.
Returns: An icon bitmap on success or null on failure. Caller is responsible for disposing of the image.
GetDocumentThumbnail
#Try and extract the preview image of a document. Not all gh/ghx files contain a thumbnail so this function may return null. The document itself is not loaded and rendered, so the thumbnail really has to be part of the file already.
Returns: A preview bitmap on success or null on failure. Caller is responsible for disposing of the image.
Open
#Perform a default Open operation and store the result as the internal document.
Returns: True on success, false on failure.
OpenDocumentDialog
#Display the Open GH/GHX dialog.
Returns: FileName specified via the Open dialog or null if the dialog was cancelled.
Paste
#Deserialize a Grasshopper document from the clipboard. On success, the internal document of this GH_DocumentIO instance will be set.
Returns: True on success, false on failure.
Save
#Perform a default Save operation on the internal document.
Returns: True on success, false on failure.
SaveAs
#Perform a default Save As operation on the internal document.
Returns: True on success, false on failure.
SaveAsCopyDocumentDialog
#Display the Save As Copy GH/GHX dialog.
Returns: FileName specified via the Save As Copy dialog or null if the dialog was cancelled.
SaveAsDocumentDialog
#Display the Save As GH/GHX dialog.
Returns: FileName specified via the Save As dialog or null if the dialog was cancelled.
SaveDocumentDialog
#Display the Save GH/GHX dialog.
Returns: FileName specified via the Save dialog or null if the dialog was cancelled.
ShowOverwriteDialog
#SubsidiaryDocumentSavePrompt
#Display a 'stuff has changed do you want to save' message box with Yes/No/Cancel options.
Returns: Yes, No, Cancel or None state.
SubsidiaryDocumentSavePrompt
#Display a 'stuff has changed do you want to save' message box with Yes/No/Cancel options.
public static DialogResult SubsidiaryDocumentSavePrompt()
documentName,
Name of top level document.
modified,
Boolean indicating whether top-level document is modified.
modifiedSubsidiaries
Number of modified subsidiary documents.
Returns: Yes, No, Cancel or None state.