Update custom model properties from drawing

I have a macro that I made to update the custom properties in a drawing that are used in various places on the drawing, BOM, Title block, ect.

The problem is that we have a good deal of our drawings created with DriveWorks and the programming uses custom properties from the model level for some of the fields that I would like to edit.

Is it possible to pull and push to and from the custom properties of the model in the current drawing.

I should also mention that I do know which properties are pulling from which location, some of them are from the drawing and some of them are from the model.

I have attached my code for your reference.

any help would be great.

SLP

SolidworksApi macros