# hallko1234/rcs-export-plugin architecture

> Architecture diagram of the GitHub repository hallko1234/rcs-export-plugin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hallko1234/rcs-export-plugin
- Repository: https://github.com/hallko1234/rcs-export-plugin

## Overview

Rcs Export is an AutoCAD plugin for reading attached RCS point clouds through Autodesk’s native API and exporting point data as PTS, XYZ, or CSV. The guided command selects a cloud and export options, then the native reader supplies point coordinates and colors to a text-file writer; quick export and metadata inspection are additional commands in the same source file. A separate Python utility converts PTS input to E57. The excerpts support these product capabilities, but do not expose every command’s implementation details.

Main entry points: [`src/ExportCommand.cs`](https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs) (Export commands), [`tools/pts_to_e57.py`](https://github.com/hallko1234/rcs-export-plugin/blob/main/tools/pts_to_e57.py) (PTS parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_plugin["AutoCAD Export Plugin"]
  node_commands["Export commands<br/>[ExportCommand.cs]"]
  node_cloud_discovery["Cloud discovery<br/>[ExportCommand.cs]"]
  node_guided_options["Guided options<br/>[ExportCommand.cs]"]
  node_native_reader["Native point reader<br/>[ExportCommand.cs]"]
  node_text_export["Text export<br/>[ExportCommand.cs]"]
  node_text_files["PTS / XYZ / CSV"]
end

subgraph group_converter["PTS Conversion"]
  node_pts_parser["PTS parser<br/>[pts_to_e57.py]"]
  node_e57_writer["E57 writer<br/>[pts_to_e57.py]"]
  node_e57_file["E57 file"]
end

node_user(("AutoCAD user"))
node_autocad["AutoCAD"]
node_native_api["AdskRcExport.dll"]
node_pts_user(("PTS converter user"))

node_user -->|"invokes"| node_commands
node_autocad -->|"hosts"| node_commands
node_commands -->|"lists clouds"| node_cloud_discovery
node_commands -->|"prompts options"| node_guided_options
node_commands -->|"reads metadata"| node_native_reader
node_guided_options -->|"configures"| node_text_export
node_commands -->|"runs export"| node_text_export
node_text_export -->|"reads points"| node_native_reader
node_native_reader -->|"calls native API"| node_native_api
node_text_export -->|"writes formats"| node_text_files
node_pts_user -->|"runs converter"| node_pts_parser
node_pts_parser -->|"passes points"| node_e57_writer
node_e57_writer -->|"writes"| node_e57_file

click node_commands "https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs"
click node_cloud_discovery "https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs"
click node_guided_options "https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs"
click node_native_reader "https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs"
click node_text_export "https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs"
click node_pts_parser "https://github.com/hallko1234/rcs-export-plugin/blob/main/tools/pts_to_e57.py"
click node_e57_writer "https://github.com/hallko1234/rcs-export-plugin/blob/main/tools/pts_to_e57.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_commands,node_cloud_discovery,node_guided_options,node_native_reader,node_text_export,node_text_files,node_user,node_pts_user toneBlue
class node_pts_parser,node_e57_writer,node_e57_file toneAmber
class node_autocad,node_native_api toneIndigo
```

## Components

### AutoCAD Export Plugin

- [Export commands](https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs): `src/ExportCommand.cs`
- [Cloud discovery](https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs): `src/ExportCommand.cs`
- [Guided options](https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs): `src/ExportCommand.cs`
- [Native point reader](https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs): `src/ExportCommand.cs`
- [Text export](https://github.com/hallko1234/rcs-export-plugin/blob/main/src/ExportCommand.cs): `src/ExportCommand.cs`
- **PTS / XYZ / CSV**

### PTS Conversion

- [PTS parser](https://github.com/hallko1234/rcs-export-plugin/blob/main/tools/pts_to_e57.py): `tools/pts_to_e57.py`
- [E57 writer](https://github.com/hallko1234/rcs-export-plugin/blob/main/tools/pts_to_e57.py): `tools/pts_to_e57.py`
- **E57 file**

### Other components

- **AutoCAD user**
- **AutoCAD**
- **AdskRcExport.dll**
- **PTS converter user**

## Connections

- AutoCAD user → Export commands: invokes (evidence: `README.md`)
- AutoCAD → Export commands: hosts (evidence: `README.md`)
- Export commands → Cloud discovery: lists clouds (evidence: `src/ExportCommand.cs`)
- Export commands → Guided options: prompts options (evidence: `src/ExportCommand.cs`)
- Export commands → Native point reader: reads metadata (evidence: `src/ExportCommand.cs`)
- Guided options → Text export: configures (evidence: `README.md`)
- Export commands → Text export: runs export (evidence: `README.md`)
- Text export → Native point reader: reads points (evidence: `README.md`)
- Native point reader → AdskRcExport.dll: calls native API (evidence: `src/ExportCommand.cs`)
- Text export → PTS / XYZ / CSV: writes formats (evidence: `README.md`)
- PTS converter user → PTS parser: runs converter (evidence: `tools/pts_to_e57.py`)
- PTS parser → E57 writer: passes points (evidence: `tools/pts_to_e57.py`)
- E57 writer → E57 file: writes (evidence: `tools/pts_to_e57.py`)
