------------------------------------------------------------------------------
DOBT - DrawOrder By object Type - changes DO by defined object types
(C)2025, ARKANCE (CAD Studio)     www.arkance.world  www.cadforum.cz
------------------------------------------------------------------------------

The DOBT utility (command) automatically sets draworder of drawing objects
according to the predefined order from the DOBT.TAB definition file. You
can set the order by object types (e.g. Texts always above Hatches) or
layer names (e.g. Annot* always above Walls*) or by a combination of these
(e.g. Hatches in the layers Rent* always above AEC_Walls). You can also
set draworder of specific blocks.
The draworder is achieved by sinking the individual groups to the bottom or
by rising them to the top.

Usage:
Load the DOBT utility (e.g. with the APPLOAD command). Prepare (edit) the 
DOBT.TAB text file and make sure it is stored in a folder searched in 
AutoCAD support paths.

Then just type the "DOBT" command. It will move the requested entities and
set the draworder.


Format of DOBT.TAB definiion file
The DOBT.TAB is a text file - each line defines a specific filter. The
drawing objects are then set in the order of DOBT.TAB lines - objects in the
first lines will be sinked first - so they stay at the 'top' (resp. the
individual lines are sent to the bottom one by one).
Optionally you can switch the method to rising the object groups to the top
- by specifying the line "^^^^^^". You can also combine these methods.

Each line in DOBT.TAB is in the format:

object_type [layer_filter] [block_name]

where:
object_type  - the exact name of the drawing entity type (see below), e.g.
               LINE, TEXT, HATCH, AEC_CURTAIN_WALL_LAYOUT, etc. ("*" selects
               all)
layer_filter - the optional layer specification - only objects laying in
               this layer(s) will be processed (you can use wildcards - 
               "*"/"?", plus lists - "LAY1,LAY2")
block_name   - the optional block name specification (layer must be
               specified, even with "*") if object_type is "BLOCK" - only
               static block references of this name will be processed


You can also effectively use only the layer specification - and thus set
the draworder by layer - just use the "*" wildcard as the object_type -
e.g.: "* TOPLAYER".


Notes:
When you prepare the DOBT.TAB definition file and you are not sure of the
type of a specific drawing object, use the "DOBT?" command - it will display
the type-name of a picked entity.

You can select an alternative DOBT.TAB file by setting the DO:DOBTTAB
LISP variable or using the dialog-based command "DOBT!". E.g.:
(setq DO:DOBTTAB "X:\\mytables\\DOBT2.TAB")

DOBT does not handle nested objects - e.g. objects embeded in blocks or
xrefs.

You cannot mix order of modelspace and paperspace entities - you can only
plot paperspace entities last or first. Do not use DOBT from layouts
switched to a modelspace view.

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

----------------------------------------------------
Contact:
Arkance Systems CZ s.r.o.
Libalova 2348/1, 149 00 Praha, Czech Republic
info.cz@arkance.world
www.arkance.world   www.cadforum.cz




------------------------------------------------------------------------------
DOBT - DrawOrder By object Type - mn poad objekt dle jejich typu
(C)2025, ARKANCE (CAD Studio)      www.arkance.world  www.cadforum.cz
------------------------------------------------------------------------------

Aplikace (pkaz) DOBT automaticky nastavuje poad kreslen (draworder)
vkresovch objekt podle jejich typu, a to dle peddefinovanho nastaven
v defininm souboru DOBT.TAB. Poad mete nastavit dle typu objektu
(nap. Texty vdy nad rafami) nebo dle nzv hladin (nap. hladiny Popis*
vdy nad hladinami Steny*) nebo dle kombinaci obou (nap. rafy v hladinch
Pronajem* vdy nad objekty typu AEC_Walls). Mete rovn nastavit poad
konkrtnch blok.
Poad je mnno "potpnm" jednotlivch skupin dospod nebo "vyzdvihovnm"
vzhru.

Pouit:
Natte aplikaci DOBT (nap. pkazem APLTI). Pipravte si (upravte) textov
soubor DOBT.TAB a ujistte se, e je uloen v adresi prohledvanm v rmci
cest podprnch soubor AutoCADu (support paths).

Pak spuste (napite) pkaz "DOBT". Pesune poadovan entity a nastav jejich
poad.


Formt souboru DOBT.TAB
DOBT.TAB je textov soubor - kad jeho dek definuje urit filtr. Poad
objekt ve vkresu je pak nastaveno podle poad pslunch dk v souboru
DOBT.TAB - objekty v prvn dcch budou umstny navrch (resp. jsou jednotliv
dky postupn potpny dospod - a posledn dek bude vespod).
Voliteln mete metodu pepnout na vyzdvihovn skupin objekt nahoru - a to
zadnm dku "^^^^^^". Metody mete i kombinovat.

Kad dek je ve formtu:

object_type [layer_filter] [block_name]

kde:
object_type  - pesn nzev typu vkresov entity (viz ne), nap. LINE, TEXT
               TEXT, HATCH, AEC_CURTAIN_WALL_LAYOUT, atd. ("*" vybere ve)
layer_filter - voliteln specifikace filtru hladin - budou zpracovny pouze
               objekty lec v tto hladin, resp. hladinch - mete pout
               nhradn znaky "*"/"?", plus seznamy - "HLAD1,HLAD2")
block_name   - voliteln specifikace jmna bloku (hladina mus bt uvedena,
               i teba jen jako "*") pokud je object_type roven "BLOCK" - budou
               zpracovny reference statickch blok tohoto jmna

Mete t pout jen specifikaci hladiny a poad tak dit dle hladin - sta
uvst jako typ objektu nhradn znak "*" - nap. "* HORNIHLADINA".


Pozn.:
Kdy pipravujete v definin soubor DOBT.TAB a nejste si jisti typem (nzvem
typu) uritho vkresovho objektu, pouijte pkaz "DOBT?" - ten zobraz typ
ukzan entity.

Mete zvolit alternativn soubor DOBT.TAB (tabulku) nastavenm LISP promnn
DO:DOBTTAB nebo pomoc dialogovho pkazu "DOBT!". Nap.:
(setq DO:DOBTTAB "X:\\mojetabulky\\DOBT2.TAB")

DOBT nezpracovv vnoen objekty - nap. objekty v blocch nebo xrefech.

Nemete smovat poad modelovch a vkresovch entit. Mete pouze vykreslit
(PLOT) entity vkresovho prostoru jako posledn nebo prvn. Nepouvejte DOBT
z rozvren pepnutho do modelovho prostiru.

Licence: DOBT je bezplatn utilita pro zkaznky firmy ARKANCE,
nen dovoleno ji dle it, peprodvat nebo vymovat.


----------------------------------------------------
Kontakt:
Arkance Systems CZ s.r.o.
Libalova 2348/1, 149 00 Praha, esk republika
info.cz@arkance.world
www.arkance.world   www.cadforum.cz

