# Freecad Automation Extract Geometry Properties

> Sub-skill of freecad-automation: Extract Geometry Properties (+2).

- Skill: `vamseeachanta/freecad-automation-extract-geometry-properties` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/freecad-automation-extract-geometry-properties`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/freecad-automation-extract-geometry-properties/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/freecad-automation-extract-geometry-properties

---


# Extract Geometry Properties (+2)

## Extract Geometry Properties


```python
import FreeCAD
import Part

def extract_geometry_properties(doc_path):
    """Extract geometric properties from FreeCAD document."""
    doc = FreeCAD.openDocument(doc_path)
    results = {}

    for obj in doc.Objects:

*See sub-skills for full details.*

## Export Formats and CLI


```bash
# Export STEP from command line
freecadcmd -c "
import FreeCAD, Part
doc = FreeCAD.openDocument('model.FCStd')
Part.export(doc.Objects, 'output.step')
"

# Export STL
freecadcmd -c "
import FreeCAD, Mesh
doc = FreeCAD.openDocument('model.FCStd')
Mesh.export(doc.Objects, 'output.stl')
"
```

## Parse STEP/IGES Output Metadata


```python
import Part

def parse_export_stats(export_path):
    """Parse exported file and return statistics."""
    shape = Part.read(export_path)
    return {
        "solids": len(shape.Solids),
        "shells": len(shape.Shells),
        "faces": len(shape.Faces),

*See sub-skills for full details.*

