Files
speckle-sharp-connectors/Connectors/Autocad/Speckle.Connectors.AutocadShared/HostApp/AutocadContext.cs
T
2024-07-04 11:56:34 +01:00

20 lines
523 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace Speckle.Connectors.Autocad.HostApp;
public class AutocadContext
{
// POC: we may want to inject this autocadcontext with the active doc?
private const string INVALID_CHARS = @"<>/\:;""?*|=,";
// POC: we can move this function into more relevant/general place. Not sure other connectors need similar functionality like this.
public string RemoveInvalidChars(string str)
{
foreach (char c in INVALID_CHARS)
{
str = str.Replace(c.ToString(), string.Empty);
}
return str;
}
}