Overview
This guide covers maintaining data integrity, restoring missing items, and troubleshooting common issues in FireCAD projects.
Routine Maintenance
Deleting Orphaned Records
Orphaned records are database entries for entities that no longer exist in the drawing:
- Type
ATDELETE_ORPHANS - FireCAD automatically:
- Validates all segments and devices
- Removes orphaned circuit devices, circuits, device types, and assembly configurations
- Updates all labels
Run this periodically, especially after deleting entities directly in AutoCAD (bypassing FireCAD commands).
Cleaning Up Database Instances
If you experience database connection errors:
- Type
ATCLEANUP_REPOSITORIES - Orphaned SQL Server LocalDB instances are cleaned up
Resetting Conduit IDs
If conduit IDs become inconsistent or duplicated:
- Type
ATRESET_CONDUITIDS - All conduit IDs are cleared and recalculated
- Labels refresh automatically
Restoring Missing Items
Restoring a Missing Drawing
If a .dwg file is lost or corrupted but the project database still has the data:
- Type
ATRESTORE_MISSING_DRAWING - Select a template (
.dwt) or drawing (.dwg) file as the base - FireCAD recreates all devices and segments from the database
- Wirepaths are rerouted and labels regenerated
What gets restored: Devices, segments, circuits, connections What is NOT restored: Custom geometry, annotations, title block customizations
Restoring Missing Devices
If device blocks were accidentally erased but database records remain:
- Type
ATRESTORE_MISSING_DEVICES - FireCAD scans for discrepancies and recreates missing device blocks
- Devices appear at their original positions with original attributes
- Run
ATVALIDATEafterward to verify integrity
Restoring Missing Segments
If wirepath segments were accidentally erased:
- Type
ATRESTORE_MISSING_SEGMENTS - Missing segment blocks are recreated from database records
- Run
ATREROUTE_WIREPATHSto recalculate routing - Run
ATREFRESH_LABELSto update labels
If both devices and segments are missing, restore devices first, then segments.
Troubleshooting Decision Tree
| Symptom | Action |
|---|---|
| Missing drawing file | ATRESTORE_MISSING_DRAWING |
| Devices disappeared from drawing |
ATRESTORE_MISSING_DEVICES then ATVALIDATE
|
| Segments disappeared from drawing |
ATRESTORE_MISSING_SEGMENTS then ATREROUTE_WIREPATHS
|
| Orphaned database records | ATDELETE_ORPHANS |
| Corrupted metadata/XData |
ATUTILS_CLEAR_ALL_XRECORDS then ATVALIDATE
|
| Incorrect conduit IDs | ATRESET_CONDUITIDS |
| Database connection errors | ATCLEANUP_REPOSITORIES |
| Labels not displaying correctly |
ATREFRESH_LABELS or ATREFRESH_LABELS_FULL
|
| Wirepath routing is tangled | ATREROUTE_WIREPATHS |
| Design rule violations | ATDESIGN_ASSISTANT |
| Need to restart wirepaths |
ATDELETE_ALL_SEGMENTS then ATAUTO_DRAW_CIRCUIT_WIREPATH
|
Standard Troubleshooting Sequence
When data integrity issues arise, follow this sequence:
-
Validate — Type
ATVALIDATEto sync drawing with database -
Clean up — Type
ATDELETE_ORPHANSto remove orphaned records -
Check design — Type
ATDESIGN_ASSISTANTto identify remaining issues - Fix issues — Address each problem identified
- Revalidate — Click Recheck in the Design Assistant to confirm fixes
Clearing XRecords (Last Resort)
If metadata is severely corrupted:
- Type
ATUTILS_CLEAR_ALL_XRECORDS - All FireCAD metadata is removed from drawing entities
-
Immediately run
ATVALIDATEto rebuild metadata
Use this only as a last resort — it removes all FireCAD extended data from the drawing.
Deleting All Segments (Fresh Start)
If segment data is severely corrupted and needs a complete restart:
- Type
ATDELETE_ALL_SEGMENTS - Confirm the destructive operation
- All segment entities and database records are permanently removed
- Circuit connections remain intact
- Type
ATAUTO_DRAW_CIRCUIT_WIREPATHto redraw all wirepaths
Label Refresh Options
| Command | Speed | Use When |
|---|---|---|
ATREFRESH_LABELS |
Fast (~100ms) | Labels need recalculating, data hasn't changed |
ATREFRESH_LABELS_FULL |
Slower (~3-5s) | Database data has changed, need full reload |
ATREFRESH_LABELS_FULL is automatically used after operations that create new data (restoring drawings, rerouting wirepaths, duplicating drawings).
Tips
- Run
ATDELETE_ORPHANSafter any session where you deleted entities directly in AutoCAD - Always validate (
ATVALIDATE) before generating reports - Back up important drawings before running destructive operations
- The Design Assistant provides the most comprehensive view of project health
- When in doubt, the sequence Validate → Delete Orphans → Refresh Labels resolves most data consistency issues
Quick Reference
| Task | Command |
|---|---|
| Delete orphaned records | ATDELETE_ORPHANS |
| Clean up database instances | ATCLEANUP_REPOSITORIES |
| Reset conduit IDs | ATRESET_CONDUITIDS |
| Clear XRecords (last resort) | ATUTILS_CLEAR_ALL_XRECORDS |
| Delete all segments | ATDELETE_ALL_SEGMENTS |
| Restore missing drawing | ATRESTORE_MISSING_DRAWING |
| Restore missing devices | ATRESTORE_MISSING_DEVICES |
| Restore missing segments | ATRESTORE_MISSING_SEGMENTS |
| Fast label refresh | ATREFRESH_LABELS |
| Full label refresh | ATREFRESH_LABELS_FULL |
What's Next
- Validating Your Design — Run the Design Assistant after maintenance
- Your First Project — Review the initial setup workflow
FireCAD is the industry-leading AutoCAD add-in for fire alarm system design — from circuit layout to wire routing to code-compliant reports.
Learn more and get started at getfirecad.com →
Inspect Point Integration — Fire alarm system device lists and bill of materials can be pushed directly from FireCAD into Inspect Point, eliminating manual data entry and ensuring every device is ready for inspection scheduling and ongoing asset management.
Learn more here →