public IHttpActionResult GetBimModelListedByName(string fileName) { string fullPath = $"D:\\IFCSamples\\{fileName}"; BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(fullPath); return(Ok(bimModelListed)); }
public IHttpActionResult AnalyzeModelFromPathAndName(string sourceFilePath, string fileName, string analysisFilePath, double pointsTolerance = 0.01, double maximumShellMeshSize = 1000) { BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(sourceFilePath, fileName); BimModelListed bimModelListed_Analyzed = Sap_Bim_Model.AnalyseModelListed(bimModelListed, analysisFilePath, fileName, pointsTolerance, maximumShellMeshSize); return(Ok(bimModelListed_Analyzed)); }
public IHttpActionResult SaveBimModelListedAsArchByName(string fileName, [FromBody] BimModelListed bimModelListed) { string fullPath = $"D:\\IFCSamples\\{fileName}"; Ifc_Bim_Model.SaveBimModelAsArchitecture(bimModelListed, fullPath); return(Ok($"Model Saved Architecture at => {fullPath} ")); }
public IHttpActionResult GetBimModelListedFromFullPath(string fullPath) { //fullPath = ReplaceSlashWithDoubleSlash(fullPath); BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(fullPath); return(Ok(bimModelListed)); }
public IActionResult GetDefaultListedModel() { BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath("D:\\IFCSamples\\New_Str_New_Arch"); if (bimModelListed == null) { return(NotFound()); } return(Ok(bimModelListed)); }
public IActionResult GetListedModel(string fullPath) { BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(fullPath); if (bimModelListed == null) { return(NotFound()); } return(Ok(bimModelListed)); }
public IHttpActionResult AnalyzeModelSent(string analysisFilePath, string fileName, [FromBody] BimModelListed bimModelListed, double pointsTolerance = 0.01, double maximumShellMeshSize = 1000) { BimModelListed bimModelListed_Analyzed = Sap_Bim_Model.AnalyseModelListed(bimModelListed, analysisFilePath, fileName, pointsTolerance, maximumShellMeshSize); return(Ok(bimModelListed_Analyzed)); }
public IHttpActionResult SaveBimModelListedAsStrByNameAndPath(string fileName, string filePath, [FromBody] BimModelListed bimModelListed) { string fullPath = $"{filePath}\\{fileName}"; Ifc_Bim_Model.SaveBimModelAsStructure(bimModelListed, fullPath); return(Ok($"Model Saved Structural at => {fullPath} ")); }
public IHttpActionResult GetBimModelListedFromDefaultPath() { BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath("D:\\IFCSamples\\New_Str_New_Arch"); return(Ok(bimModelListed)); }
public IHttpActionResult GetBimModelListedFromPathAndName(string filePath, string fileName) { BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(filePath, fileName); return(Ok(bimModelListed)); }