Reset DBMOD

Reset DBMOD

Anonymous
Not applicable
1,491 Views
7 Replies
Message 1 of 8

Reset DBMOD

Anonymous
Not applicable
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
0 Likes
1,492 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
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
>
>
0 Likes
Message 3 of 8

Anonymous
Not applicable
On Thu, 4 Sep 2003 07:26:13 -0700, "Martin Schmid"
wrote:

>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?

There are 2 functions in AutoLISP that allow you to save and restore the
state of DBMOD. They are (acad-push-dbmod) and (acad-pop-dbmod). You
may have to se if there is a similar function that can be used in your
application.
0 Likes
Message 4 of 8

Anonymous
Not applicable
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
> >
> >
>
>
0 Likes
Message 5 of 8

Anonymous
Not applicable
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
> > >
> > >
> >
> >
>
>
0 Likes
Message 6 of 8

Anonymous
Not applicable
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
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 7 of 8

Anonymous
Not applicable
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
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 8 of 8

Anonymous
Not applicable
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
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes