connect projectwise using vba and checkout a drawing

hi,

i am new this projectwise .

i would like to connect to project wise from  auto cad drawing using vba.

what is the connection information or how to give connection from vba to project wise .

further i would like to check out and check in files upon opening the drawing using macro.(auto checkout and auto checkin)

Prakash.N