Dynamo.Graph.Workspaces.WorkspaceModel.SaveAs C# (CSharp) Method

SaveAs() public method

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
public SaveAs ( string newPath, ProtoCore runtimeCore, bool isBackup = false ) : bool
newPath string The path to save to
runtimeCore ProtoCore The object /// to obtain serialized trace data for node list to save.
isBackup bool Indicates whether saved workspace is backup or not. If it's not backup, /// we should add it to recent files. Otherwise leave it.
return bool
        public virtual bool SaveAs(string newPath, ProtoCore.RuntimeCore runtimeCore, bool isBackup = false)
        {
            if (String.IsNullOrEmpty(newPath)) return false;

            Log(String.Format(Resources.SavingInProgress, newPath));
            try
            {
                if (SaveInternal(newPath, runtimeCore) && !isBackup)
                    OnWorkspaceSaved();
            }
            catch (Exception ex)
            {
                //Log(ex);
                Log(ex.Message);
                Log(ex.StackTrace);
                Debug.WriteLine(ex.Message + " : " + ex.StackTrace);
                throw (ex);
            }

            return true;
        }
WorkspaceModel