コード例 #1
0
        public IHttpActionResult GetBimModelListedByName(string fileName)
        {
            string         fullPath       = $"D:\\IFCSamples\\{fileName}";
            BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(fullPath);

            return(Ok(bimModelListed));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        public IHttpActionResult SaveBimModelListedAsArchByNameAndPath(string fileName, string filePath, [FromBody] BimModelListed bimModelListed)
        {
            string fullPath = $"{filePath}\\{fileName}";

            Ifc_Bim_Model.SaveBimModelAsArchitecture(bimModelListed, fullPath);

            return(Ok($"Model Saved Architecture at => {fullPath} "));
        }
コード例 #4
0
        public IHttpActionResult SaveBimModelListedAsStrByName(string fileName, [FromBody] BimModelListed bimModelListed)
        {
            string fullPath = $"D:\\IFCSamples\\{fileName}";

            Ifc_Bim_Model.SaveBimModelAsStructure(bimModelListed, fullPath);

            return(Ok($"Model Saved Structural at => {fullPath} "));
        }
コード例 #5
0
        public IHttpActionResult GetBimModelListedFromFullPath(string fullPath)
        {
            //fullPath = ReplaceSlashWithDoubleSlash(fullPath);

            BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(fullPath);

            return(Ok(bimModelListed));
        }
コード例 #6
0
        public IActionResult GetDefaultListedModel()
        {
            BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath("D:\\IFCSamples\\New_Str_New_Arch");

            if (bimModelListed == null)
            {
                return(NotFound());
            }

            return(Ok(bimModelListed));
        }
コード例 #7
0
        public IActionResult GetListedModel(string fullPath)
        {
            BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(fullPath);

            if (bimModelListed == null)
            {
                return(NotFound());
            }

            return(Ok(bimModelListed));
        }
コード例 #8
0
        public IHttpActionResult GetBimModelListedFromDefaultPath()
        {
            BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath("D:\\IFCSamples\\New_Str_New_Arch");

            return(Ok(bimModelListed));
        }
コード例 #9
0
        public IHttpActionResult GetBimModelListedFromPathAndName(string filePath, string fileName)
        {
            BimModelListed bimModelListed = Ifc_Bim_Model.GetListedModelFromPath(filePath, fileName);

            return(Ok(bimModelListed));
        }