UnReloadDetachSelectedXrefs_vs.02

Short description

🚀 XRNET is an AutoCAD and Civil 3D .NET Framework plugin designed for fast DWG xref and raster image reference management. It helps CAD users inspect, reload, unload, detach, validate, preview, export, repair, and apply external references directly from the active drawing. The main benefit is faster drawing cleanup, better xref control, fewer missing reference problems, and improved AutoCAD Civil 3D production workflow.
image 001

Command:

🧰 Load the plugin with NETLOAD by selecting XRNET.dll. The main command is XRNET, which opens the main modeless xref management window inside AutoCAD or Civil 3D. Additional commands include XRSPLIT for the native xref splitter interface, XRPREDEFINEDFOLDERS for saved project folder shortcuts, and XRSAVELOG for exporting the operation log. The target platform is AutoCAD and Civil 3D x64 using a C# .NET Framework 4.8 plugin.

Description:

📘 This project is a C# .NET plugin for AutoCAD and Civil 3D that focuses on external reference management. After the user loads XRNET.dll and runs XRNET, the tool scans the active DWG and collects detected DWG xrefs and raster image references.

🔍 The program displays the reference name, xref type, load status, drawing units, layer, and source file path in a practical WinForms grid. This allows the user to quickly understand which external references are loaded, unloaded, missing, attached, overlaid, raster-based, or path-related.

🧠 The user can select one or multiple references, filter the list, inspect file paths, preview selected geometry, reload references, unload references, detach references, set xref layers, save reference lists, repair paths, export CSV data, and generate diagnostic logs.

📊 The XRSPLIT command opens a dedicated xref splitter workflow. This tool can load xref list TXT files, import references from the current drawing, validate missing paths, scan folders for matching DWG files, merge list files, export selected rows, generate xref layer names, create abbreviations, re-path entries, reorder rows, and apply selected xref records back to the active DWG.

📌 Important code note: this plugin does not edit Civil 3D ProfileView, SectionView, Alignment, bands, labels, or Civil 3D styles. Its actual purpose is AutoCAD and Civil 3D xref management, raster reference management, DWG dependency cleanup, preview, export, and path validation.

Helper function: (if any)​

  • 🚀 Command registration systemCommands.cs registers XRNET, XRSPLIT, XRPREDEFINEDFOLDERS, and XRSAVELOG as AutoCAD commands for direct command-line access.
  • 🔍 Xref scanning engineXrefRepository.CollectAll() scans the active drawing database and collects DWG xrefs, raster images, reference status, type, units, layer, path, and related object data.
  • 🔄 Reload and unload logicXrefOperations.Reload() and XrefOperations.Unload() update selected drawing references or temporarily unload them to improve drawing performance and reference control.
  • 🔴 Detach logicXrefOperations.Detach() removes selected DWG xrefs or raster image references when the drawing needs cleanup or dependency reduction.
  • 📌 Apply list workflowXrefOperations.ApplyEntries() applies prepared xref records to the active drawing and restores important AutoCAD system variables after processing.
  • 🧩 Attach and type conversionApplyDwgEntry(), AttachXrefAtOrigin(), and ChangeTypeIfNeeded() attach missing references and convert xrefs between Overlay and Attached where supported.
  • 🧹 Layer automationLayerUtil.EnsureLayer() and XrefOperations.SetLayer() create or reuse organized layers and move selected references onto clean xref layers.
  • 📊 List file input and outputXrefListIO.ReadFile(), XrefListIO.SaveFile(), XrefListIO.ScanFile(), and XrefListIO.MergeByName() support repeatable xref list workflows.
  • 🧠 Xref splitter engineXrefSplitterEngine validates, merges, scans, abbreviates, re-paths, exports, and applies xref splitter entries for structured project reference management.
  • 📐 Preview builderPreviewBuilder.Build() and PreviewBuilder.BuildExternalDwgFile() generate CAD-style preview geometry from the active drawing or an external DWG file.
  • 🎨 Preview display controlXrefPreviewControl displays geometry, labels, filled areas, grid lines, background presets, zoom, pan, fit view, and empty-preview messages.
  • 🏷️ Preview color and visibility logicPreviewColorUtil.ResolveColor(), PreviewColorUtil.ResolveLineWeight100mm(), and PreviewColorUtil.IsVisible() improve CAD-like preview display behavior.
  • 🔐 Settings and diagnosticsAppSettings, UiSettingsStore, RuntimeInfo, and AppLog store predefined folders, UI settings, startup information, logs, and diagnostics under %APPDATA%\XRNET\.
  • 🟧 WinForms icon systemButtonIconFactory.cs and C3DTheme.StyleButton() assign real bitmap icons through Button.Image for reliable button icons in WinForms.

