Turning off Single Document Interface

Turning off Single Document Interface

Anonymous
Not applicable
294 Views
3 Replies
Message 1 of 4

Turning off Single Document Interface

Anonymous
Not applicable
I need to be able to turn off single document interface such that AutoCAD
will be able to access multiple documents. The only problem is that there
is an app loaded that cannot deal with multiple documents. The SDI variable
is set to 3, and when i try to change it, my VBA dies. Does anyone know of
any way i can get AutoCAD to handle multiple documents without having to
unload the application? Any help would be appreciated...

-Rich
0 Likes
295 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Hi Rich,

If the application your referring to is ALDD, then you can't and more
importantly shouldn't.

--

Regards,

Laurie Comerford
CADApps
laurie@cadapps.com.au

"Rich Priddy" wrote in message
news:CF533FBFBEBE90C45637D52EBBB318E8@in.WebX.maYIadrTaRb...
> I need to be able to turn off single document interface such that AutoCAD
> will be able to access multiple documents. The only problem is that there
> is an app loaded that cannot deal with multiple documents. The SDI
variable
> is set to 3, and when i try to change it, my VBA dies. Does anyone know
of
> any way i can get AutoCAD to handle multiple documents without having to
> unload the application? Any help would be appreciated...
>
> -Rich
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
Actually, i'm not sure what ALDD is, but i'm very familiar with the
application that is being limited to one document, and i'm aware of the
problems that could arise if i switch it back to multiple documents. I'm
not too concerned about that, and i know how to handle everything once i'm
in multi-document mode. It's getting to that point that's giving me the
problem.

-Rich

"Laurie Comerford" wrote in message
news:A87BAA5849CBCEB79E9B3D1218D9E495@in.WebX.maYIadrTaRb...
> Hi Rich,
>
> If the application your referring to is ALDD, then you can't and more
> importantly shouldn't.
>
> --
>
> Regards,
>
> Laurie Comerford
> CADApps
> laurie@cadapps.com.au
>
> "Rich Priddy" wrote in message
> news:CF533FBFBEBE90C45637D52EBBB318E8@in.WebX.maYIadrTaRb...
> > I need to be able to turn off single document interface such that
AutoCAD
> > will be able to access multiple documents. The only problem is that
there
> > is an app loaded that cannot deal with multiple documents. The SDI
> variable
> > is set to 3, and when i try to change it, my VBA dies. Does anyone know
> of
> > any way i can get AutoCAD to handle multiple documents without having to
> > unload the application? Any help would be appreciated...
> >
> > -Rich
> >
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
Maybe I'm not addressing your question but, This works for me to turn
SDI on and off through VB code. I haven't written much code in VBA but
this may be adapted from VB to VBA.

Dim MMode As Integer
MMode = acaddoc.GetVariable("SDI") 'this turns SDI off
If MMode = 1 Then
acaddoc.SetVariable "SDI", 0
End If

Dim MMode As Integer
MMode = acaddoc.GetVariable("SDI") 'this turns on the SDI
If MMode = 0 Then
acaddoc.SetVariable "SDI", 1
End If

regards,
jm

"Rich Priddy" wrote in message
news:DA43A1709F6E37432A3E1666DA628301@in.WebX.maYIadrTaRb...
> Actually, i'm not sure what ALDD is, but i'm very familiar with the
> application that is being limited to one document, and i'm aware of the
> problems that could arise if i switch it back to multiple documents. I'm
> not too concerned about that, and i know how to handle everything once i'm
> in multi-document mode. It's getting to that point that's giving me the
> problem.
>
> -Rich
>
> "Laurie Comerford" wrote in message
> news:A87BAA5849CBCEB79E9B3D1218D9E495@in.WebX.maYIadrTaRb...
> > Hi Rich,
> >
> > If the application your referring to is ALDD, then you can't and more
> > importantly shouldn't.
> >
> > --
> >
> > Regards,
> >
> > Laurie Comerford
> > CADApps
> > laurie@cadapps.com.au
> >
> > "Rich Priddy" wrote in message
> > news:CF533FBFBEBE90C45637D52EBBB318E8@in.WebX.maYIadrTaRb...
> > > I need to be able to turn off single document interface such that
> AutoCAD
> > > will be able to access multiple documents. The only problem is that
> there
> > > is an app loaded that cannot deal with multiple documents. The SDI
> > variable
> > > is set to 3, and when i try to change it, my VBA dies. Does anyone
know
> > of
> > > any way i can get AutoCAD to handle multiple documents without having
to
> > > unload the application? Any help would be appreciated...
> > >
> > > -Rich
> > >
> >
>
0 Likes