Accessing the direct viewport of model with OpenGL or DirectX

Hello again,

I have successfully solved the previous problems but a new oneoccurred. I want to render my graphic data directly to the modelview. I've seen the OpenGL functions used in samples but I don'tknow how to access the direct view port for their usage. Doesanybody know what to start from?

Regards, BasilSolidworksApi macros