Here's some sample c# code that you can call from a .mrr file.
My apologizes, when I teach the ProjectWise SDK class, C++ is used and aaApi_CreateEnvAttr() is used in the exercises.
I see that aaApi_CreateEnvAttr() isn't in MostOfDavesClasses, and that he does use aaApi_CreateLinkDataAndLink().
The documentation doesn't always SHOUT OUT the limitations clearly. If you look at the documentation for aaApi_CreateLinkDataAndLink(), it does mention that it is for "...provided for the legacy code sake..." (grammar could be better!).…
"Words are getting in the way" again. I'm not sure what you are trying to accomplish since you can't update attribute values if they don't exist, and you say "I have tried this method and it works fine to create a new document", i.e…