Projectwise API by using PWIntBaseLib

I am trying to create a command in AutoCAD to attach the xref from projectwise.

By using .NET I set the reference to PWIntBaseLib.

 In PWIntBaseLib there is a function called ReferenceAttach.

What these parameters are ?

RefAppID and IType

How to find RefAppID and IType for this function ?

Is RefAppID is the handle to AutoCAD application ?