﻿Civly for Revit
===============

Civly is an assistant that works inside Revit. You ask in plain words, it
reads your open model, proposes changes, and makes them once you approve.

The full guide, with pictures: https://mcp.civly.dev/setup

What you need
-------------
- A Windows PC with Revit 2024, 2025, 2026 or 2027.
- The email address your Civly invite went to. Sign in with Google, or
  with a code we email to that address (for Microsoft 365 and other work
  addresses).
- Microsoft Edge WebView2 Runtime. It is already on Windows 11 and on any
  up-to-date Windows 10. If the Civly pane says WebView2 is missing, install
  the "Evergreen Bootstrapper" from
  https://developer.microsoft.com/microsoft-edge/webview2/ and restart Revit.

1. Install
----------
   Unzip "Civly-for-Revit.zip" first (right-click, "Extract All...",
   "Extract"). Open the "CivlyRevit" folder. Close every Revit window.
   Double-click "Install Civly" (full name "Install Civly.cmd").
   If Windows shows "Windows protected your PC", click "More info", then
   "Run anyway". When the black window says "Press any key to continue",
   press Enter.

   The installer is for your Windows account only and needs no
   administrator rights. It installs Civly for every Revit year (2024 to
   2027) it finds on this PC. Running it again updates Civly and keeps
   your sign-in.

2. Open Revit and sign in
-------------------------
   Open Revit. Revit asks once about the add-in, in a box titled
   "Security - Unsigned Add-In" with Name: Civly. Click "Always Load"
   ("Load Once" also works, but Revit will ask again next time). Revit
   saves "Always Load" when you close it normally (File > Exit or the
   window's X); after a crash, or if Revit was ended from Task Manager,
   it asks once more. Civly's own updates, and running a newer installer,
   do not ask again unless that release changed the small Civly loader.

   Open a model. Click the "Civly" tab, then "Chat", then "Sign in". Your
   browser opens: sign in with Google or your work email, as the address
   your invite went to, and approve the code the pane shows. Within a few seconds the pane says
   Hello. Revit remembers the sign-in. (Have a licence key from Civly
   instead? Paste it under Account > Advanced on the Civly tab.)

3. Chat
-------
   Click "Chat" on the Civly tab. The Civly pane opens beside your model.
   Try one of these:

     Summarise this model: levels, grids and the main duct systems.
     Find duct clashes on Level 3 and propose a fix as a plan I can approve.
     Check the ducts on L3 against a ceiling at 2,700 mm and report pass/fail.

   You can select elements in Revit and refer to them, drop in a photo,
   PDF or spreadsheet, or attach the current view.

Approving changes
-----------------
   Civly reads freely. Before it changes your model it shows you what it is
   about to do on a card. Every change waits for your click on that card:
   Allow or Deny for one change, Run, Edit or Cancel for a plan. One Run
   approves exactly the steps the plan card shows. Typing "yes" never
   approves anything. Every change is a normal Revit step: Undo (Ctrl+Z)
   takes it back.

Your data
---------
   Your Revit file is never uploaded. Civly reads the model through your own
   Revit; only your messages, Civly's answers and the details it reads pass
   through Civly's server in Sydney and the AI model (Anthropic's Claude),
   which runs outside Australia. Files added with "Add file from this PC"
   (drawings, models, large files) stay on your PC and Revit opens them
   there. Photos, PDFs and small documents added with "Attach files" are
   sent with your message so Civly can read them.

If something is wrong
---------------------
   Pane says "Not signed in" or "Revit not linked"
       Click "Sign in" in the Civly pane, sign in with Google or your work
       email as the address your invite went to, and approve the code.
   "Signed out: this account is now active on <another PC>"
       Another PC took your seat. Click "Sign in" here to move it back.
   Using a licence key Civly gave you (developers and early seats only)
       "Licence key rejected": paste the key again (the whole line, no
       spaces) under Account > Advanced and Save. "This licence key is
       registered to <another PC>": a key works on one PC; email
       yash@civly.dev and we will move it.
   Status stays on "Connecting", "Reconnecting" or "Not linked"
       Your network is blocking Civly. Ask IT to allow secure web traffic
       (wss, port 443) to mcp.civly.dev.
   Installer says "Revit is open"
       Close every Revit window and run it again.
   No Civly tab in Revit
       Restart Revit and click "Always Load". Civly needs Revit 2024 or
       newer; Revit 2023 and older are not supported.
   Revit asks about Civly at every start
       Click "Always Load" (not "Load Once"), then close Revit normally
       once (File > Exit), so Revit can save the answer.
   Pane says it could not start its chat view (WebView2)
       Install the WebView2 Runtime from the link above and restart Revit.

   Anything else: reply to your Civly invite email, or write to
   yash@civly.dev, with a screenshot.
   It helps to attach the add-in's log: the newest file in
   %APPDATA%\Autodesk\Revit\Addins\<year>\revit_mcp_plugin\Logs
   (paste it into the File Explorer address bar, with your Revit year).

Removing Civly
--------------
   Close Revit. For each Revit year, open
   %APPDATA%\Autodesk\Revit\Addins\<year> (paste it into the File Explorer
   address bar, e.g. %APPDATA%\Autodesk\Revit\Addins\2026) and delete the
   file "Civly.addin" and the folder "revit_mcp_plugin". The folder
   %LOCALAPPDATA%\Civly holds the chat pane's cache and can go too.
