How to acces the geometry part and the attrubute part of an Object

HI,

I am new to python scripting for Rhino. I want to implement a Quality Model Checker for CAD models based on SASIG standard. The main challenge is how I can get to the geometric data of the Rhino’s objects automatically without manually selection of the geometric components as curves, surfaces,…etc. I don’t know how to do that so any help will be highly appreciated.

Best Regards,

Ion

I am doing something similar, what kind of object do you want to get information on?
by geometric data, what do you mean?

-Eivind

HI,

It has been a while :)… but I need to get the topology of the model. Rhino used the boundary representation for the solids. I want to see if the solid is closed and to do some tests on the surface,curve and edge elements of the adjacent geometric elements.

Ion

Check this to see the Brep structure and how it is built up.

Then refer to this documentation on Brep
http://4.rhino3d.com/5/rhinocommon/html/T_Rhino_Geometry_Brep.htm

Thank you Menno…

Out of the topic, but I am in a time need :slight_smile: … Do you how to grab the output of the Rhino Commands into a string ? I can use the Clipboard, but not of the Rhino outputs is there. If I am looking for naked edges using ShowEdges command, I don’t get, by example, the number of the naked edges, which is displayed in the History window…

Ion

You shouldn’t rely on the text in the history window. Instead, on a Brep object try http://4.rhino3d.com/5/rhinocommon/html/M_Rhino_Geometry_Brep_DuplicateNakedEdgeCurves.htm or http://4.rhino3d.com/5/rhinocommon/html/M_Rhino_Geometry_Brep_DuplicateEdgeCurves_1.htm

Thank you Menno,

Ion