pi-revit 0.4.0 → 0.5.0
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/AGENTS.md +167 -0
- package/CHANGELOG.md +465 -430
- package/README.md +604 -548
- package/bin/pi-revit.js +9 -9
- package/docs/architecture.md +271 -0
- package/docs/evaluation.md +434 -0
- package/docs/invariants.json +147 -0
- package/extensions/pi-revit/completion-monitor.ts +55 -0
- package/extensions/pi-revit/contracts.ts +146 -0
- package/extensions/pi-revit/discovery.ts +93 -0
- package/extensions/pi-revit/index.ts +342 -255
- package/extensions/pi-revit/instance-router.ts +86 -86
- package/extensions/pi-revit/platform-prompt.ts +40 -0
- package/extensions/pi-revit/scope-monitor.ts +114 -0
- package/extensions/pi-revit/script-library.ts +144 -144
- package/extensions/pi-revit/tool-catalog.ts +113 -14
- package/extensions/pi-revit/tool-documentation.ts +72 -0
- package/extensions/pi-revit/tool-schema.ts +8 -0
- package/package.json +8 -2
- package/scripts/build.ps1 +9 -9
- package/scripts/check-sdk.ps1 +66 -66
- package/scripts/check-tool-documentation.mjs +287 -0
- package/scripts/deploy.ps1 +16 -16
- package/scripts/generate-contracts.mjs +80 -0
- package/scripts/lib/platform.mjs +226 -0
- package/scripts/test-extension.mjs +15 -0
- package/skills/pi-revit/SKILL.md +30 -218
- package/skills/pi-revit/contracts.generated.json +3524 -0
- package/skills/pi-revit/references/execution-rules.md +41 -0
- package/skills/pi-revit/references/model-audit-export.md +38 -27
- package/skills/pi-revit/references/operation-recovery.md +33 -0
- package/skills/pi-revit/references/room-documentation.md +37 -26
- package/skills/pi-revit/references/tool-index.md +89 -0
- package/skills/pi-revit/references/tools/capture_view.md +62 -0
- package/skills/pi-revit/references/tools/change_element_types.md +65 -0
- package/skills/pi-revit/references/tools/create_tags.md +85 -0
- package/skills/pi-revit/references/tools/delete_elements.md +66 -0
- package/skills/pi-revit/references/tools/execute_csharp.md +81 -0
- package/skills/pi-revit/references/tools/export_documents.md +75 -0
- package/skills/pi-revit/references/tools/find_revit_tools.md +96 -0
- package/skills/pi-revit/references/tools/get_element_details.md +66 -0
- package/skills/pi-revit/references/tools/get_element_relationships.md +61 -0
- package/skills/pi-revit/references/tools/get_element_types.md +67 -0
- package/skills/pi-revit/references/tools/get_elements.md +87 -0
- package/skills/pi-revit/references/tools/get_linked_elements.md +79 -0
- package/skills/pi-revit/references/tools/get_linked_models.md +57 -0
- package/skills/pi-revit/references/tools/get_model_coordinates.md +64 -0
- package/skills/pi-revit/references/tools/get_model_health.md +53 -0
- package/skills/pi-revit/references/tools/get_model_overview.md +57 -0
- package/skills/pi-revit/references/tools/get_revit_operation.md +54 -0
- package/skills/pi-revit/references/tools/get_schedule_fields.md +62 -0
- package/skills/pi-revit/references/tools/get_schedules.md +71 -0
- package/skills/pi-revit/references/tools/manage_element_sets.md +92 -0
- package/skills/pi-revit/references/tools/manage_revit_instances.md +63 -0
- package/skills/pi-revit/references/tools/manage_revit_scripts.md +109 -0
- package/skills/pi-revit/references/tools/manage_schedules.md +90 -0
- package/skills/pi-revit/references/tools/manage_selection.md +66 -0
- package/skills/pi-revit/references/tools/manage_sheet_placements.md +82 -0
- package/skills/pi-revit/references/tools/manage_sheets.md +71 -0
- package/skills/pi-revit/references/tools/manage_views.md +95 -0
- package/skills/pi-revit/references/tools/measure_geometry.md +71 -0
- package/skills/pi-revit/references/tools/open_view.md +59 -0
- package/skills/pi-revit/references/tools/ping.md +41 -0
- package/skills/pi-revit/references/tools/query_spatial_elements.md +74 -0
- package/skills/pi-revit/references/tools/read_revit_result.md +53 -0
- package/skills/pi-revit/references/tools/search_api_docs.md +65 -0
- package/skills/pi-revit/references/tools/set_parameters.md +75 -0
- package/skills/pi-revit/references/tools/summarize_elements.md +64 -0
- package/skills/pi-revit/references/tools/transform_elements.md +79 -0
- package/skills/pi-revit/references/visual-verification.md +36 -0
- package/skills/pi-revit/tool-manifest.json +338 -0
- package/src/Revit/BridgeServer.cs +93 -87
- package/src/Revit/OperationStore.cs +178 -178
- package/src/Revit/ToolRegistry.cs +88 -57
- package/src/Revit/Tools/CaptureView.cs +10 -2
- package/src/Revit/Tools/ChangeElementTypes.cs +74 -60
- package/src/Revit/Tools/ChangeSet.cs +39 -0
- package/src/Revit/Tools/CreateTags.cs +107 -95
- package/src/Revit/Tools/DeleteElements.cs +53 -44
- package/src/Revit/Tools/DocumentGuard.cs +74 -64
- package/src/Revit/Tools/ElementNames.cs +103 -0
- package/src/Revit/Tools/ElementQueryScope.cs +27 -27
- package/src/Revit/Tools/ElementTraits.cs +53 -0
- package/src/Revit/Tools/ExecuteCsharp.cs +54 -45
- package/src/Revit/Tools/ExportDocuments.cs +129 -121
- package/src/Revit/Tools/GetElementDetails.cs +37 -41
- package/src/Revit/Tools/GetElementRelationships.cs +82 -76
- package/src/Revit/Tools/GetElementTypes.cs +8 -0
- package/src/Revit/Tools/GetElements.cs +75 -86
- package/src/Revit/Tools/GetLinkedElements.cs +89 -82
- package/src/Revit/Tools/GetLinkedModels.cs +73 -66
- package/src/Revit/Tools/GetModelCoordinates.cs +56 -49
- package/src/Revit/Tools/GetModelHealth.cs +7 -0
- package/src/Revit/Tools/GetModelOverview.cs +185 -158
- package/src/Revit/Tools/GetScheduleFields.cs +44 -37
- package/src/Revit/Tools/GetSchedules.cs +96 -89
- package/src/Revit/Tools/InheritedState.Summary.cs +57 -0
- package/src/Revit/Tools/InheritedState.cs +144 -0
- package/src/Revit/Tools/ManageElementSets.cs +114 -106
- package/src/Revit/Tools/ManageSchedules.cs +174 -164
- package/src/Revit/Tools/ManageSelection.cs +45 -37
- package/src/Revit/Tools/ManageSheetPlacements.cs +113 -97
- package/src/Revit/Tools/ManageSheets.cs +72 -63
- package/src/Revit/Tools/ManageViews.cs +115 -100
- package/src/Revit/Tools/MeasureGeometry.cs +60 -54
- package/src/Revit/Tools/ModelChanges.cs +154 -0
- package/src/Revit/Tools/ModelEditBatch.cs +105 -102
- package/src/Revit/Tools/ModelEditInputs.cs +49 -49
- package/src/Revit/Tools/OpenView.cs +9 -2
- package/src/Revit/Tools/ParameterResolver.cs +94 -0
- package/src/Revit/Tools/QuerySpatialElements.cs +70 -63
- package/src/Revit/Tools/SearchApiDocs.cs +72 -4
- package/src/Revit/Tools/SetParameters.cs +60 -79
- package/src/Revit/Tools/SpatialBounds.cs +30 -30
- package/src/Revit/Tools/SummarizeElements.cs +94 -87
- package/src/Revit/Tools/ToolContract.cs +48 -0
- package/src/Revit/Tools/ToolSupport.cs +5 -1
- package/src/Revit/Tools/TransformElements.cs +72 -57
- package/workspace/AGENTS.md +26 -20
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
namespace RevitBridge
|
|
2
|
+
{
|
|
3
|
+
/// <summary>
|
|
4
|
+
/// A declared capability boundary: something the tool deliberately does not cover and
|
|
5
|
+
/// the route to use instead. Alternative kinds: "tool" (Ref names another public tool),
|
|
6
|
+
/// "api" (Ref names Revit API members to verify with search_api_docs before custom
|
|
7
|
+
/// execution), "user" (needs a user action or decision), or "revit_unsupported" (the
|
|
8
|
+
/// Revit API itself does not offer it; Ref states the evidence). A limit never ends at
|
|
9
|
+
/// "unsupported" without a route, so agents do not report a false impossibility.
|
|
10
|
+
/// Kept in its own file so every project that compiles tool sources shares one type.
|
|
11
|
+
/// </summary>
|
|
12
|
+
internal sealed record ToolLimit(string What, string Alternative, string? Ref = null)
|
|
13
|
+
{
|
|
14
|
+
public static readonly IReadOnlyList<string> AlternativeKinds = new[] { "tool", "api", "user", "revit_unsupported" };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/// <summary>Allowed ITool.Verification values; see ITool.Verification.</summary>
|
|
18
|
+
internal static class ToolVerification
|
|
19
|
+
{
|
|
20
|
+
public static readonly IReadOnlyList<string> Kinds = new[] { "reread", "capture", "inspect_output", "none" };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/// <summary>
|
|
24
|
+
/// Document kinds a tool works in (inv:document-kind-declared). Every bridge tool declares
|
|
25
|
+
/// ITool.DocumentKinds; the dispatcher refuses any other kind before the tool runs, with the
|
|
26
|
+
/// route to use instead. Revit-free, so the refusal is tested offline.
|
|
27
|
+
/// </summary>
|
|
28
|
+
internal static class DocumentKind
|
|
29
|
+
{
|
|
30
|
+
public const string Project = "project";
|
|
31
|
+
public const string Family = "family";
|
|
32
|
+
public static readonly IReadOnlyList<string> Both = new[] { Project, Family };
|
|
33
|
+
public static readonly IReadOnlyList<string> ProjectOnly = new[] { Project };
|
|
34
|
+
|
|
35
|
+
/// <summary>Revit API route for family types, parameters and formulas; also a declared limit alternative.</summary>
|
|
36
|
+
public const string FamilyApi = "FamilyManager.Types; FamilyManager.NewType; FamilyManager.Set; FamilyManager.AddParameter; FamilyManager.SetFormula";
|
|
37
|
+
|
|
38
|
+
/// <summary>Why a tool cannot run in the active document, with the alternative; null when it can.</summary>
|
|
39
|
+
public static string? Refusal(string tool, IReadOnlyList<string> supported, string active, string title)
|
|
40
|
+
{
|
|
41
|
+
if (supported.Count == 0 || supported.Contains(active)) return null;
|
|
42
|
+
string route = active == Family
|
|
43
|
+
? $"A family document has no sheets, schedules, rooms, links or project coordinates. For family types, parameters and formulas use the Revit API: verify '{FamilyApi}' with search_api_docs, then use execute_csharp."
|
|
44
|
+
: "Open the family for editing (Document.EditFamily) or ask the user to open the family document.";
|
|
45
|
+
return $"{tool} works in {string.Join(" and ", supported)} documents; the active document '{title}' is a {active} document. Nothing was run. {route}";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -191,6 +191,10 @@ namespace RevitBridge.Tools
|
|
|
191
191
|
_ => null,
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
+
// Shared projection: special or system-owned objects are flagged for every tool
|
|
195
|
+
// that lists elements (inv:special-objects-flagged). Ordinary elements add nothing.
|
|
196
|
+
if (ElementTraits.For(element) is { } traits)
|
|
197
|
+
row["traits"] = traits;
|
|
194
198
|
return row;
|
|
195
199
|
}
|
|
196
200
|
}
|
|
@@ -259,4 +263,4 @@ namespace RevitBridge.Tools
|
|
|
259
263
|
}
|
|
260
264
|
}
|
|
261
265
|
|
|
262
|
-
}
|
|
266
|
+
}
|
|
@@ -1,58 +1,73 @@
|
|
|
1
|
-
using System.Text.Json;
|
|
2
|
-
using Autodesk.Revit.DB;
|
|
3
|
-
|
|
4
|
-
namespace RevitBridge.Tools;
|
|
5
|
-
|
|
6
|
-
internal sealed class TransformElements : ITool
|
|
7
|
-
{
|
|
8
|
-
public string Name => "transform_elements";
|
|
9
|
-
public string
|
|
10
|
-
public string
|
|
11
|
-
public
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
1
|
+
using System.Text.Json;
|
|
2
|
+
using Autodesk.Revit.DB;
|
|
3
|
+
|
|
4
|
+
namespace RevitBridge.Tools;
|
|
5
|
+
|
|
6
|
+
internal sealed class TransformElements : ITool
|
|
7
|
+
{
|
|
8
|
+
public string Name => "transform_elements";
|
|
9
|
+
public IReadOnlyList<string> DocumentKinds => DocumentKind.Both;
|
|
10
|
+
public IReadOnlyList<string> Keywords => new[] { "move", "copy", "rotate", "shift", "offset", "relocate" };
|
|
11
|
+
public IReadOnlyList<ToolLimit> Limits => new[]
|
|
12
|
+
{
|
|
13
|
+
new ToolLimit("Mirroring", "api", "ElementTransformUtils.MirrorElements"),
|
|
14
|
+
new ToolLimit("Pinned elements (move and rotate reject them)", "user", "Confirm unpinning (Element.Pinned) first"),
|
|
15
|
+
new ToolLimit("Elements inside linked models", "user", "Edit the linked model itself"),
|
|
16
|
+
};
|
|
17
|
+
public string? Verification => "reread";
|
|
18
|
+
public string Label => "Transform Elements";
|
|
19
|
+
public string Tier => "advanced";
|
|
20
|
+
public bool Write => true;
|
|
21
|
+
public string Description => "Move, copy or rotate 1–200 elements together in the active document. Coordinates use the document internal origin and axes; unit is required. Rotation uses a right-handed axis and angle_degrees. The whole selection succeeds or rolls back as one step; pinned elements are never automatically unpinned. Revit may move constrained/hosted dependents too. A copy's result reports inherited_state: values and traits the copies carried over, such as Mark, Comments, group or design-option membership. preview=true validates commit then rolls back; any created IDs in a preview are temporary and must not be reused. Snapshots describe requested elements, not a complete dependent-change audit.";
|
|
22
|
+
public object ParametersSchema => new
|
|
23
|
+
{
|
|
24
|
+
type = "object", properties = new
|
|
25
|
+
{
|
|
26
|
+
action = new { type = "string", @enum = new[] { "move", "copy", "rotate" } },
|
|
27
|
+
element_ids = ModelEditInputs.IdsSchema,
|
|
28
|
+
unit = ModelEditInputs.LengthUnitSchema,
|
|
29
|
+
translation = ModelEditInputs.VectorSchema("Move/copy displacement [x,y,z] in unit."),
|
|
30
|
+
axis_origin = ModelEditInputs.VectorSchema("Rotation axis origin [x,y,z] in unit, relative to internal origin."),
|
|
31
|
+
axis_direction = ModelEditInputs.VectorSchema("Nonzero rotation axis direction [x,y,z], dimensionless."),
|
|
32
|
+
angle_degrees = new { type = "number", description = "Signed right-hand rotation angle in degrees." },
|
|
33
|
+
preview = ModelEditInputs.PreviewSchema,
|
|
34
|
+
}, required = new[] { "action", "element_ids", "unit" },
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
public object Execute(JsonElement args, ToolContext context)
|
|
38
|
+
{
|
|
39
|
+
var doc = context.Document ?? throw new NoActiveDocumentException();
|
|
40
|
+
var ids = ModelEditInputs.Ids(args);
|
|
41
|
+
string action = JsonArgs.GetString(args, "action") ?? "";
|
|
42
|
+
if (action is not ("move" or "copy" or "rotate")) throw new ArgumentException("action must be move, copy or rotate.");
|
|
43
|
+
double scale = ModelEditInputs.LengthScale(args);
|
|
44
|
+
XYZ? translation = action != "rotate" ? ModelEditInputs.Vector(args, "translation").Multiply(scale) : null;
|
|
45
|
+
XYZ? origin = action == "rotate" ? ModelEditInputs.Vector(args, "axis_origin").Multiply(scale) : null;
|
|
46
|
+
XYZ? direction = action == "rotate" ? ModelEditInputs.Vector(args, "axis_direction") : null;
|
|
47
|
+
double angle = action == "rotate" ? ModelEditInputs.Number(args, "angle_degrees") * Math.PI / 180 : 0;
|
|
48
|
+
if (direction != null && direction.GetLength() < 1e-12) throw new ArgumentException("axis_direction must be nonzero.");
|
|
49
|
+
var result = ModelEditBatch.Run(doc, Name, args, new[] { new ModelEditBatch.Step(
|
|
50
|
+
new() { ["action"] = action, ["element_ids"] = ids.Select(x => x.Value).ToArray() }, () =>
|
|
51
|
+
{
|
|
52
|
+
var elements = ids.Select(id => doc.GetElement(id) ?? throw new ArgumentException($"Element {id.Value} not found.")).ToArray();
|
|
53
|
+
if (action != "copy" && elements.Any(e => e.Pinned)) throw new ArgumentException("Selection contains pinned elements; no elements were unpinned.");
|
|
54
|
+
var before = elements.Select(ModelEditInputs.Snapshot).ToArray();
|
|
55
|
+
ICollection<ElementId> outputIds = ids;
|
|
56
|
+
if (action == "move") ElementTransformUtils.MoveElements(doc, ids, translation!);
|
|
57
|
+
else if (action == "copy") outputIds = ElementTransformUtils.CopyElements(doc, ids, translation!);
|
|
58
|
+
else ElementTransformUtils.RotateElements(doc, ids, Line.CreateUnbound(origin!, direction!.Normalize()), angle);
|
|
59
|
+
doc.Regenerate();
|
|
60
|
+
var result = new Dictionary<string, object?> { ["before"] = before, ["after"] = outputIds.Select(doc.GetElement).Where(e => e != null).Select(ModelEditInputs.Snapshot).ToArray(),
|
|
61
|
+
["created_ids"] = action == "copy" ? outputIds.Select(id => id.Value).ToArray() : Array.Empty<long>(),
|
|
62
|
+
["coordinate_system"] = "document_internal", ["snapshot_unit"] = "feet",
|
|
63
|
+
["created_ids_are_temporary"] = action == "copy" && JsonArgs.GetBool(args, "preview", false) };
|
|
64
|
+
// Copies carry their sources' values and traits (inv:derived-state-reported). CopyElements
|
|
65
|
+
// returns copies in no guaranteed order, so each copy is reported without pairing it to one source.
|
|
66
|
+
if (action == "copy")
|
|
67
|
+
result["inherited_state"] = outputIds.Take(InheritedState.ListCap).Select(doc.GetElement).Where(e => e != null)
|
|
68
|
+
.Select(copy => new { id = copy!.Id.Value, state = InheritedState.OfElement(copy, null) }).Where(row => row.state != null).ToArray();
|
|
69
|
+
return result;
|
|
70
|
+
}) });
|
|
71
|
+
return result.Payload;
|
|
72
|
+
}
|
|
58
73
|
}
|
package/workspace/AGENTS.md
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
# pi-revit workspace
|
|
2
2
|
|
|
3
|
-
This folder tree is the working area for Pi + Revit sessions. The pi-revit tools talk to the
|
|
4
|
-
Revit bridge add-in, targeting Revit 2025, 2026, and 2027.
|
|
5
|
-
|
|
6
|
-
`
|
|
7
|
-
|
|
3
|
+
This folder tree is the working area for Pi + Revit sessions. The pi-revit tools talk to the
|
|
4
|
+
Revit bridge add-in, targeting Revit 2025, 2026, and 2027. This file owns workspace
|
|
5
|
+
and output conventions. The `pi-revit` skill and focused tool manuals own current
|
|
6
|
+
operating guidance. `find_revit_tools` with `scope: "documentation"` returns manual
|
|
7
|
+
paths even while Revit is closed. Most bridge tools require a project open; `ping`
|
|
8
|
+
and `search_api_docs` need the bridge but no document. `read_revit_result` reads
|
|
9
|
+
saved local results without contacting Revit.
|
|
8
10
|
|
|
9
11
|
## File rules — where every file goes
|
|
10
12
|
|
|
11
13
|
Work sorts by model, automatically. The export tool files its output under the model it came
|
|
12
|
-
from
|
|
14
|
+
from; it is not a decision for you or the user to make:
|
|
13
15
|
|
|
14
16
|
```text
|
|
15
17
|
Documents\pi-revit\
|
|
@@ -36,23 +38,26 @@ Documents\pi-revit\
|
|
|
36
38
|
`outputDir`. If no folder has been established, identify it from existing model
|
|
37
39
|
markers or choose an explicit destination for the task; do not trigger an
|
|
38
40
|
unnecessary export or guess a title-only folder. Create subfolders on first use.
|
|
39
|
-
3. **Never create files loose in the workspace root.** The root holds `AGENTS.md`,
|
|
41
|
+
3. **Never create files loose in the workspace root.** <!-- inv:workspace-root-clean --> The root holds `AGENTS.md`,
|
|
40
42
|
`pi-revit.cmd`, `Models\`, and Pi's own session data — nothing else, ever.
|
|
41
43
|
|
|
42
44
|
## Tool habits
|
|
43
45
|
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
+
- Distinguish explanations, inspections, and requested changes. General questions
|
|
47
|
+
need not connect to a model. An audit alone does not authorize repairs or exports.
|
|
48
|
+
- For model work, use the skill's execution rules, select the intended session,
|
|
49
|
+
and start unfamiliar models with `get_model_overview`. Discover dedicated tools
|
|
50
|
+
and read their returned manual paths and current schemas before using custom code.
|
|
46
51
|
- Copy the intended model's `project.documentId` unchanged into `expected_document_id`
|
|
47
|
-
|
|
48
|
-
selection
|
|
49
|
-
also requires it
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
and reopening a model or restarting Revit invalidates earlier IDs.
|
|
52
|
+
whenever required by the schema/runtime, including writes, previews, export,
|
|
53
|
+
view/selection changes and every `manage_sheet_placements` action. Selection
|
|
54
|
+
isolation also requires it with action `get`. Supplied IDs on reads are checked.
|
|
55
|
+
A title alone is insufficient. On rejection verify the intended target before
|
|
56
|
+
refreshing the ID; reopening a document or restarting Revit invalidates old IDs.
|
|
53
57
|
- Before `execute_csharp`, verify unfamiliar API signatures with `search_api_docs`.
|
|
54
|
-
-
|
|
55
|
-
|
|
58
|
+
- Report actual retained changes. `set_parameters` defaults to partial success;
|
|
59
|
+
previews roll back, and atomic failures roll back the batch. Read the manual and
|
|
60
|
+
distinguish `succeeded`, `proposed`, and `failed`; discard rolled-back IDs.
|
|
56
61
|
Inspect `commitWarnings` and the actual transaction outcome. A failed
|
|
57
62
|
`execute_csharp` attempts rollback; do not assume rollback succeeded. A
|
|
58
63
|
`returnValueError` can follow a committed edit. Earlier UI actions and created
|
|
@@ -65,8 +70,9 @@ Documents\pi-revit\
|
|
|
65
70
|
|
|
66
71
|
## Upgrade notes
|
|
67
72
|
|
|
68
|
-
After
|
|
73
|
+
After a package/add-in upgrade, deploy the matching add-in with Revit closed, restart Revit,
|
|
69
74
|
and start a fresh Pi session to load the new tool schemas. Obtain a new overview
|
|
70
75
|
before changing a document. Setup preserves existing `AGENTS.md`; older workspaces
|
|
71
|
-
need
|
|
72
|
-
their existing instructions.
|
|
76
|
+
need updated exact-ID, saved-result, identity-derived folder and guidance-routing
|
|
77
|
+
rules merged into their existing instructions. These are upgrade steps, not
|
|
78
|
+
actions to perform during an ordinary model question or documentation check.
|