RhinoCommon, explode a linearDimension

Hello Forum,

I need to explode a LinearDimension instance into elementary objects under RhinoCommon as part of the porting of my Rhino.Net application.

Rhino.Net “IRhinoLinearDimension” interface had the “explode” method while the equivalent class “LinearDimension” in RhinoCommon hasn’t anything similar. Any hint?

Thanks. L

Hi @lscandella,

Use TextEntity.Explode.

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_TextEntity_Explode.htm

– Dale

Dale,

thanks. TextEntity.Explode explodes a text into curves, but the IRhinoLinearDimension::Explode method:

bool Explode ([System::Runtime::InteropServices::Out]array<OnTextEntity2^>^% output_text , [System::Runtime::InteropServices::Out]array<OnCurve^>^% output_curves );

explodes it into normally a single text entity (the dimension text) and some curves which are normally some lines with or without arrows.

The behavior that I must port is the latter.

Thanks. L

No more ideas?
Thanks. L

Hi @lscandella,

Short of scripting the Explode command, I don’t see a way of doing this in RhinoCommon. I’ve added an issue to resolve this.

https://mcneel.myjetbrains.com/youtrack/issue/RH-50235

– Dale