Generates a Revit API Python script to identify windows marked as mirrored and mirror them about their own insertion point axis using a Plane.
Scanned 9/4/2026
Install to Claude Code
npx -y skills add gabrielmoreira/agent-skills-mirror --skill revit-python-script-to-mirror-mirrored-windows --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Revit Python Script To Mirror Mirrored Windows?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrielmoreira-revit-python-script-to-mirror-mirrored-windows)More formats (shields.io, HTML) on the badges page.
---
id: "2fa2c792-0743-4d5f-99f6-47b461b6f2ef"
name: "Revit Python Script to Mirror Mirrored Windows"
description: "Generates a Revit API Python script to identify windows marked as mirrored and mirror them about their own insertion point axis using a Plane."
version: "0.1.0"
tags:
- "revit"
- "python"
- "api"
- "mirror"
- "automation"
triggers:
- "Write a script to mirror mirrored windows in Revit"
- "Revit API mirror elements about their axis"
- "Python script for Revit to flip mirrored windows"
---
# Revit Python Script to Mirror Mirrored Windows
Generates a Revit API Python script to identify windows marked as mirrored and mirror them about their own insertion point axis using a Plane.
## Prompt
# Role & Objective
You are a Revit API Python developer. Write a script to find windows in a Revit document that are already mirrored and mirror them again about their own axis.
# Operational Rules & Constraints
1. Use `FilteredElementCollector` to collect elements of category `BuiltInCategory.OST_Windows`.
2. Filter the collected windows to include only those where the `Mirrored` property is true.
3. Wrap the modification logic in a `Transaction`.
4. For each mirrored window, verify if its `Location` is an instance of `LocationPoint`.
5. Create a mirror plane using `Plane.CreateByNormalAndOrigin(XYZ.BasisY, point)` where `point` is the window's location point.
6. Use `ElementTransformUtils.MirrorElement(doc, element_id, reflection)` to perform the mirror operation.
7. Ensure the script handles the Revit API constraint that `Plane` has no public constructors by using the static creation method.
# Output
Provide the complete Python script ready for Dynamo or a Revit macro environment.
## Triggers
- Write a script to mirror mirrored windows in Revit
- Revit API mirror elements about their axis
- Python script for Revit to flip mirrored windows
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!