----------------------------------------------------------------------------
DBXremSL - removes annotation scale lists in all drawings in selected folder
(C)2013, CAD Studio a.s.     http://www.cadstudio.cz  http://www.cadforum.cz
----------------------------------------------------------------------------

The DBXremSL utility (command) cleans your AutoCAD 2008 DWG files. It scans
all your drawing files in the specified folder and removes the excessive
annotation scales present in those DWG files.
AutoCAD 2008 (SP0, Civil3D with SP1) inserts annotation scales from attached
Xrefs. After several edit sessions, this process can lead to bloated DWGs
which are loading slowly. DBXremSL can help in such situations. Do not
forget to apply SP1 (or higher; Civil3D SP2 or higher) to prevent Xrefs
further extending of your annotation scale lists.
The DBXscanSL utility is an accompanying tool which scans all drawings in
the selected folder (and its subfolders) and writes a report about the
number of annotation scales present in the individual files. It does NOT
make any changes in the DWG files.


Usage:
You can run the DBXremSL utility in an empty drawing - unlike other utilites,
it will not process the active drawing but the DWG files in the specified
directory. All DWG files present in that directory will be processed (and no
subfolders).

Just load the application and run the "DBXremSL" command. Browse to the
folder you want to process. (5/2009: respects FILEDIA)

The process of removing scale lists can be destructive and there is NO UNDO -
please use it always only on COPIES of your original drawings!

DBXremSL will remove ALL scale definitions (except the default ones) from
your drawings - whether they are used or not. Please see also the Safe mode
below.

The DBXscanSL can be used similarly. The scanning version processes all
drawings in the specified folder including subfolders. The total number of
scales is reported, and the number of "*_XREF_XREF*" scales.


Notes:
DBXremSL was tested on AutoCAD 2008. It will probably run also with other
versions and AutoCAD flavors but these scenarios were not tested.
If your DWG files contain custom objects (e.g. from Civil3D), please run 
DBXremSL in this specific flavor of AutoCAD (= Civil3D).

Only the individual DWG files are processed, their possible external
references (xrefs) are not included automatically (you have to re-run the
tool on xrefs).

Options:
Preset the SAFEMODE variable to remove only Xref-induced scales - i.e. named
as "*_XREF_XREF*":
(setq SAFEMODE T)

Preset the VERBOSEMODE variable to enable detailed listing of performed steps:
(setq VERBOSEMODE T)

Update 5/2008: in the Full (non-SAFEMODE, the default) mode, all scales are
now deleted, except "1:1"

