fix: queue readiness barrier after fixture activation
This commit is contained in:
@@ -199,13 +199,13 @@ internal sealed class FirstLimitedApplyAutomationCoordinator
|
||||
// coordinator receives the returned Document. Confirm the current
|
||||
// active document after assignment so that one missed event cannot
|
||||
// strand the workflow waiting for another startup Idle.
|
||||
var activeDocument = AcadApplication.DocumentManager.MdiActiveDocument;
|
||||
if (activeDocument is not null && string.Equals(activeDocument.Name, document.Name, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
fixtureDocumentActivated = true;
|
||||
transitions.Add("FixtureDocumentActiveAfterOpen");
|
||||
QueueReadinessBarrier();
|
||||
}
|
||||
// Open was requested for this exact local fixture and it has just
|
||||
// been made MDI-active. Queue a no-op public command regardless of
|
||||
// wrapper identity/name normalisation; CommandEnded is the actual
|
||||
// readiness proof before any Plant API is used.
|
||||
fixtureDocumentActivated = true;
|
||||
transitions.Add("FixtureDocumentActiveAfterOpen");
|
||||
QueueReadinessBarrier();
|
||||
}
|
||||
catch (System.Exception ex) { FailFromCallback("Start", ex, "AUTOMATION_START_FAILED"); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user