Hi everybody,
I am currently using CRhinoObjRef to store information of objects, subobjects and grips.
My problem is that I still do not have clear how to build correctly a CRhinoObjRef instance.
I have noticed that, for example, when I create a CRhinoObjRef from of an extrusion object it behaves in a different way than a CRhinoObjRef created from the copy of such object.
For instance, the CRhinoObjRef created from the original returns a brep when I use the Brep() method.
The CRhinoObjRef created from the copy of the object do not return anything.
Here a short example:
I guess it is not possible to access completely to the object CRhinoObjRef . Nevertheless I am wondering if it is possible to reproduce even only partly the object created in the database…
CRhinoObjRef returns information on what the user picked and how they picked it. Because this class creates proxy objects as needed, it is not a class you want to use to store information (at least not very long).
Perhaps more details on what you are trying to do and why would be helpful?
Dale,
we just need the reference to the selected object. Our issue is that we sometimes select objects depending on some conditions with our functions. With the Pickobjects or the CRhinoGetObject functions is possible to get this reference but I cannot understand how to have a CRhinoObjRef in other ways.
A step forward, for example, would be to know how to set up the proxy…
Creating a new CRhinoObjRef object just based on a object id is not always sufficient. Keep in mind that when you sub-object select (pick a face from a multi-faced Brep for example, the component index is critical as it indicates what you really picked. CRhinoObjRef has some setters for setting up these types of picking operations.