With the setvalue method of the IMendixObject you can set attributes and associations, in other words set the value of any member of an IMendixObject.
A second option could be to create a proxy object for the instantiated IMEndixObject and use the available setter in the proxy object.