C# Класс Autodesk.Workspaces.Utilities

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

LoadWorkspaceFromJson() публичный статический Метод

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
Результат Dynamo.Graph.Workspaces.WorkspaceModel

SaveWorkspaceToJson() публичный статический Метод

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
Результат string