Back to Guides LibraryHighway Automation
April 30, 2026 9 min read Highway Automation
Standardizing Drawing Folder Submissions: Ensuring Compliance and Eliminating Missing Numbers
Learn how to implement structured naming conventions and directory trees for CAD drawing submittals.
Drawing submittals must follow standardized folder structures to ensure drawings are easy to locate. Missing folder indexes or incorrect file naming can result in project delays.
Standardizing directory structures according to protocols like BS 1192 and ISO 19650 ensures consistent organization.
1. Directory Structures and Naming Rules
Folder names are organized hierarchically, typically separating drawings by discipline or category (e.g. alignment, drainage, details):
01_ALIGNMENT_FILES/ ├── 01_HORIZONTAL_ALIGNMENT/ └── 02_VERTICAL_PROFILE/ 02_DRAINAGE_STRUCTURES/ ├── 01_CULVERTS/ └── 02_SIDE_DITCHES/
2. DFS Tree Check Algorithm
This JavaScript function traverses a folder structure to verify that subfolders are numbered sequentially:
function verifyFolderSequences(tree) {
let errors = [];
function checkNode(node) {
if (node.children && node.children.length > 0) {
let expectedIndex = 1;
node.children.forEach(child => {
const match = child.name.match(/^(\d+)_/);
if (match) {
const index = parseInt(match[1], 10);
if (index !== expectedIndex) {
errors.push(`Gaps detected under ${node.name}. Expected index ${expectedIndex}, found ${index}`);
}
expectedIndex++;
}
checkNode(child);
});
}
}
checkNode(tree);
return errors;
}Enforcing folder numbering continuity prevents missing files and ensures organized drawing submittals.