If you need a clear, step‑by‑step guide to using the BATTORDER command in AutoCAD — what it does, how to use it, why it may fail, and useful alternatives — this article explains everything a beginner needs to reorder Block attributes reliably and avoid common problems.
What is the BATTORDER command?
BATTORDER in AutoCAD is the command used to specify the order of attributes for a block. The attribute order controls the sequence in which AutoCAD prompts for attribute values (for example when inserting a block or editing attributes). Proper attribute order is important for consistent data entry, scripts, and attribute extraction.
Key points:
- It affects the prompt sequence shown when you insert or edit a block with attributes.
- It operates on the block definition, not individual block references, so changes apply to all references of that definition.
- If you need to change the order of prompts without redefining attributes, BATTORDER is the intended tool.
How BATTORDER works — explanation and concepts
- Attribute definition vs. attribute reference: Attributes belong to the block definition (created with ATTDEF). When you insert a block, each instance contains attribute references that inherit the definition.
- Prompt order: AutoCAD remembers an internal list of attribute tags and displays them in a specific sequence. BATTORDER changes that sequence.
- Display vs. order: Changing visual positions of attribute text in the drawing does not automatically change the prompt order — BATTORDER sets the prompt order explicitly.
- Interaction with system variables:
- ATTDIA = controls whether attribute editing uses a dialog (1) or command-line prompts (0).
- ATTDISP = controls global display of attribute values (may hide attribute values).
- Block location: If a block is part of an Xref or is nested, you may need extra steps (xref reload, edit source block).
Step‑by‑step: using BATTORDER (with screenshots or examples you can follow)
Note: the screenshots are not included here — follow these textual steps in AutoCAD.
- Open your drawing that contains the block with attributes.
- Type BATTORDER at the command line and press Enter.
- (If your version supports it, you may find BATTORDER in the Express Tools menu; otherwise use the command line.)
- AutoCAD prompts: Select a block:
- Click a block reference in the drawing (any instance of the block whose attribute order you want to change) and press Enter.
- The Attribute Order dialog (or a command-line list) appears showing the current order of attribute tags for the block.
- Select an attribute name in the list, then use the Move Up / Move Down buttons to rearrange the attributes in the sequence you want.
- Move the attribute that should be prompted first to the top of the list, next to the second, and so on.
- When the order is correct, click OK (or press Enter) to save the new order to the block definition.
- Test by inserting a new block or editing an existing block reference — AutoCAD will now prompt attributes in the updated sequence.
Example (before/after):
- Before: Insert block prompts in order: ITEM, SERIAL, DATE.
- After using BATTORDER to move DATE to top: DATE, ITEM, SERIAL will now be prompted first.
Shortcut: type BATTORDER in the command line. There is no additional keyboard shortcut by default.
Alternatives and related commands
If BATTORDER is not available or not appropriate for your situation, you can use these alternatives:
- BATTMAN (Block attribute manager)
- Use to view and manage attribute definitions inside block definitions.
- Useful to edit attribute properties (tag, prompt, default) and sometimes change order depending on AutoCAD version.
- ATTEDIT / EATTEDIT (edit attributes)
- Edit attribute values in existing block references.
- ATTSYNC
- After changing an attribute definition (or reordering), run ATTSYNC to update existing block references to match the block definition.
- BEDIT (block editor) or REFEDIT
- Open the block definition and manually rearrange tags and/or attribute order if needed.
- Explode + Redefine
- As a last resort, explode the block, fix attributes, and redefine the block (use with caution—back up first).
- Command-line variant (-BATTORDER) (if supported)
- Some commands have a dash prefix to force command-line interaction; check your AutoCAD version.
Choose the method depending on whether the block is nested, in an Xref, or if your AutoCAD lacks Express Tools.
Why BATTORDER might not work and how to fix it
Common causes and solutions:
Block has no attributes:
- Cause: You selected a block that doesn’t contain attribute definitions.
- Fix: Confirm the block has attributes (use BATTMAN or BEDIT) and select correct block.
Block is in an External reference (Xref):
- Cause: You cannot edit attribute order in a referenced drawing.
- Fix: Open the source drawing (the Xref file), run BATTORDER there, save, then reload the Xref.
Block is nested inside another block:
- Cause: You selected the parent block or the nested block order is not accessible.
- Fix: Use REFEDIT to edit inside the parent block or open the nested block definition (BEDIT).
Using ATTDIA = 0 (command-line editing):
- Cause: You expected a dialog but got command-line prompts.
- Fix: Set ATTDIA = 1 to enable dialogs (if you prefer the dialog-based Attribute Order editor).
Attribute order changes are not reflected in existing block references:
- Cause: Existing instances may not update automatically.
- Fix: Run ATTSYNC and choose the block to update all references to the new definition.
Permissions / read-only drawing or external locking:
- Cause: File or layer may be locked or read-only.
- Fix: Ensure drawing is writable, unlock layers, remove protections.
AutoCAD version does not include BATTORDER (older/newer UI differences):
- Cause: Command may be part of Express Tools or altered in your version.
- Fix: Use BATTMAN, Block Editor (BEDIT), or install Express Tools if appropriate.
Attribute tags are duplicated or corrupted:
- Cause: Duplicate tags or malformed attribute definitions can block reordering.
- Fix: Use BATTMAN/BEDIT to correct duplicate tags, then run BATTORDER and ATTSYNC.
troubleshooting tips:
- Always save a backup of your drawing before making structural changes.
- Test on a copy of the block definition or a sample drawing first.
- If changes still don’t apply, try purging unused definitions (PURGE) and then retry.
Practical tips and best practices
- Keep attribute tags meaningful and consistent (e.g., TAG, SERIAL, DATE) so reordering is obvious.
- Establish a standard attribute prompt order for your office or project to avoid data entry inconsistencies.
- Use ATTSYNC after modifying attribute definitions so existing block references stay current.
- When working with Xrefs, always edit the source drawing.
- If you automate data extraction, ensure attribute order aligns with your extraction scripts or templates.
- Use Block Editor (BEDIT) for complex adjustments — it gives visual control and reduces errors.
- If you rely on dialogs, set ATTDIA = 1; for scripted workflows set ATTDIA = 0.
FAQ
How do I change attribute order for a block inside an Xref?
Open the Xref source drawing (the file that is referenced), run BATTORDER on the block in that drawing, save the source drawing, then reload the Xref in the host drawing.
Will reordering attributes break existing data in block references?
No — reordering changes only the prompt sequence in the block definition. However, if you change attribute tags or defaults, existing references may require ATTSYNC to update. Always backup before making changes.
What if BATTORDER is not available in my AutoCAD version?
Some older/newer versions or installations without Express Tools may not expose BATTORDER in the same place. Use BATTMAN, BEDIT, or install Express Tools if required. You can also manually edit the block definition and use ATTSYNC.
How do I make attribute prompts appear as a dialog instead of command‑line prompts?
Set the system variable ATTDIA = 1 to enable dialog-based attribute editing. Set ATTDIA = 0 for command-line prompts.
Can I reorder attributes programmatically or via script?
Yes — you can use AutoLISP or other automation tools to edit block definitions, or run commands in scripts. For complex needs, consult AutoCAD developer documentation and ensure you test on copies first.
After reordering, why do some block references still use the old order?
Run ATTSYNC to synchronize existing block references with the updated block definition. If the block is nested or frozen, you may need to edit it in the Block Editor or REFEDIT and then synchronize.
Is there a way to preview the new order before saving it to the block?
BATTORDER shows the list and lets you change positions before you confirm — that is the preview step. For visual confirmation, test by inserting a copy of the block in a test drawing to see the prompt order.
