pi-revit 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,29 +44,43 @@ LLM provider, like any Pi session.
|
|
|
44
44
|
|
|
45
45
|
## Install
|
|
46
46
|
|
|
47
|
+
### Recommended: install from npm
|
|
48
|
+
|
|
47
49
|
Close Revit, then in PowerShell:
|
|
48
50
|
|
|
49
51
|
```powershell
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
# 1. Install the Pi package from npm. This registers the pi-revit extension and skill.
|
|
53
|
+
pi install npm:pi-revit
|
|
52
54
|
|
|
53
|
-
#
|
|
55
|
+
# 2. Go to the installed package folder.
|
|
56
|
+
cd "$env:USERPROFILE\.pi\agent\npm\node_modules\pi-revit"
|
|
57
|
+
|
|
58
|
+
# 3. Build + deploy the Revit add-in (RevitBridge.dll + the Roslyn DLLs for execute_csharp).
|
|
54
59
|
# Auto-detects every supported Revit (2025+) installed under Program Files and deploys to each.
|
|
55
60
|
# Only need the .NET SDK for the versions you have (e.g. just .NET 8 if you only run 2025/2026).
|
|
56
61
|
# For a non-default install location, pass -RevitVersion and -RevitApiPath, e.g.:
|
|
57
62
|
# ... scripts\deploy.ps1 -RevitVersion 2027 -RevitApiPath "D:\Autodesk\Revit 2027"
|
|
58
63
|
powershell -ExecutionPolicy Bypass -File scripts\deploy.ps1
|
|
59
64
|
|
|
60
|
-
#
|
|
61
|
-
pi install ./
|
|
62
|
-
|
|
63
|
-
# 3. Workspace + global pi-revit command
|
|
65
|
+
# 4. Create the workspace and global pi-revit command.
|
|
64
66
|
powershell -ExecutionPolicy Bypass -File scripts\setup-workspace.ps1
|
|
65
67
|
```
|
|
66
68
|
|
|
67
69
|
Start Revit (click **Always Load** on the unsigned add-in prompt once) and open any
|
|
68
70
|
project. No panel or ribbon appears — the add-in is headless.
|
|
69
71
|
|
|
72
|
+
### Source install
|
|
73
|
+
|
|
74
|
+
Use this if you want to run directly from the GitHub checkout instead of the npm package:
|
|
75
|
+
|
|
76
|
+
```powershell
|
|
77
|
+
git clone https://github.com/Triavision-ai/pi-revit.git
|
|
78
|
+
cd pi-revit
|
|
79
|
+
powershell -ExecutionPolicy Bypass -File scripts\deploy.ps1
|
|
80
|
+
pi install ./
|
|
81
|
+
powershell -ExecutionPolicy Bypass -File scripts\setup-workspace.ps1
|
|
82
|
+
```
|
|
83
|
+
|
|
70
84
|
## Use it
|
|
71
85
|
|
|
72
86
|
Open **any terminal** — PowerShell, CMD, or Windows Terminal — and type:
|
|
@@ -135,15 +149,28 @@ Plain `pi` from any folder also works; `pi-revit` just adds the right working fo
|
|
|
135
149
|
|
|
136
150
|
## Uninstall
|
|
137
151
|
|
|
138
|
-
|
|
152
|
+
### npm install
|
|
153
|
+
|
|
154
|
+
Close Revit, then in PowerShell:
|
|
155
|
+
|
|
156
|
+
```powershell
|
|
157
|
+
cd "$env:USERPROFILE\.pi\agent\npm\node_modules\pi-revit"
|
|
158
|
+
powershell -ExecutionPolicy Bypass -File scripts\uninstall.ps1
|
|
159
|
+
pi remove npm:pi-revit
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Source install
|
|
163
|
+
|
|
164
|
+
Close Revit, then in PowerShell from the GitHub checkout:
|
|
139
165
|
|
|
140
166
|
```powershell
|
|
141
167
|
powershell -ExecutionPolicy Bypass -File scripts\uninstall.ps1
|
|
142
168
|
```
|
|
143
169
|
|
|
144
170
|
This removes the Revit bridge add-in (every installed Revit version), the global `pi-revit`
|
|
145
|
-
command, the bridge runtime folder (`%APPDATA%\RevitBridge\`)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
171
|
+
command, and the bridge runtime folder (`%APPDATA%\RevitBridge\`). It also removes the Pi
|
|
172
|
+
package registration for source installs; npm installs should additionally run
|
|
173
|
+
`pi remove npm:pi-revit` as shown above. Your workspace at `Documents\pi-revit` (notes + session
|
|
174
|
+
history) is **preserved** — add `-RemoveWorkspace` to delete it too, or `-RevitVersion 2026` to
|
|
175
|
+
target a single Revit version. Pi itself is left installed; remove it with
|
|
176
|
+
`npm uninstall -g @earendil-works/pi-coding-agent` if you want.
|