feat: restore manual annotation command surface

This commit is contained in:
codex
2026-08-10 09:51:00 +03:00
parent 289b262053
commit 4a84c268f8
3 changed files with 6 additions and 2 deletions
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage SchemaVersion="1.0" Name="P_Rec_Annot" Description="P_Rec_Annot Plant 3D 2026" AppVersion="0.2.8" ProductCode="b455ee6eaed79d76f084846a60ce3284" Author="NBIM"> <ApplicationPackage SchemaVersion="1.0" Name="P_Rec_Annot" Description="P_Rec_Annot Plant 3D 2026" AppVersion="0.2.9" ProductCode="b455ee6eaed79d76f084846a60ce3284" Author="NBIM">
<Components> <Components>
<!-- SeriesMin/SeriesMax and platform token are pending official/runtime verification. --> <!-- SeriesMin/SeriesMax and platform token are pending official/runtime verification. -->
<RuntimeRequirements OS="Win64" /> <RuntimeRequirements OS="Win64" />
@@ -62,6 +62,8 @@ public sealed class EntryPoint : IExtensionApplication
[CommandMethod("PXP-MA")] public void ShowManualAnnotationPaletteAliasCommand() => ManualAnnotationPalette.Show(); [CommandMethod("PXP-MA")] public void ShowManualAnnotationPaletteAliasCommand() => ManualAnnotationPalette.Show();
[CommandMethod("CAC1")] public void PlaceManualAnnotationCommand() => ManualAnnotationEditCommand.Run(); [CommandMethod("CAC1")] public void PlaceManualAnnotationCommand() => ManualAnnotationEditCommand.Run();
[CommandMethod("PXP-MAB")] public void InsertManualBlockCommand() => ManualBlockInsertionCommand.Run(ManualAnnotationPalette.CurrentState()); [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)] [CommandMethod("PHP_REC_AUTOMATION_START", CommandFlags.Session)]
public void AutomationStartCommand() => FirstLimitedApplyAutomationBootstrap.Arm(); public void AutomationStartCommand() => FirstLimitedApplyAutomationBootstrap.Arm();
@@ -389,6 +391,8 @@ internal static class RibbonIntegration
AddButton(source, "UpdateOrthoViewBlocks", "Update Ortho view blocks", "PXP-UOB"); AddButton(source, "UpdateOrthoViewBlocks", "Update Ortho view blocks", "PXP-UOB");
AddButton(source, "UpdateOrthoDrawings", "Update Ortho drawings", "PXP-IOD"); AddButton(source, "UpdateOrthoDrawings", "Update Ortho drawings", "PXP-IOD");
AddButton(source, "SwapAttributes", "Swap attributes", "PXP-AC"); 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"); AddButton(source, "ManualPalette", "Manual annotations", "mto-ma");
tab.Panels.Add(new RibbonPanel { Source = source }); tab.Panels.Add(new RibbonPanel { Source = source });
RuntimeDiagnostics.Write("RibbonInitializationCompleted", resultStatus: "Created"); RuntimeDiagnostics.Write("RibbonInitializationCompleted", resultStatus: "Created");
@@ -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 { $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 } [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 $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.' Write-Host 'Bundle assembly build completed; deployment is intentionally not performed.'