Writing an add-in, just use standard VBA methods to do what you want. Does your Add-in require Project Pro logged into Project Server?
Search the Object Browser in Project's VBA Editor for customfield and get what you need done in VBA first, then translate into your addin.
Rod Gill
The one and only Project VBA Book
Rod Gill Project Management