Retrieve information from IModelDoc2

Hello,

I've opened a .sldprt file using API "ISldWorks::OpenDoc6()" and got IModelDoc2** as an output.

Please tell me, how to retrieve sketch information such as entities, constraints, dimensions from that model doc?

Thanks and regards

SolidworksApi macros