Skip to content

Commit

Permalink
🔥 remove ASCII check in file path
Browse files Browse the repository at this point in the history
  • Loading branch information
lorinczandrea committed Dec 9, 2024
1 parent f54c273 commit 7c7fdd8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions FemDesign.Grasshopper/Model/ModelReadFromFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -51,9 +46,6 @@ protected override void SolveInstance(IGH_DataAccess DA)
System.IO.Directory.SetCurrentDirectory(dirName);
}




Model model = null;

// create Task
Expand Down Expand Up @@ -83,9 +75,6 @@ protected override void SolveInstance(IGH_DataAccess DA)
model = Model.DeserializeFromFilePath(filePath);
}




// get output
DA.SetData(0, model);
}
Expand Down

0 comments on commit 7c7fdd8

Please sign in to comment.