AC14 multisessions with VBA/VB6
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
AC14 multisessions with VBA/VB6
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA

Author Message
TBH



Joined: 27 Feb 2009
Posts: 1

Posted: Fri Feb 27, 2009 3:36 pm    Post subject: AC14 multisessions with VBA/VB6 Reply with quote

Crying or Very sad

when 2 or more AutoCAd14 sessions are open each try to connect to autocad via a VB-program

Set AcadAppl = GetObject(, "AutoCAD.Application")
Set CEDoc = AcadAppl.ActiveDocument

results in a connection to the first AutoCad drawing, regardless from which open drawing the call comes. Only when the first drawing is closed the connection calls the 2nd and so on.

In Acad14 the property AcadApplication.Documents() does not exist.

Does anybody know a workaround ?

Back to top
View user's profile Send private message Send e-mail
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Microsoft Office Forum - Electronics

Contact Us Powered by phpBB