C# Class Autodesk.Workspaces.Utilities

Show file Open project: DynamoDS/Dynamo

Public Methods

Method Description
LoadWorkspaceFromJson ( string json, LibraryServices libraryServices, Dynamo.Engine.EngineController engineController, Dynamo.Scheduler.DynamoScheduler scheduler, NodeFactory factory, bool isTestMode, bool verboseLogging, Dynamo.Core.CustomNodeManager manager ) : WorkspaceModel

Load a WorkspaceModel from json. If the WorkspaceModel is a HomeWorkspaceModel it will be set as the current workspace.

SaveWorkspaceToJson ( WorkspaceModel workspace, LibraryServices libraryServices, Dynamo.Engine.EngineController engineController, Dynamo.Scheduler.DynamoScheduler scheduler, NodeFactory factory, bool isTestMode, bool verboseLogging, Dynamo.Core.CustomNodeManager manager ) : string

Save a Workspace to json.

Private Methods

Method Description
ReplaceTypeDeclarations ( string json, bool fromServer = false ) : string

Strips $type references from the generated json, replacing them with type names matching those expected by the server.

Method Details

LoadWorkspaceFromJson() public static method

Load a WorkspaceModel from json. If the WorkspaceModel is a HomeWorkspaceModel it will be set as the current workspace.
public static LoadWorkspaceFromJson ( string json, LibraryServices libraryServices, Dynamo.Engine.EngineController engineController, Dynamo.Scheduler.DynamoScheduler scheduler, NodeFactory factory, bool isTestMode, bool verboseLogging, Dynamo.Core.CustomNodeManager manager ) : WorkspaceModel
json string
libraryServices LibraryServices
engineController Dynamo.Engine.EngineController
scheduler Dynamo.Scheduler.DynamoScheduler
factory NodeFactory
isTestMode bool
verboseLogging bool
manager Dynamo.Core.CustomNodeManager
return Dynamo.Graph.Workspaces.WorkspaceModel

SaveWorkspaceToJson() public static method

Save a Workspace to json.
public static SaveWorkspaceToJson ( WorkspaceModel workspace, LibraryServices libraryServices, Dynamo.Engine.EngineController engineController, Dynamo.Scheduler.DynamoScheduler scheduler, NodeFactory factory, bool isTestMode, bool verboseLogging, Dynamo.Core.CustomNodeManager manager ) : string
workspace Dynamo.Graph.Workspaces.WorkspaceModel
libraryServices LibraryServices
engineController Dynamo.Engine.EngineController
scheduler Dynamo.Scheduler.DynamoScheduler
factory NodeFactory
isTestMode bool
verboseLogging bool
manager Dynamo.Core.CustomNodeManager
return string