How to implement a custom PolyCurve

PolyCurve is very powerful now and can add a lot of things to it.

  1. Is there a way to add Hatch objects?
  2. Is there a way to add TextEntity objects?

We have this question because we see that the built-in Dim command in Rhino implements these, and we also have business requirements to achieve a similar effect. How to achieve it?

Hi @ken_zhang,

No, there isn’t a way of adding hatches or text to a polycurve.

What are these requirements? What are you trying to do and why?


– Dale

We’re not trying to add Hatch to PolyCurve, we’re trying to achieve a Dim-like effect. It’s just that we found that PolyCurve met some of our needs.

We hope to use the Wall class to represent a wall. We will generate several geometric lines for the Wall, and at the same time, we will generate TextEntity to represent some important information of the Wall, such as height, and we will use Hatch to represent the load-bearing information of the Wall.

Now, we want to use something similar to PolyCurve to achieve this effect, we found that the effect of Dim is very similar to what we need, so there is this problem.