C# Class Autodesk.Workspaces.Utilities

Afficher le fichier Open project: DynamoDS/Dynamo

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat Dynamo.Graph.Workspaces.WorkspaceModel

SaveWorkspaceToJson() public static méthode

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
Résultat string