LoadIcons

Short description

AutoCAD and Civil 3D LISP utility that copies Icon_*.png ribbon icon files from the Help_File structure into the Civil 3D support Icons folder and reloads CIVIL.cuix so updated ribbon images can appear immediately.

Command:

Main commands: LoadIcons and LoadAllIcons.

  • LoadIcons scans the configured Help_File root for Icon_*.png files, copies them to the configured Civil 3D support icon folder, and reloads CIVIL.cuix when available.
  • LoadAllIcons is an alias that runs the same workflow as LoadIcons.

Description:

LoadIcons is an AutoCAD and Civil 3D ribbon icon deployment utility written in AutoLISP. It automates the process of collecting icon files from a structured Help_File library and copying them into the Civil 3D support Icons directory used by AutoCAD ribbon buttons.

The tool recursively scans the configured source folder for files matching Icon_*.png, skips folders named ss, overwrites matching destination files, and reports the total number of copied icons. After copying, it searches for CIVIL.cuix, unloads and reloads the CUIX so the AutoCAD and Civil 3D ribbon interface can refresh the updated images.

This workflow is useful for CAD administrators, Civil 3D customization workflows, ribbon button maintenance, icon library synchronization, and Help_File based toolbar or ribbon systems.

Helper function: (if any)​

  • LI:CopyIcons recursively copies matching PNG icon files from the source folder to the destination Icons folder.
  • LI:Root stores the hard-coded Help_File source path.
  • LI:Dest stores the hard-coded Civil 3D support icon destination path.
  • findfile, CUIUNLOAD, and CUILOAD are used to locate and reload CIVIL.cuix.

Functionalities:

  • 📁 Recursively scans the configured AutoCAD Help_File folder tree.
  • 🖼️ Copies only files matching Icon_*.png.
  • 🚫 Skips folders named ss so screenshot folders are not processed.
  • 🔄 Overwrites existing destination icon files with the latest matching source files.
  • 📌 Copies all icons into the Civil 3D 2024 support Icons folder.
  • 🧩 Searches for CIVIL.cuix and reloads it to refresh ribbon icon references.
  • 📊 Displays the total number of copied icon files in the command line and completion alert.
  • ⚙️ Provides LoadAllIcons as a simple alias for the same icon loading workflow.

Result:

The result is a faster AutoCAD and Civil 3D ribbon icon refresh workflow. Instead of manually copying PNG files and reloading CUI files, the user can run LoadIcons to deploy icon updates to the support path and reload CIVIL.cuix in one operation.

Images, animations etc.

Pixel

XAML code:

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:Autodesk.Windows;assembly=AdWindows">
    
<src:RibbonToolTip x:Key="LoadIcons">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: LoadIcons / LoadAllIcons</Bold>
<LineBreak/>
<Bold>Version: 1.1 Date: 28.04.2026 4:12:54PM</Bold>
<LineBreak/>
<Hyperlink>N/A</Hyperlink>
<LineBreak/>