Functionalities:

  • 🚀 Open XRNET xref manager – run XRNET to open a modeless xref control panel inside AutoCAD or Civil 3D.
  • 🔍 Scan active DWG references – lists DWG xrefs and raster images with name, type, status, units, layer, and resolved path.
  • 🔄 Reload selected references – refreshes selected xrefs and raster images so the drawing uses updated external files.
  • 🟧 Unload selected references – unloads xrefs or hides raster images while keeping the reference structure available.
  • 🔴 Detach selected references – removes unwanted DWG xrefs or raster images from the active drawing.
  • 📌 Attach missing list entries – applies saved xref list entries and attaches missing DWG files at origin.
  • 🧩 Convert xref type – changes references between Overlay and Attached where the code can preserve placement.
  • 🧹 Set organized xref layers – moves references onto clean layers such as generated xref_name layers.
  • 📊 Load and save xref lists – reads and writes TXT reference lists for repeatable project workflows.
  • 📤 Export CSV reports – exports selected xref splitter rows for review, documentation, or coordination.
  • 🧠 Fix and validate paths – detects missing paths, blank paths, and path problems, then supports folder-based repair workflows.
  • 📐 Preview selected references – displays selected DWG geometry or raster-related preview data before applying changes.
  • 🔢 Zoom, pan, fit, grid, and UCS options – improves visual inspection with practical CAD-style preview controls.
  • 📝 Edit xref splitter rows – adds, deletes, reorders, validates, edits, and applies xref list entries.
  • 🏷️ Generate layers and abbreviations – creates practical layer names and short names for organized xref split lists.
  • 📘 Manage predefined folders – stores project folder shortcuts for faster file selection and relative path workflows.
  • 🔒 Use dry-run mode – checks apply actions before modifying the active drawing.
  • 🧰 Save logs and diagnostics – exports operation logs and diagnostic information for troubleshooting.
  • 🎨 Use reliable WinForms icons – displays generated bitmap button icons instead of unsupported color emoji text rendering.

Result:

✅ The final result is a productivity-focused AutoCAD and Civil 3D xref management plugin that centralizes DWG xrefs, raster images, file paths, reference status, preview, export, diagnostics, and cleanup actions in one interface. It reduces repetitive manual work, improves external reference quality control, helps detect missing or incorrect paths, supports faster project setup, improves drawing organization, and gives CAD users a more reliable workflow for managing complex Civil 3D and AutoCAD drawings.

Images, animations etc.

image 000
image 001
image 002
image 003
image 004
Pixel

Additional info:

Share this page:

Leave a Reply

