Setting data on multiple elements

I have a project here in which I need to populate the OWNER of every element within the project bounds. However, the only way I know of to do this is to manually select each individual object and do so. With something like 20,000 elements in the project, this is unfeasible. Is there a way to do this faster? I'm perfectly comfortable writing VBA or in any other language (in fact, I'm using an AHK script to speed up the process somewhat), but I have been able to find no VBA documentation on the tools or extended data structure that come with Bentley Comms, so I have no idea how (or if it's even possible to) access them via VBA. I have been unable to find any other obvious way of doing this either; i.e. I can't seem to locate any tool that lets me see the data on all the elements I currently have checked out, for example. Any help would be greatly appreciated.