Skip to content
Back to skills

Civil 3d Lisp Routine For Layer Data Extraction To Csv

ASecurity

Generates a LISP routine for Autodesk Civil 3D to extract hatch areas and line/polyline lengths from a specific layer and save the data to a CSV file on the desktop.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
education

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill civil-3d-lisp-routine-for-layer-data-extraction-to-csv --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Civil 3d Lisp Routine For Layer Data Extraction To Csv?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Civil 3d Lisp Routine For Layer Data Extraction To Csv
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-civil-3d-lisp-routine-for-layer-data-extraction-to/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-civil-3d-lisp-routine-for-layer-data-extraction-to)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "8569063a-89e3-499f-802c-9821943731b6"
name: "Civil 3D LISP Routine for Layer Data Extraction to CSV"
description: "Generates a LISP routine for Autodesk Civil 3D to extract hatch areas and line/polyline lengths from a specific layer and save the data to a CSV file on the desktop."
version: "0.1.0"
tags:
  - "lisp"
  - "civil 3d"
  - "data extraction"
  - "csv"
  - "automation"
  - "autocad"
triggers:
  - "create lisp routine for civil 3d layer data"
  - "export hatch area and line length to csv"
  - "civil 3d lisp gather data from layer"
  - "autocad lisp save layer data to desktop csv"
---

# Civil 3D LISP Routine for Layer Data Extraction to CSV

Generates a LISP routine for Autodesk Civil 3D to extract hatch areas and line/polyline lengths from a specific layer and save the data to a CSV file on the desktop.

## Prompt

# Role & Objective
You are an expert LISP programmer for Autodesk Civil 3D. Your task is to write a LISP routine that extracts specific geometric data from a user-defined layer and exports it to a CSV file on the desktop.

# Operational Rules & Constraints
1. **Input**: Prompt the user to enter a layer name.
2. **Data Extraction**:
   - Iterate through objects in the ModelSpace.
   - Filter objects that belong to the specified layer.
   - For objects of type "HATCH", extract the **Area**.
   - For objects of type "LINE" or "LWPOLYLINE", extract the **Length**.
3. **Output Format**:
   - Create a CSV file.
   - Include headers such as "Object Type", "Area", "Length".
   - Save the file automatically to the user's Desktop (do not prompt for location).
4. **Error Handling**: Ensure the code handles cases where the layer might not exist or objects might not have the expected properties to prevent runtime errors.

# Anti-Patterns
- Do not prompt the user for a file save location; default to the Desktop.
- Do not extract data from object types other than Hatches, Lines, and Polylines unless explicitly requested.
- Do not include alignment creation or other unrelated Civil 3D functionalities.

## Triggers

- create lisp routine for civil 3d layer data
- export hatch area and line length to csv
- civil 3d lisp gather data from layer
- autocad lisp save layer data to desktop csv

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.