I encounter a problem that I do not understand. I created a little C# routine for Autocad Electrical (2011 and 2012) which adds some drawings to the current project with the following command:
This mehtod works perfectly. With the parameter list you can set the Section, Sub-Section and Descriptions of the page properties, exactly what I want.
When I start the routine, I check which project is active. If the wrong project is active, I activate the appropiate project with the following command:
So, when I want to add drawings to project A and project B is active at the start of the routine, I activate project A and the drawings are added.
When I want to add drawings to project A and this project is already active, the drawings are not added to the project. The method mentioned above to add drawings returns nill, which means a failure.
Why is this happening? Is this a bug of Autocad?
I already tried to always activate the project I want to add drawings to, but that doensn't matter.
Can anyone help me with this problem?
Thanks in advance.
I see this same issue is being discussed on this post. .
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.