Function Syntax: SaveCUIX Version: 1.0 Date: 28.04.2026 4:13:20PM WEB Function Syntax: SaveCUIX Version: 2.0 🚀 SaveCUIX is an AutoCAD and Civil 3D CUIX export utility for creating a filtered customization package from the active CIVIL.cuix file. It helps CAD administrators package ribbon tabs, ribbon panels, Quick Access Toolbar content, toolbars, and double-click actions without manually editing the full CUI editor. Main Command 🧰 Run SaveCUIX in AutoCAD or Civil 3D to open the Save CUI Package dialog. The command locates CIVIL.cuix from the AutoCAD search path and creates a new filtered .cuix output file. SEO Optimized Description 📘 This AutoCAD Civil 3D customization tool exports a clean CUIX package containing only selected Dan ribbon and interface components. 📌 It is useful for CAD standards deployment, Civil 3D ribbon backup, AutoCAD workspace distribution, CUIX cleanup, and controlled customization sharing. 🔍 The script extracts the CUIX package, filters XML CUI content, and repacks the result into a new customization file. Functionalities 🔎 Automatic CIVIL.cuix detection - uses findfile to locate the source CUIX from AutoCAD support paths. 📝 DCL save dialog - lets the user choose output folder, output file name, and export content toggles. 📌 Quick Access Toolbar filter - keeps @Dan_C3DRibbon when QAT export is enabled. 🧩 Ribbon tab filter - keeps @Dan_C3D and @Dan_Acad when ribbon tab export is enabled. 🧰 Ribbon panel filter - keeps @Dan_ribbon_Acad and @Dan_ribbon_C3D when panel export is enabled. 📂 Toolbar export option - preserves all toolbars or clears ToolbarRoot.cui depending on the selected option. 🖱️ Double-click action option - preserves or clears DoubleClickRoot.cui depending on the selected option. 🔄 Hidden PowerShell rebuild - extracts the CUIX archive, edits XML content, and rebuilds the final .cuix package. 🔐 Status reporting - reports saved, failed, or timed-out status back to AutoCAD through a temporary completion file. Helper Functions 🧠 SC:FileExists, SC:ReadLine, and SC:WriteLines manage file checks, status reads, and script writing. ⏱️ SC:Timestamp and SC:RunID create unique names for output and temporary process files. 🚀 SC:LaunchViaVBS starts PowerShell through VBS so the CUIX rebuild can run without a visible console window. 📝 SC:WriteDCL builds the temporary AutoCAD dialog used by the command. Practical Result ✅ The result is a new filtered CUIX package ready for AutoCAD and Civil 3D customization deployment, ribbon distribution, workspace cleanup, or backup workflows. This improves CUIX management speed and reduces manual work when distributing selected ribbon and toolbar configurations. Important Notes ⚠️ The script contains hard-coded Dan target names and a hard-coded default save path, so these values should be adjusted for other environments. ⚠️ It depends on PowerShell, VBS, and .NET compression support to extract and rebuild the CUIX package. 🔒 Keep backups of production CUIX files before using any direct CUIX package export or replacement workflow.