Skip to content

Commit

Permalink
feat(gh): Add support for TextEntity conversion both ways. (#3057)
Browse files Browse the repository at this point in the history
TextEntity cannot be fetched from Rhino, but can be created through a Python/C# script.

It also cannot be baked from Grasshopper, so users are left the responsibility of knowing what to do with these.

Since they're convertible, you can always plug them into a "Deconstruct Speckle Object" to get their inner info.
  • Loading branch information
AlanRynne authored Nov 22, 2023
1 parent 0e04abe commit f8f9566
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ public bool CanConvertToSpeckle(object @object)
case RH.Extrusion _:
case RH.Brep _:
case RH.NurbsSurface _:
case RH.TextEntity _:
return true;

#if GRASSHOPPER
Expand All @@ -623,7 +624,6 @@ public bool CanConvertToSpeckle(object @object)
case ViewInfo _:
case InstanceDefinition _:
case InstanceObject _:
case RH.TextEntity _:
case RH.Dimension _:
case Layer _:
return true;
Expand Down Expand Up @@ -657,6 +657,7 @@ public bool CanConvertToNative(Base @object)
case Brep _:
case Surface _:
case Element1D _:
case Text _:
return true;
#if GRASSHOPPER
case Interval _:
Expand All @@ -676,7 +677,6 @@ public bool CanConvertToNative(Base @object)
case GridLine _:
case Alignment _:
case Level _:
case Text _:
case Dimension _:
case Collection c when !c.collectionType.ToLower().Contains("model"):
return true;
Expand Down

0 comments on commit f8f9566

Please sign in to comment.