Update 4/2009: the list of not-deleted scales can be customized (default: 1:1)
- set the ScalesToKeep LISP variable before you call DBXremSL:
(setq ScalesToKeep '("1:1" "1:5" "1:10"))

Update 4/2009: set the newDBXfolder variable to use the new browse folder
interface:
(setq newDBXfolder T)

Update 1/2016: call via LISP:
(DBXremSL1 "C:\\FolderName")
(DBXremSL2 '("C:\\Dir1\\File1.dwg" "C:\\Dir2\\File2.dwg"))

NB1: Password-protected drawings will prompt for password

NB2: DBXremSL uses the ObjectDBX library installed with AutoCAD


License: DBXremSL is a free utility by CAD Studio,
do not publish it online on other than CAD Studio's
web servers, do not sell, lend or exchange it.

----------------------------------------------------
Contact:
CAD Studio a.s.
Tylova 17, 370 01 Ceske Budejovice, Czech Republic
info@cadstudio.cz  www.cadstudio.cz  www.cadforum.cz



-----------------------------------------------------------------------------
DBXremSL - odstran seznam mtek anotac ve vech vkresech v zadan sloce
(C)2013, CAD Studio a.s.    http://www.cadstudio.cz    http://www.cadforum.cz
-----------------------------------------------------------------------------

Utilita (pkaz) DBXremSL pomh vyistit vae DWG vkresy AutoCADu 2008.
Prohldne vechny vkresov soubory v zadanm adresi a odstran nadbyten
mtka poznmek v seznamech mtek v tchto DWG souborech.
AutoCAD 2008 (SP0, Civil3D se SP1) vkld mtka anotac z pipojench Xref.
Po nkolika editacch to me vst k nrstu objemu DWG vkres a jejich 
pomalmu natn. V tchto situacch pome DBXremSL. Nezapomete tak 
aplikovat SP1 (nebo vy; Civil3D SP2 nebo vy) abyste zabrnili dalmu 
vnen mtek z Xref.
Doprovodnm nstrojem je pomcka DBXscanSL, kter prochz vechny vkresy
v zadanm sloce (a podslokch) a vygeneruje report o potu nalezench
mtek anotac v jednotlivch DWG souborech. Tato aplikace NEPROVD dn
zmny do DWG soubor.


Pouit:
Utilitu DBXremSL mete spoutt v przdnm vkresu - na rozdl od jinch LISP
utilit nezpracovv aktivn vkres, ale DWG soubory v zadanm adresi.
Zpracuje vechny DWG soubory ptomn v zadanm adresi (bez podadres).

Aplikaci pouze natte a spuste pkaz "DBXremSL". V dialogu vyberte adres,
kter chcete zpracovat a stisknte tlatko Uloit (Save). (5/2009: respektuje
nastaven FILEDIA)

Proces odstraovn seznamu mtek me bt destruktivn a neexistuje funkce
ZPT - proto prosm pracujte vdy jen s KOPIEMI vaich originlnch vkres!

Nstroj DBXremSL odstran z vaich vkres VECHNY definice mtek (krom
implicitnch) - a ji jsou pouvny nebo ne. Viz t ne - reim "Safe".

Aplikaci DBXscanSL lze pout podobnm zpsobem. Skenovac verze prochz
vechny vkresy v zadanm adresi i podadresch.


Poznmky:
DBXremSL byl otestovn na AutoCADu 2008. Bude pravdpodobn fungovat i na
jinch verzch AutoCADu a jeho profesnch verzch, ale tyto postupy nebyly
otestovny.
Pokud vae vkresy obsahuj profesn objekty (nap. z Civil3D), spoutjte
prosm DBXremSL pmo v patin vertikln verzi AutoCADu (= Civil3D).

Jsou zpracovvny vdy jen individuln DWG soubory, jejich mon extern
reference (xrefy) nejsou automaticky zahrnuty do zpracovn (utilitu muste
na xrefy spustit separtn).

Monosti:
Pedem nastavte promnnou SAFEMODE pro odstraovn jen mtek zanesench
z Xref - tedy pojmenovanch "*_XREF_XREF*":
(setq SAFEMODE T)

Pedem nastavte promnnou VERBOSEMODE pro podrobnj vpis provdnch krok:
(setq VERBOSEMODE T)

Update 5/2008: v plnm reimu (ne-SAFEMODE, implicitn) jsou vymazna vechna
mtka krom "1:1"

Update 4/2009: seznam nevymazvanch mtek lze nyn upravit (implicitn: 1:1)
- ped volnm DBXremSL nastavte LISP promnnou ScalesToKeep:
(setq ScalesToKeep '("1:1" "1:5" "1:10"))

Update 4/2009: pro vyuit novho rozhran pro volbu sloky nastavte promnnou
newDBXfolder:
(setq newDBXfolder T)

Update 1/2016: voln pes LISP:
(DBXremSL1 "C:\\FolderName")
(DBXremSL2 '("C:\\Dir1\\File1.dwg" "C:\\Dir2\\File2.dwg"))


Pozn1: Heslem chrnn vkresy vyzvou k zadn hesla

Pozn2: DBXremSL pouv knihovnu ObjectDBX instalovanou s AutoCADem


Licence: DBXremSL je bezplatn utilita pro zkaznky firmy CAD Studio,
nen dovoleno ji dle it, peprodvat nebo vymovat.


----------------------------------------------------
Kontakt:
CAD Studio a.s.
Tylova 17, 370 01 esk Budjovice, esk republika
info@cadstudio.cz  www.cadstudio.cz  www.cadforum.cz
