I hope you can point me to the right direction, since the new Rhino Components in Grasshopper the ones in Object and Model, others like Annotation seem to work only at the export.
I want to select objects by layers and also get the layer names.
Is there any of the third party plugins that can help with that? or is this possible to do it in the paid version via a c# script?
Could you describe exactly what you mean when you say that you want to “select objects by layers” and “get the layer names”?
Do you want a UI menu allowing you to explore all layers in the model and hide/show objects depending on layers? At the moment, this is only possible using the attribute visualization mode. Imported files store the layer name as an attribute and our viewer provides a way to filter by layer.
If you want to do this outside of the attribute visualization mode, this will soon be possible in the App Builder. I will update this topic once the feature becomes available.
The idea is to import any .dwg file, then get the layer names, and assign a different branch for each layer and assign items according to their layer name. Then I can filter especific keywords for selecting only those layers.
The layer attribute contains the bottom-most layer level, it is mostly useful if you have only one level of layers, otherwise you can use the nestedlayer attribute to get a :: separated name reflecting the hierarchy.
You should be able to use the Attributes components to do the filtering you want.
We are planning to support the new Rhino 8 components in the future but that requires a major plugin update. I will let you know once we make progress about this topic.
Im testing and just realize that Import Geometry doesn’t import Blocks. Is there a way to import the block geometry or at least a bounding box of it?