----------------------------------------------------------------------------
DBXremVBA - removes VBA macros from all drawings in the selected folder
(C)2010, CAD Studio a.s.   http://www.cadstudio.cz    http://www.cadforum.cz
----------------------------------------------------------------------------

The DBXremVBA utility (command) cleans your AutoCAD DWG files. It scans
all your drawing files in the specified folder (and its subfolders) and
removes any VBA macros present in those DWG files.
Unwanted VBA macros may be inserted in your drawings with INSERT or by
other macros and add-on applications (sometimes also by viruses). DBXremVBA
can help in such situations. Do not forget to set macro protection and
disable macro insertion in Macro options (VBAPREF command) to prevent
further insertion of VBA macros.
The DBXscanVBA utility is an accompanying tool which scans all drawings in
the selected folder (and its subfolders) and writes a report about the
number of VBA macros present in the individual files. It does NOT make any
changes in the DWG files.


Usage:
You can run the DBXremVBA 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
its subfolders - feature added in version 1.1). You can also use the
DBXremVBAlst command to process files listed in a selected text file.

Just load the application and run the "DBXremVBA" command. Browse to the
folder you want to process.

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

DBXremVBA will remove ALL embedded VBA macros (except the "safe" ones - see
the Safe mode below) from your drawings.

The DBXscanVBA can be used similarly. The scanning version processes all
drawings in the specified folder including subfolders. The total number of
macros is reported.


Notes:
DBXremVBA was tested on AutoCAD 2008-2011. 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 
DBXremVBA 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 and SAFEVBANAME variables to keep some "safe" macros.
E.g. this setting will not delete macros with "mycompany" in their name:
(setq SAFEMODE T)
(setq SAFEVBANAME "*mycompany*")

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

NB1: Password-protected drawings will prompt for password

NB2: DBXremVBA uses the ObjectDBX library installed with AutoCAD

NB3: Drawings with no VBA macros will not be re-saved (added in V1.3)

License: DBXremVBA 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. (Xanadu)
Tylova 17, 370 01 Ceske Budejovice, Czech Republic
info@cadstudio.cz  www.cadstudio.cz  www.cadforum.cz



-----------------------------------------------------------------------------
DBXremVBA - odstran VBA makra ze vech vkres v zadan sloce
(C)2010, CAD Studio a.s.   http://www.cadstudio.cz    http://www.cadforum.cz
-----------------------------------------------------------------------------

Utilita (pkaz) DBXremVBA pomh vyistit vae DWG vkresy AutoCADu.
Prohldne vechny vkresov soubory v zadanm adresi (a jeho podadresch)
a odstran nadbyten VBA makra v tchto DWG souborech.
Nechtn VBA makra mohou bt do vaich vkres vnesena pkazem VLO nebo
pomoc jinch maker a nadstavbovch utilit (t prostednictvm makrovir).
V tchto situacch pome DBXremVBA. Nezapomete tak zapnout ochranu proti
makrovirm a vypnout vkldn maker v Monostech VBA (pkaz VBAPREF),
abyste zabrnili dalmu vnen VBA maker.
Doprovodnm nstrojem je pomcka DBXscanVBA, kter prochz vechny vkresy
v zadanm sloce (a podslokch) a vygeneruje report o potu nalezench
VBA maker v jednotlivch DWG souborech. Tato aplikace NEPROVD dn
zmny do DWG soubor.


Pouit:
Utilitu DBXremVBA 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 (a jeho podadresch -
funkce doplnna ve verzi 1.1). Nebo mete pout pkaz DBXremVBAlst pro
zpracovn vech vkres uvedench v danm textovm seznamu.

Aplikaci pouze natte a spuste pkaz "DBXremVBA". V dialogu vyberte adres,
kter chcete zpracovat a stisknte tlatko Uloit (Save).

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

Nstroj DBXremVBA odstran z vaich vkres VECHNA vloen VBA makra (krom
"bezpench" - viz reim "Safe" ne).

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


Poznmky:
DBXremVBA byl otestovn na AutoCADu 2008-2011. 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 DBXremVBA 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 promnn SAFEMODE a SAFEVBANAME pro zachovn nkterch
"bezpench" maker. Nap. toto nastaven nevymae makra s etzcem
"mojefirma" v jejich nzvu:
(setq SAFEMODE T)
(setq SAFEVBANAME "*mojefirma*")


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


Pozn1: Heslem chrnn vkresy vyzvou k zadn hesla

Pozn2: DBXremVBA pouv knihovnu ObjectDBX instalovanou s AutoCADem

Pozn3: Vkresy bez maker nejsou znovu ukldny (od verze 1.3)


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


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