4e48427bee
* feat(dui3): re-enables receive binding probably the fourth time * chore(revit): drastic cleanup maybe too drastic, we will see soon * feat(revit): starts scaffolding revit root to host converter * RenderMaterialToHostConverter added back * casting to GeometryObject instead of GeometryElement * feat(dui3): fallback display values and refactors out material converter * feat(dui3): creates DS and adds point support * feat(dui3): closed nurbs fallback to display values * David/cnx 443 selection (#231) * highlight works * use status.success on receive success * question comment * wip * feat(revit): wraps receive in correct context * wip * feat(dui3): adds prototype grouping by collection and adds todos * remove invalid characters from group name * hide warnings preprocessor * exception handling and error log * added cancellation and progress reporting * chore: comments and minor cleanup * David/cnx 409 2 add rendermaterial and color manager to connector (#242) * materials wip * Make it work receiving render materials * MaterialBaker mods, cleanup * Address the PR comments * Remove invalid chars from structured material names --------- Co-authored-by: oguzhankoral <oguzhankoral@gmail.com> * Minor cleanup * Add object application id into objects of its layer render material proxy * feat(dui3): adds compatibility for objects with display values * Use LocalToGlobal logic for revit receive * Use common local to global util for arcgis too * Remove unnecessary registration * Remove using * Remove unnecessart ToList * Register LocalToGlobalConverterUtils for connectors not as common * purge materials and groups in Revit before update (#245) * purge materials and groups in Revit before update * cleaner linq * renamed _groupManager to _groupBaker * assign categories to DirectShapes after receive, updated revit invalid chars (#253) * Post conflict resolving problems * minor changes, logging, comments (#257) * minor changes, logging, comments * typo --------- Co-authored-by: David Kekesi <david@speckle.systems> Co-authored-by: kekesidavid <david.kekesi@gmail.com> Co-authored-by: oguzhankoral <oguzhankoral@gmail.com>
19 lines
468 B
C#
19 lines
468 B
C#
namespace Speckle.Connectors.Revit.HostApp;
|
|
|
|
public class RevitUtils
|
|
{
|
|
// see Revit Parameter Name Limitations here
|
|
// https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/3RVyShGL7OMlDJPLasuKFL.html
|
|
private const string REVIT_INVALID_CHARS = @"\:{}[]|;<>?`~";
|
|
|
|
public string RemoveInvalidChars(string str)
|
|
{
|
|
foreach (char c in REVIT_INVALID_CHARS)
|
|
{
|
|
str = str.Replace(c.ToString(), string.Empty);
|
|
}
|
|
|
|
return str;
|
|
}
|
|
}
|