So lately, I’ve been trying to build a function that allows me to select specific curves based on layer names. For example, I want to select the outer walls in a house drawing. I’m running into a couple of issues: first, when I try to scale the drawing, all the curves become one type, and even though they seem to be separated, I can’t actually split them. The second issue is that I can’t figure out how to write a function that selects the curves based on the checked layer.
I would really appreciate any help or tips you can offer! I’m a beginner in Grasshopper, but I do have some basic knowledge of it and Python.
if you are on Rhino7 you can use Geometry Pipeline, that allows you to select curve only (double click on its curve icon) and specify the name of the layer on which those curves are (you need to double click and type the Layer name yourself)
if you are on R8 you have all the new Model Content family of components that allow you to filter any kind of geometry type by any of their property (Layer, Linetype, Color, ObjectName… and any combination of those)
if you are open to using plugins, both Elefront and Human have similar import/filtering capabilities
hehe the funy thinsgs is while iam writing to you explaing the problem i cam upp with the solution to it i forgat to bake the scaleing component after i scaled the drawing therfore there was only one curv. thank you by the way