I was looking at the rhinoCommon sdk for a solution but unable to find it.
Here is what I need to do :
From grasshopper component make a document fill it with geometry data
and write it to disk .
I was used to the OpenNurbs c++ where there was a ON_Model to achieve this.