Application.DocumentManager.DocumentActivationEnabled = False
Dim NewDrawing As Document = DocumentCollectionExtension.Add(Application.DocumentManager, "acadiso.dwt")
Application.DocumentManager.DocumentActivationEnabled = True
Alexander,
thanks fot the reply.
but the piece of code below just throws en exception (file error).Code: [Select]Application.DocumentManager.DocumentActivationEnabled = False
Dim NewDrawing As Document = DocumentCollectionExtension.Add(Application.DocumentManager, "acadiso.dwt")
Application.DocumentManager.DocumentActivationEnabled = True
(1) What Giles writes is simply not true: in Visual Basic Net you don't have to define your commands in a module. You may define them in a class. As I always do. I never use modules. Modules are classes with all members shared. Modules are classes in disguise.
(2) I don't have to import 'DocumentCollectionExtension', since it's a class, not a namespace. Although in Visual Basic you could use the Imports statement to import a class. (I sometimes do that with 'System.Math', for example.)
(1) What Giles writes is simply not true:Everything gile writes is true.
< .. >
For future reference(1) What Giles writes is simply not true:Everything gile writes is true.
< .. >
For future reference(1) What Giles writes is simply not true:Everything gile writes is true.
That axiom is indisputable !
That comment was meant as a thanks for all the great information you have shared< .. >
For future reference(1) What Giles writes is simply not true:Everything gile writes is true.
That axiom is indisputable !
This is not true.
Like many others here, I just try not to write about things I'm not sure or I have not checked.