What do you study and have you looked into the API reference?
The IModeler is accessed from ISldWorks::GetModeler Method. There is some examples in the API reference that you could look at. It would give you an basic idea of how to get started.
Links to API references
Browser around the different methods and you will find some examples for some other methods. It will give some some ideas of how to get things working.