Author Topic: *ANSWERED* Is a save required  (Read 2977 times)

0 Members and 1 Guest are viewing this topic.

Ron Heigh

  • Guest
*ANSWERED* Is a save required
« on: July 16, 2004, 12:45:43 PM »
Is there a variable I can check to see if a drawing needs to be saved before closing it?

Ron Heigh

  • Guest
*ANSWERED* Is a save required
« Reply #1 on: July 16, 2004, 01:26:59 PM »
Found It
Code: [Select]
DBMOD System Variable Concepts Procedures Reference
(Read-only)
Type: Integer
Not saved
Indicates the drawing modification status using bitcode. The value is the sum of the following:

1  Object database modified
4  Database variable modified
8  Window modified
16  View modified

AutoCAD resets the DBMOD value to 0 when you save the drawing.

t-bear

  • Guest
*ANSWERED* Is a save required
« Reply #2 on: July 16, 2004, 01:28:59 PM »
Hey there,Ron...try this:

Code: [Select]
DBMOD System Variable Concepts Procedures Reference
(Read-only)
Type: Integer
Not saved
Indicates the drawing modification status using bitcode. The value is the sum of the following:

1  Object database modified
4  Database variable modified
8  Window modified
16  View modified

AutoCAD resets the DBMOD value to 0 when you save the drawing.

JohnK

  • Administrator
  • Seagull
  • Posts: 10646
*ANSWERED* Is a save required
« Reply #3 on: July 16, 2004, 01:30:58 PM »
Ron, i would try the "DBMOD" variable.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Ron Heigh

  • Guest
*ANSWERED* Is a save required
« Reply #4 on: July 16, 2004, 01:31:15 PM »
Thanks T-Bear

t-bear

  • Guest
*ANSWERED* Is a save required
« Reply #5 on: July 16, 2004, 01:44:08 PM »
:lol:  :lol:  :lol:  :lol:  :lol:  :lol:  :lol:  :lol:  :lol:  :lol:  :lol:  :lol: