Yes.. however for my purpose acdbSetDbmod is better.
pushDbMod / popDbMod assumes that 'you' are making or have control over the
changes between the push/pop, which in my case, I don't.
From the documentation "NOTE In order to avoid overwriting DBMOD flags set
by other applications, try to avoid having a DBMOD value pushed when your
code loading an application is doing anything which might cause another
application to be loaded, including loading of DWG or DXF files, acedCmd()
invocation of application-defined commands, and direct loading of
applications"
I can't ensure that I won't cause the case in the NOTE.
--
Thanks,
Martin Schmid, EIT, CCSA, MCDBA, MCSE
"Tony Tanzillo" wrote in message
news:8A6B354E30694826394E250ED53D4E1D@in.WebX.maYIadrTaRb...
> I'm not sure I understand. That is what the previous two
> functions I mentioned are for (pushdbMod and popDbmod).
>
> You call pushDbmod() before you change anything, and then
> call popDbmod() after you're done.
>
> --
> AcadXTabs: Document Tabs for AutoCAD
> http://www.acadxtabs.com
>
>
> "Martin Schmid" wrote in message
> news:6214FE21756A625B0435E946BB5B8537@in.WebX.maYIadrTaRb...
> > Yup... That appears to be what I need. The problem is that the (idiots)
> > that setup our office's cad system as a 'feature' that dumps in all the
> > standard linetypes and sets various variables when a drawing is open (in
the
> > MNL or some file.. haven't tracked it down yet). This is annoying, and
> > poses a problem when using pack and go (i.e., you must save first..
etc).
> > However, I have come up with another work around, but it always nice to
know
> > about undocumented functions!
> >
> >
> >
> > --
> > Thanks,
> > Martin Schmid, EIT, CCSA, MCDBA, MCSE
> > "Tony Tanzillo" wrote in message
> > news:22E44B538C2C5C81E2D04D2F7C23C7BF@in.WebX.maYIadrTaRb...
> > > Do you mean you want to change DBMOD to 0 and leave it that way?
> > >
> > > In that case, you can use this undocumented export:
> > >
> > > extern long acdbSetDbmod(class AcDbDatabase* pDb, long newVal);
> > >
> > >
> > > --
> > > AcadXTabs: Document Tabs for AutoCAD
> > > http://www.acadxtabs.com
> > >
> > >
> > > "Martin Schmid" wrote in message
> > > news:84C173FAFCBA99534046626F90712ACA@in.WebX.maYIadrTaRb...
> > > > I don't follow... if the dbmod variable is already a value other
than 0,
> > and
> > > > I push that variable (ie, the documentation states that I can't pop
'til
> > I
> > > > push, and trying to results in 'eIllegalReplacement'), any
subsequent
> > > > change, other than a save, will result in dbmod still being !=0.
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Martin Schmid, EIT, CCSA, MCDBA, MCSE
> > > > "Tony Tanzillo" wrote in message
> > > > news:B4FC33B95E281090CD0E0F1812ACBF00@in.WebX.maYIadrTaRb...
> > > > > AcApDocument::pushDbmod() and
> > > > > AcApDocument::popDbmod()
> > > > >
> > > > > --
> > > > > AcadXTabs: Document Tabs for AutoCAD
> > > > > http://www.acadxtabs.com
> > > > >
> > > > >
> > > > > "Martin Schmid" wrote in
message
> > > > > news:18C6079C92D13C9C8693586FE48B75D4@in.WebX.maYIadrTaRb...
> > > > > > According to the documentation DBMOD is read-only, however, I
would
> > like
> > > > to
> > > > > > be able to perform and operation other than save to reset this
> > property
> > > > to
> > > > > > 0. Is this possible w/ Arx 2000?
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks,
> > > > > > Martin Schmid, EIT, CCSA, MCDBA, MCSE
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>