Extrude Curves by included text values

Hello there,

I was hoping someone could help me out on this issue…
Essentially I would like to extrude different curves by text values, which are placed inside.

Here was my first approach, which ist not working anymore…

I’m trying to search for a solution on how to separate the curves which dont contain any text, versus those who contain text.
The same applies also for my texts, separating those being within a curve, and those outside.

I’m trying to separate the different elements, so I could for example extrude all the curves with other randomized values.
extrude crvs from text values.gh (16.6 KB)
test.3dm (150.6 KB)

If anything of further use is needed, please don’t hesitate to ask me asap.
I appreciate any help!

Kind regards,

I think You need to put Graft option on.
extrude crvs from text values_2.gh (14.2 KB)

Hey there!

thanks first of all…
It does work in small scale like this, but when i apply it to the bigger one it starts failing.
As you can see here, some curves with text in them don’t get extruded, and some without text do get extruded.

Does anyone know what could be causing the trouble?
I’m also having difficulties isolating all the crvs, which don’t have text inside.

extrude crvs from text values.gh (86.8 KB)
test_02.3dm (7.8 MB)

Any help is appreciated!

Kind regards,

a few things :slight_smile:

if you run the Rhino command SelDup you’ll find a duplicate text to be deleted:

second thing, here:

it happens that the point of origin of two different texts are inside the very same curve:

so I have manually translated this inside its curve:

there is also another duplicate text here, that is not recognized by SelDup:

this said, something like this might do the job:

extrude_curves_if_text_is_inside.gh (104.2 KB)
test_02_NO_DUPS.3dm (7.7 MB)

this will only find text that exists inside closed curves
if a curve is open, it won’t close it: it will just ignore it, and will also ignore the text that looks like being inside it (there’s no “inside” for a closed curve… :slight_smile: )
so there are both

  1. texts that are ignored because not inside any closed curve, and
  2. curves that are ignored because they are not closed

it also happens pretty frequently to have these situations:

is the text referred to A or B? :slight_smile:
in this definition it’s always referred to A, because its placement point lives inside the curve A

hope this helps

1 Like

Hello inno!

Thank you, It’s working perfectly!
I was pretty sure that I made some wrong crucial assumptions in the beginning…
Thanks for taking the time :slight_smile:

Kind regards,

1 Like