I tried to modify the tool posted on there in such a way that it is possible to batch processing of files. As input are the Database and the Editor (null if batch processing mode). If it has been used in the current document, there is no problem. If the function argument gave an external Database, there is an exception to the "eNtoFromThisDocument" function:
This error means that the ID you are trying to open don't belong to the database...
If you have an ObjectID, you can get the owner Database from ObjectId.Database property, then get the transaction from there...
But on your new version of the code, you may consider review to make sure this logic is as expected.
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!