Function Syntax: CreateFolderStructure / CBS_Diag Version: 1.0 Date: 09.04.2026 N/A Function Syntax: CreateFolderStructure Version: 1.0 Version: 1.0 Date: 28.04.2026 4:11:49PM SEO Friendly Description ?? CreateFolderStructure is an AutoCAD and Civil 3D AutoLISP utility that creates a complete Help_File folder structure for a new ribbon button. It speeds up ribbon customization by scanning CIVIL.cuix, selecting the correct @Dan_ribbon_* panel, choosing the Row 1 group, and generating the required documentation and support folders automatically. Main Commands ?? Run CreateFolderStructure to open the Create Button Structure dialog and generate the folder layout. ?? Run CBS_Diag to create diagnostic output for CIVIL.cuix access, template paths, cached ribbon data, and environment checks. Functionalities ?? Scans CIVIL.cuix from the AutoCAD search path and extracts @Dan_ribbon_* ribbon panels. ?? Reads Row 1 ribbon groups, folded panels, split buttons, command buttons, and toggle buttons from RibbonRoot.cui. ?? Maps @Dan_ribbon_Acad to the main Help_File folder and maps @Dan_ribbon_XXX to the matching discipline folder. ?? Builds the final destination as {RibbonBase}\{Group}_menu\{Name}. ?? Creates a blank {Name}.lsp file and a blank Icon_{Name}.png placeholder. ?? Copies the XAML model template to {Name}.xaml and replaces the template key with T{Name}. ??? Creates screenshot folders ss_00 through ss_03. ?? Creates compiled support folders vlx_fas_00 through vlx_fas_03. ?? Saves the last selected ribbon, group, and folder name in the TEMP history file for faster repeat use. ?? Uses temporary PowerShell, VBS, DCL, and done files to keep the AutoCAD dialog workflow controlled and repeatable. Practical Result ? The final result is a ready Help_File command folder with icon, LISP, XAML, screenshot, and compiled-code support structure prepared for a new AutoCAD ribbon button. This improves CAD customization speed, standardizes ribbon-button documentation folders, and reduces manual file setup for AutoCAD and Civil 3D help-system development. Important Note The script uses hard-coded Help_File and template paths. CIVIL.cuix must be found by AutoCAD, and PowerShell/VBS execution must be allowed. The generated PNG and LISP files are placeholders. The tool creates the structure; it does not create the final command implementation.