From 4a84c268f84856db73c6061e1b465c17571bb826 Mon Sep 17 00:00:00 2001 From: codex Date: Mon, 10 Aug 2026 09:51:00 +0300 Subject: [PATCH] feat: restore manual annotation command surface --- .../P_Rec_Annot/bundle/P_Rec_Annot.bundle/PackageContents.xml | 2 +- .../P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs | 4 ++++ Plant3D2026/P_Rec_Annot/tools/Build-Bundle.ps1 | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Plant3D2026/P_Rec_Annot/bundle/P_Rec_Annot.bundle/PackageContents.xml b/Plant3D2026/P_Rec_Annot/bundle/P_Rec_Annot.bundle/PackageContents.xml index afa8393..bf38ff2 100644 --- a/Plant3D2026/P_Rec_Annot/bundle/P_Rec_Annot.bundle/PackageContents.xml +++ b/Plant3D2026/P_Rec_Annot/bundle/P_Rec_Annot.bundle/PackageContents.xml @@ -1,5 +1,5 @@ - + diff --git a/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs b/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs index eb68aa4..8836fbb 100644 --- a/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs +++ b/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs @@ -62,6 +62,8 @@ public sealed class EntryPoint : IExtensionApplication [CommandMethod("PXP-MA")] public void ShowManualAnnotationPaletteAliasCommand() => ManualAnnotationPalette.Show(); [CommandMethod("CAC1")] public void PlaceManualAnnotationCommand() => ManualAnnotationEditCommand.Run(); [CommandMethod("PXP-MAB")] public void InsertManualBlockCommand() => ManualBlockInsertionCommand.Run(ManualAnnotationPalette.CurrentState()); + [CommandMethod("CAC")] public void CreateManualAnnotationCommand() => ManualBlockInsertionCommand.Run(ManualAnnotationPalette.CurrentState()); + [CommandMethod("BJ")] public void ManualBlockJigCommand() => ManualBlockInsertionCommand.Run(ManualAnnotationPalette.CurrentState()); [CommandMethod("PHP_REC_AUTOMATION_START", CommandFlags.Session)] public void AutomationStartCommand() => FirstLimitedApplyAutomationBootstrap.Arm(); @@ -389,6 +391,8 @@ internal static class RibbonIntegration AddButton(source, "UpdateOrthoViewBlocks", "Update Ortho view blocks", "PXP-UOB"); AddButton(source, "UpdateOrthoDrawings", "Update Ortho drawings", "PXP-IOD"); AddButton(source, "SwapAttributes", "Swap attributes", "PXP-AC"); + AddButton(source, "CreateManualAnnotation", "Create manual annotation", "CAC"); + AddButton(source, "ManualBlockJig", "Manual block jig", "BJ"); AddButton(source, "ManualPalette", "Manual annotations", "mto-ma"); tab.Panels.Add(new RibbonPanel { Source = source }); RuntimeDiagnostics.Write("RibbonInitializationCompleted", resultStatus: "Created"); diff --git a/Plant3D2026/P_Rec_Annot/tools/Build-Bundle.ps1 b/Plant3D2026/P_Rec_Annot/tools/Build-Bundle.ps1 index d826739..e7aa63e 100644 --- a/Plant3D2026/P_Rec_Annot/tools/Build-Bundle.ps1 +++ b/Plant3D2026/P_Rec_Annot/tools/Build-Bundle.ps1 @@ -16,6 +16,6 @@ $moduleManifestPath=Join-Path $bundleRoot 'Contents\module-manifest.json' $files=Get-ChildItem $bundleRoot -Recurse -File | Where-Object { $_.FullName -ne $moduleManifestPath } | Sort-Object FullName | ForEach-Object { [ordered]@{ relativePath=$_.FullName.Substring($bundleRoot.Length + 1).Replace('\','/'); sha256=(Get-FileHash $_.FullName -Algorithm SHA256).Hash.ToLowerInvariant(); required=$true } } -$manifest=[ordered]@{ schemaVersion=2; package='P_Rec_Annot'; version='0.2.8'; modules=$modules; assemblies=$assemblies; files=$files } +$manifest=[ordered]@{ schemaVersion=2; package='P_Rec_Annot'; version='0.2.9'; modules=$modules; assemblies=$assemblies; files=$files } $manifest | ConvertTo-Json -Depth 5 | Set-Content (Join-Path $bundleRoot 'Contents\module-manifest.json') -Encoding utf8 Write-Host 'Bundle assembly build completed; deployment is intentionally not performed.'