loadedDLLFiles

Short description

🧩 @loadedDLLFiles is an AutoLISP utility for loading and unloading a predefined group of AutoCAD and Civil 3D .NET DLL assemblies.
βš™οΈ The loader builds each DLL path from the current USERPROFILE value and a predefined relative OneDrive path then calls NETLOAD for files that exist.
πŸ“‹ Successfully loaded DLL paths are stored in the global *loadedDLLFiles* list so the companion unload command can later call NETUNLOAD on the tracked assemblies.

Command:

Load command: loadedDLLFiles
Unload command: unloadedDLLFiles

Description:

🧩 @loadedDLLFiles is an AutoLISP utility for loading and unloading a predefined group of AutoCAD and Civil 3D .NET DLL assemblies.
βš™οΈ The loader builds each DLL path from the current USERPROFILE value and a predefined relative OneDrive path then calls NETLOAD for files that exist.
πŸ“‹ Successfully loaded DLL paths are stored in the global *loadedDLLFiles* list so the companion unload command can later call NETUNLOAD on the tracked assemblies.

Helper function: (if any)​

Comming soon …

Functionalities:

βœ… DLL existence checks – tests every configured assembly with findfile.
βœ… NETLOAD automation – loads available .NET plugins into AutoCAD.
βœ… Loaded path tracking – stores successful DLL paths in a global list.
βœ… NETUNLOAD workflow – attempts to unload every tracked assembly.
βœ… Missing file messages – reports configured DLL paths that cannot be found.
βœ… USERPROFILE portability – builds paths from the current Windows user profile.

Result:

🎯 @loadedDLLFiles provides the described AutoCAD or Civil 3D workflow.
πŸ“Œ The generated SEO description is based on the supplied source code or project files.

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="Load_dll">
 <src:RibbonToolTip.ExpandedContent>
 <StackPanel>
 <TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: loadedDLLFiles</Bold>
<LineBreak/>
<Bold>Version: 1.0 Date: 11.07.2025 7:25:17AM</Bold>
<LineBreak/>
<Bold>Version: 1.0 Date: 11.08.2026 3:22:52PM</Bold>
<LineBreak/>
<Hyperlink>N/A</Hyperlink>
<LineBreak/>		


<Bold><Run Foreground="DodgerBlue">Description</Run></Bold><LineBreak/>
<Run Foreground="White">🧩 @loadedDLLFiles is an AutoLISP utility for loading and unloading a predefined group of AutoCAD and Civil 3D .NET DLL assemblies.</Run><LineBreak/>
<Run Foreground="White">βš™οΈ The loader builds each DLL path from the current USERPROFILE value and a predefined relative OneDrive path then calls NETLOAD for files that exist.</Run><LineBreak/>
<Run Foreground="White">πŸ“‹ Successfully loaded DLL paths are stored in the global *loadedDLLFiles* list so the companion unload command can later call NETUNLOAD on the tracked assemblies.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Function Syntax</Run></Bold><LineBreak/>
<Run Foreground="White">Load command: </Run><Bold><Run Foreground="Orange">loadedDLLFiles</Run></Bold><LineBreak/>
<Run Foreground="White">Unload command: </Run><Bold><Run Foreground="Orange">unloadedDLLFiles</Run></Bold><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">Primary Workflow</Run></Bold><LineBreak/>
<Run Foreground="White">1. Run loadedDLLFiles.</Run><LineBreak/>
<Run Foreground="White">2. The routine reads the USERPROFILE environment variable.</Run><LineBreak/>
<Run Foreground="White">3. Each predefined DLL relative path is combined with the user profile path.</Run><LineBreak/>
<Run Foreground="White">4. findfile verifies that the assembly exists.</Run><LineBreak/>
<Run Foreground="White">5. Existing assemblies are loaded with NETLOAD and added to the global tracking list.</Run><LineBreak/>
<Run Foreground="White">6. Run unloadedDLLFiles to call NETUNLOAD for each tracked DLL path.</Run><LineBreak/>
<Run Foreground="White">7. The tracking list is cleared after the unload pass.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">Functionalities</Run></Bold><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">DLL existence checks</Run></Bold><Run Foreground="White"> - tests every configured assembly with findfile.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">NETLOAD automation</Run></Bold><Run Foreground="White"> - loads available .NET plugins into AutoCAD.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Loaded path tracking</Run></Bold><Run Foreground="White"> - stores successful DLL paths in a global list.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">NETUNLOAD workflow</Run></Bold><Run Foreground="White"> - attempts to unload every tracked assembly.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Missing file messages</Run></Bold><Run Foreground="White"> - reports configured DLL paths that cannot be found.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">USERPROFILE portability</Run></Bold><Run Foreground="White"> - builds paths from the current Windows user profile.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DarkRed">Important Notes</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">Five DLL paths are configured in the current source.</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">The paths are predefined relative to USERPROFILE and must match the actual OneDrive deployment structure.</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">NETUNLOAD availability and the ability to unload a particular assembly depend on the AutoCAD environment and plugin state.</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">The utility does not provide version validation before loading a DLL.</Run></Bold><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="Yellow">SEO Keywords</Run></Bold><LineBreak/>
<Run Foreground="Yellow">🏷️ AutoCAD  🏷️ Civil 3D  🏷️ AutoLISP  🏷️ DLL loader  🏷️ NETLOAD  🏷️ NETUNLOAD  🏷️ USERPROFILE  🏷️ ProfileLevels  🏷️ LayerFilterImportExport  🏷️ CAD plugin management</Run><LineBreak/>


