Hi,
There is no way to know what the problem is without a description of the task you are trying to automate by code, how many drawings are you dealing with, what and how many (aprox) entities are involved, platform, etc, etc. Access to the code and a test working set could help us trying to help you.
Gaston Nunez