Page Tag: 🏷️ 3D

  • UnReloadDetachSelectedXrefs_vs.02

    Short description 🚀 XRNET is an AutoCAD and Civil 3D .NET Framework plugin designed for fast DWG xref and raster image reference management. It helps CAD users inspect, reload, unload, detach, validate, preview, export, repair, and apply external references directly from the active drawing. The main benefit is faster drawing cleanup, better xref control, fewer…

  • RotateUcs_vs.01

    Short description 🧭 RotateUcsCs is an AutoCAD and Civil 3D C# .NET plugin that replaces a traditional RotateUCS AutoLISP DCL tool with a modeless WinForms UCS management palette. It helps users rotate UCS by typed angle, picked angle, or selected entity angle, save named UCS records, restore UCS definitions, export and import UCS data, copy…

  • ManageProfileViewStyles

    Short description 📊 Civil3DProfileViewUtils is an Autodesk Civil 3D C# .NET plugin that manages Profile View and Section View styles from a custom dark-themed Windows Forms dialog. It helps Civil 3D users apply graph styles and band set styles to multiple ProfileViews or SectionViews at once, reducing repetitive style editing and improving drawing standardization. Description:…

  • FeatureLinesStyleExtra

    Short description 🚀 CivilFeatureLines is an Autodesk Civil 3D C# .NET WPF plugin that creates Civil 3D feature lines from selected drawing objects. It improves the standard create-feature-lines-from-objects workflow by adding wildcard feature line style search, custom layer control, optional elevation assignment, source object cleanup, weed-point support, version banners, and detailed command logging for Civil…

  • C3DExploder

    Short description 🚀 C3DExploder is an AutoCAD Civil 3D C# .NET plugin project with an AutoLISP loader that converts selected Civil 3D objects into native AutoCAD geometry. The tool helps Civil 3D users create AutoCAD polylines, 3D polylines, lines, rectangles, and MText labels from supported Civil 3D entities, while logging the conversion process for QA…

  • BookmarksC3DEntities

    Short description 🔖 BookmarksC3DEntities.lsp is an AutoCAD Civil 3D AutoLISP bookmark manager that lets users save selected Civil 3D entities into a searchable navigation list. The tool stores object type, object name, color, bounding-box location, handle, and user remarks so designers can quickly zoom back to important alignments, profiles, profile views, corridors, pipes, structures, COGO…

  • CogoPointsExport

    Short description 📤 CogoPointsExport.lsp is a Civil 3D AutoLISP export utility that exports COGO point data from selected point groups to Excel or CSV. The tool helps AutoCAD Civil 3D users filter point groups, choose export columns, generate Excel workbooks, save timestamped CSV files, and speed up survey point reporting, QA checking, and project documentation.…

  • Block2CogoPoints

    Short description 📌 Block2CogoPoints.LSP is a Civil 3D AutoLISP utility that converts selected AutoCAD block references into Civil 3D COGO points. The tool reads block insertion points, transfers attribute information into point descriptions, previews Z min and Z max values, and optionally deletes the original blocks for a cleaner drawing workflow. Command: 📌 Main command:…

  • CreateBlockSelect

    Short description 🚀 CreateBlockSelect.lsp is an AutoCAD and Civil 3D AutoLISP block creation utility that converts selected drawing entities into reusable named blocks with automatic numbering, insertion-point control, layer assignment, optional MText labels, optional TAG attributes, block renaming, and a dedicated undo action. It improves CAD productivity by reducing repetitive drafting steps and helping users…

  • UnReloadDetachSelectedXrefs

    XAML code: Expand Code ↓ Select Code Copy 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="UnReloadDetachSelectedXrefs"> <src:RibbonToolTip.ExpandedContent> <StackPanel> <TextBlock Background="AntiqueWhite" TextAlignment="Left"> <Bold>Function Syntax: XRNET / XRSPLIT / XRPREDEFINEDFOLDERS / XRSAVELOG</Bold> <LineBreak/> <Bold>Version: 0 Date: 18.09.2025</Bold> <Bold>Version: 1 Date: 14.01.2026</Bold> <LineBreak/> <Bold>Version: 2 Date: 08.04.2026</Bold> <LineBreak/> <Bold>Version: 3 Date: 07.07.2026 8:55:26AM</Bold> <LineBreak/> <Hyperlink>N/A</Hyperlink> <LineBreak/> <Bold><Run Foreground="DodgerBlue">SEO Description</Run></Bold><LineBreak/>…