</TextBlock>
 
 <!-- Use MediaElement for GIF (static first frame) and Image as fallback -->

 
 </StackPanel>
 </src:RibbonToolTip.ExpandedContent>
 </src:RibbonToolTip>
 
 
 <src:RibbonToolTip x:Key="Unload_dll">
 <src:RibbonToolTip.ExpandedContent>
 <StackPanel>
 <TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: unloadedDLLFiles</Bold>
<LineBreak/>
<Hyperlink>N/A</Hyperlink>
<LineBreak/>		


<Bold>Description</Bold><LineBreak/>	
This AutoLISP program provides two commands to <Span Foreground="Red">load</Span> and <Span Foreground="Red">unload</Span> specified DLL files into AutoCAD using <Span Foreground="DarkRed">NETLOAD</Span> and <Span Foreground="DarkRed">NETUNLOAD</Span>.<LineBreak/>

<Span Foreground="Red">Unload DLL files (using NETUNLOAD).</Span>
	<LineBreak/>

It is designed to manage custom .NET plugins stored in a user’s OneDrive path.<LineBreak/>	

<Bold>Functionalities:</Bold><LineBreak/>	
β€’ <Span Foreground="DarkRed">loadedDLLFiles</Span> command:<LineBreak/>	
  – Retrieves the user’s <Span Foreground="Red">USERPROFILE</Span> path.<LineBreak/>	
  – Defines a list of relative paths to required DLL files.<LineBreak/>	
  – Checks if each DLL exists, and if found, loads it with <Span Foreground="DarkRed">NETLOAD</Span>.<LineBreak/>	
  – Tracks loaded DLLs in the global variable <Span Foreground="DarkRed">*loadedDLLFiles*</Span>.<LineBreak/>	
  – Prints a confirmation message for each successfully loaded DLL.<LineBreak/>	
β€’ <Span Foreground="DarkRed">unloadedDLLFiles</Span> command:<LineBreak/>	
  – Iterates over all DLLs stored in <Span Foreground="DarkRed">*loadedDLLFiles*</Span>.<LineBreak/>	
  – Unloads them using <Span Foreground="DarkRed">NETUNLOAD</Span>.<LineBreak/>	
  – Clears the tracking variable after unloading all files.<LineBreak/>	
  – Prints a confirmation message for each unloaded DLL.<LineBreak/>	

<Bold>Important Commands &amp; Variables:</Bold><LineBreak/>	
β€’ <Span Foreground="DarkRed">getenv</Span> – Retrieves environment variables like USERPROFILE.<LineBreak/>	
β€’ <Span Foreground="DarkRed">findfile</Span> – Checks if a file exists at a specified path.<LineBreak/>	
β€’ <Span Foreground="DarkRed">command</Span> – Executes AutoCAD commands such as NETLOAD and NETUNLOAD.<LineBreak/>	
β€’ <Span Foreground="DarkRed">strcat</Span> – Concatenates path strings.<LineBreak/>	
β€’ <Span Foreground="DarkRed">*loadedDLLFiles*</Span> – Global list storing paths of loaded DLL files.<LineBreak/>	


</TextBlock>
 
 <!-- Use MediaElement for GIF (static first frame) and Image as fallback -->

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

Additional info:

Share this page:

Leave a Reply

Page Tag: 🏷️ NETUNLOAD

  • loadedDLLFiles

    β€”

    by

    Short description🧩 @loadedDLLFiles is an AutoLISP utility for loading and unloading a predefined group of AutoCAD and Civil 3D .NET DLL assemblies. βš™οΈ The loader builds each DLL path from the current USERPROFILE value and a predefined relative OneDrive path then calls NETLOAD for files that exist. πŸ“‹ Successfully loaded DLL paths are stored in…