/***************************************************/ /**** Private Methods ****/ /***************************************************/ //To get the TSD Document private TSD.TSDDocument GetTsdDocument() { tsdDocument = new TSD.TSDDocument(); if (!String.IsNullOrEmpty(tsdFilePath) && System.IO.File.Exists(tsdFilePath)) { tsdDocument.open(tsdFilePath); } else if (!String.IsNullOrEmpty(tsdFilePath)) { tsdDocument.create(tsdFilePath); //What if an existing file has the same name? } else { BH.Engine.Base.Compute.RecordError("The TSD file does not exist"); } return(tsdDocument); }
internal TSDDocument(string FilePath, bool Save) { pSave = Save; pTSDDocument = GetTSDDocument(Save); pTSDDocument.open(FilePath); }