<Bold><Run Foreground="DodgerBlue">🚀 LoadIcons - AutoCAD Civil 3D Ribbon Icon Loader</Run></Bold><LineBreak/>
<Bold>Function Syntax:</Bold> <Bold><Run Foreground="Orange">LoadIcons</Run></Bold><LineBreak/>
<Bold>Alias Command:</Bold> <Bold><Run Foreground="Orange">LoadAllIcons</Run></Bold><LineBreak/>
<Bold>Version:</Bold> <Run Foreground="LimeGreen">8.0</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">SEO Optimized Description</Run></Bold><LineBreak/>
<Run Foreground="White">🖼️ LoadIcons is an AutoCAD and Civil 3D LISP utility for copying ribbon icon PNG files from a structured Help_File library into the Civil 3D support Icons folder.</Run><LineBreak/>
<Run Foreground="White">🔄 The command scans for </Run><Bold><Run Foreground="Orange">Icon_*.png</Run></Bold><Run Foreground="White"> files, copies them to the AutoCAD image search path, and reloads </Run><Bold><Run Foreground="Orange">CIVIL.cuix</Run></Bold><Run Foreground="White"> so updated ribbon button images can appear immediately.</Run><LineBreak/>
<Run Foreground="LimeGreen">This tool is useful for CAD managers, Civil 3D customization workflows, ribbon maintenance, icon library deployment, and automated CUIX support-file synchronization.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Main Commands</Run></Bold><LineBreak/>
<Run Foreground="White">🧰 Run </Run><Bold><Run Foreground="Orange">LoadIcons</Run></Bold><Run Foreground="White"> to copy all matching icon files and reload the Civil 3D CUIX interface when available.</Run><LineBreak/>
<Run Foreground="White">🧩 Run </Run><Bold><Run Foreground="Orange">LoadAllIcons</Run></Bold><Run Foreground="White"> as an alias for the same icon loading workflow.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">Functionalities</Run></Bold><LineBreak/>
<Run Foreground="White">📁 </Run><Bold><Run Foreground="LimeGreen">Recursive icon scan</Run></Bold><Run Foreground="White"> - searches the configured Help_File source tree for matching icon files.</Run><LineBreak/>
<Run Foreground="White">🖼️ </Run><Bold><Run Foreground="LimeGreen">PNG icon deployment</Run></Bold><Run Foreground="White"> - copies only files named </Run><Bold><Run Foreground="Orange">Icon_*.png</Run></Bold><Run Foreground="White"> into the Civil 3D support Icons folder.</Run><LineBreak/>
<Run Foreground="White">🚫 </Run><Bold><Run Foreground="LimeGreen">Screenshot folder exclusion</Run></Bold><Run Foreground="White"> - skips folders named </Run><Bold><Run Foreground="Orange">ss</Run></Bold><Run Foreground="White"> so screenshot folders are not treated as icon sources.</Run><LineBreak/>
<Run Foreground="White">🔄 </Run><Bold><Run Foreground="LimeGreen">Overwrite latest icons</Run></Bold><Run Foreground="White"> - replaces existing destination icon files with updated versions from the Help_File structure.</Run><LineBreak/>
<Run Foreground="White">📌 </Run><Bold><Run Foreground="LimeGreen">Civil 3D support path targeting</Run></Bold><Run Foreground="White"> - copies icons into the configured </Run><Bold><Run Foreground="Orange">C3D 2024 enu Support Icons</Run></Bold><Run Foreground="White"> folder.</Run><LineBreak/>
<Run Foreground="White">🧩 </Run><Bold><Run Foreground="LimeGreen">CUIX reload workflow</Run></Bold><Run Foreground="White"> - finds </Run><Bold><Run Foreground="Orange">CIVIL.cuix</Run></Bold><Run Foreground="White">, unloads it, waits briefly, and reloads it so ribbon images refresh.</Run><LineBreak/>
<Run Foreground="White">📊 </Run><Bold><Run Foreground="LimeGreen">Copy count feedback</Run></Bold><Run Foreground="White"> - reports the number of copied icons in the command line and completion alert.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Helper Functions and Variables</Run></Bold><LineBreak/>
<Run Foreground="White">🔧 </Run><Bold><Run Foreground="Orange">LI:CopyIcons</Run></Bold><Run Foreground="White"> recursively scans folders and copies matching icon files.</Run><LineBreak/>
<Run Foreground="White">📂 </Run><Bold><Run Foreground="Orange">LI:Root</Run></Bold><Run Foreground="White"> defines the hard-coded Help_File source folder.</Run><LineBreak/>
<Run Foreground="White">📌 </Run><Bold><Run Foreground="Orange">LI:Dest</Run></Bold><Run Foreground="White"> defines the hard-coded Civil 3D icon destination folder.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Practical Result</Run></Bold><LineBreak/>
<Run Foreground="White">✅ The result is a faster AutoCAD and Civil 3D ribbon icon update workflow that reduces manual copy operations, improves ribbon image maintenance, and helps keep custom CUIX toolbars visually synchronized.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DarkRed">Important Notes</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ The current routine uses hard-coded source and destination paths for the existing Help_File and Civil 3D 2024 environment.</Run><LineBreak/>
<Run Foreground="White">⚠️ Icons are copied into one flat destination folder. Duplicate icon filenames from different source folders can overwrite each other.</Run><LineBreak/>
<Run Foreground="White">⚠️ The script checks whether the destination folder exists, but it does not create missing support folders automatically.</Run><LineBreak/>
<Run Foreground="White">⚠️ Reloading </Run><Bold><Run Foreground="Orange">CIVIL.cuix</Run></Bold><Run Foreground="White"> changes the current AutoCAD or Civil 3D user interface session.</Run><LineBreak/>






</TextBlock>
            
<Grid>
<Image Source="PNG" Stretch="Uniform"/>
</Grid>

<Grid>
<MediaElement
 Source="GIF"
 Stretch="Uniform"
 Visibility="Visible"/>
 </Grid>

</StackPanel>
</src:RibbonToolTip.ExpandedContent>
</src:RibbonToolTip>
</ResourceDictionary>

Additional info:

Share this page:

Tags: 🏷️ Autocad Lisps, 🏷️ Profile_menu