diff --git a/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs b/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs index b48a270..2613cb3 100644 --- a/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs +++ b/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/EntryPoint.cs @@ -21,6 +21,7 @@ public sealed class EntryPoint : IExtensionApplication { automationQueued = true; FirstLimitedApplyAutomationBootstrap.Prepare(); + RuntimeDiagnostics.Write("AutomationBootstrapPrepared", resultStatus: "Gated"); } catch (System.Exception exception) { diff --git a/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/FirstLimitedApplyAutomation.cs b/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/FirstLimitedApplyAutomation.cs index 49a65a4..28b4200 100644 --- a/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/FirstLimitedApplyAutomation.cs +++ b/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/FirstLimitedApplyAutomation.cs @@ -39,6 +39,7 @@ internal static class FirstLimitedApplyAutomationBootstrap if (state != BootstrapState.Created) return; state = BootstrapState.Prepared; AcadApplication.Idle += OnIdle; + RuntimeDiagnostics.Write("AutomationBootstrapSubscribed", resultStatus: "Prepared"); } // Public test command is intentionally side-effect free with respect to Plant APIs. @@ -52,6 +53,7 @@ internal static class FirstLimitedApplyAutomationBootstrap try { idleCallbackCount++; + RuntimeDiagnostics.Write("AutomationBootstrapIdle", resultStatus: state.ToString()); // The script engine can consume the custom command after NETLOAD. The // first idle is therefore the explicit post-NETLOAD arming point. if (state == BootstrapState.Prepared) { observedIdle = true; state = BootstrapState.Armed; } @@ -59,6 +61,7 @@ internal static class FirstLimitedApplyAutomationBootstrap state = BootstrapState.Starting; AcadApplication.Idle -= OnIdle; coordinatorStartCount++; + RuntimeDiagnostics.Write("AutomationCoordinatorStarting", resultStatus: "FirstPostStartupIdle"); new FirstLimitedApplyAutomationCoordinator().Start(); } catch (System.Exception exception)