From 7c7fdd84628f3790eb088c555d168a8098b18d13 Mon Sep 17 00:00:00 2001 From: lorinczandrea Date: Mon, 9 Dec 2024 11:30:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20remove=20ASCII=20check=20in=20fi?= =?UTF-8?q?le=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #1127 --- FemDesign.Grasshopper/Model/ModelReadFromFile.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/FemDesign.Grasshopper/Model/ModelReadFromFile.cs b/FemDesign.Grasshopper/Model/ModelReadFromFile.cs index e97145b5..8397313f 100644 --- a/FemDesign.Grasshopper/Model/ModelReadFromFile.cs +++ b/FemDesign.Grasshopper/Model/ModelReadFromFile.cs @@ -31,11 +31,6 @@ protected override void SolveInstance(IGH_DataAccess DA) string filePath = null; DA.GetData(0, ref filePath); - - if (_FileName.IsASCII(filePath)) - this.AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "File path has special characters. This might cause problems."); - - bool fileExist = OnPingDocument().IsFilePathDefined; if (!fileExist) { @@ -51,9 +46,6 @@ protected override void SolveInstance(IGH_DataAccess DA) System.IO.Directory.SetCurrentDirectory(dirName); } - - - Model model = null; // create Task @@ -83,9 +75,6 @@ protected override void SolveInstance(IGH_DataAccess DA) model = Model.DeserializeFromFilePath(filePath); } - - - // get output DA.SetData(0, model); }