WorkspaceModel


Constructors

No public constructors defined

Methods

void   RemoveNode(NodeModel model) stability index:1
Return Value: none
Removes a node from this workspace. This method does not raise a NodesModified event. (LC notes this is clearly not true)
model
Boolean   Save(ProtoCore.RuntimeCore) stability index:1
Return Value: none
Save assuming that the Filepath attribute is set.
void   Dispose( ) stability index:1
Return Value: none
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
void   Clear( ) stability index:1
Return Value: none
Clears this workspace of nodes, notes, and connectors.
Boolean   SaveAs(String newPath,RuntimeCore core,Boolean isBackup) stability index:1
Return Value: none
Save to a specific file path, if the path is null or empty, does nothing. If successful, the CurrentWorkspace.FilePath field is updated as a side effect
newPath
The path to save to
core
isBackup
Indicates whether saved workspace is backup or not. If it's not backup, we should add it to recent files. Otherwise leave it.
void   AddAndRegisterNode(Dynamo.Models.NodeModel) stability index:1
Return Value: none
Adds a node to this workspace.

Properties

IEnumerable<PresetModel>   Presets {get;} stability index:1
A set of input parameter states, this can be used to set the graph to a serialized state.
DateTime   LastSaved {get;set;} stability index:1
The date of the last save.
String   Author {get;set;} stability index:1
An author of the workspace
String   Description {get;set;} stability index:1
A description of the workspace
Boolean   HasUnsavedChanges {get;set;} stability index:1
Are there unsaved changes in the workspace?
IEnumerable<NodeModel>   Nodes {get;} stability index:1
All of the nodes currently in the workspace.
IEnumerable<ConnectorModel>   Connectors {get;} stability index:1
All of the connectors currently in the workspace.
IEnumerable<NoteModel>   Notes {get;} stability index:1
All of the notes currently in the workspace.
String   FileName {get;set;} stability index:1
Path to the file this workspace is associated with. If null or empty, this workspace has never been saved.
String   Name {get;set;} stability index:1
The name of this workspace.
Double   X {get;set;} stability index:1
Get or set the X position of the workspace.
Double   Y {get;set;} stability index:1
Get or set the Y position of the workspace
Double   Height {get;set;} stability index:1
Get the height of the workspace's bounds.
Double   Width {get;set;} stability index:1
Get the width of the workspace's bounds.
Rect2D   Rect {get;} stability index:1
Get the bounds of the workspace.
Boolean   CanUndo {get;} stability index:1
Determine if undo operation is currently possible.
Boolean   CanRedo {get;} stability index:1
Determine if redo operation is currently possible.
Guid   Guid {get;} stability index:1
A unique identifier for the workspace.

Events

  RequestNodeCentered** stability index:1
Event that is fired when a workspace requests that a Node or Note model is centered.
  ZoomChanged** stability index:1
Event that is fired every time the zoom factor of a workspace changes.
  CurrentOffsetChanged** stability index:1
Event that is fired every time the position offset of a workspace changes.
  WorkspaceSaved** stability index:1
Event that is fired when the workspace is saved.
  NodeAdded** stability index:1
Event that is fired when a node is added to the workspace.
  NodeRemoved** stability index:1
Event that is fired when a node is removed from the workspace.
  NodesCleared** stability index:1
Event that is fired when nodes are cleared from the workspace.
  NoteAdded** stability index:1
Event that is fired when a note is added to the workspace.
  NoteRemoved** stability index:1
Event that is fired when a note is removed from the workspace.
  NotesCleared** stability index:1
Event that is fired when notes are cleared from the workspace.
  AnnotationAdded** stability index:1
Event that is fired when an annotation is added to the workspace.
  AnnotationRemoved** stability index:1
Event that is fired when an annotation is removed from the workspace.
  AnnotationsCleared** stability index:1
Event that is fired when annotations are cleared from the workspace.
  ConnectorAdded** stability index:1
Event that is fired when a connector is added to the workspace.
  ConnectorDeleted** stability index:1
Event that is fired when a connector is deleted from a workspace.
  Disposed** stability index:1
Event that is fired when this workspace is disposed of.
  Saving** stability index:1
Event that is fired during the saving of the workspace. Add additional XmlNode objects to the XmlDocument provided, in order to save data to the file.