all right! its works perfectly, using GH python I had just to replace the sc.doc. with Rhino.RhinoDoc.ActiveDoc . Now I am trying to retrieve the existing elements in the idef, and perform a certain operation on the rh_obj according to the type of geometry and layer name. What should i do next?
I don´t really know this part of the library, and working with the active doc is even more confusing. My only problem is not I am not able to perfom any operation that I normally do with the Rhino.Geometry. I am not any more in gh geometry let`s say, but on the active doc right? if I get the type of the rh_obj in the InstanceDefinition, after the GetObjects, I get ‘CurvedObject’ ( the circle you created) and ‘ExtrusionObject’ (my “test” block is a cube).what objects these are? What is this part of the library?
I am not sure how to retrieve the layer attributes from the rh_obj to create an if condition ( for example) and perfom geometric operation ( get one side of the box in the block and extrude it, for example) on it. Do I need to bring the rh_obj to the Rhino.Geonmetry ?
thanks again for the support!