fix: bind script PXP-OA planning to command document
This commit is contained in:
@@ -73,7 +73,11 @@ public sealed class EntryPoint : IExtensionApplication
|
||||
document = AcadApplication.DocumentManager.MdiActiveDocument;
|
||||
var mode = ParseMode(RuntimeDiagnostics.RuntimeMode);
|
||||
|
||||
var context = new PlantRuntimeContextReader().ReadCurrentContext();
|
||||
// Script-driven commands can run while Plant's implicit current
|
||||
// document lags behind MDI activation. Bind the planner to the
|
||||
// command document captured above, which is also the observer's
|
||||
// fixture identity.
|
||||
var context = new PlantRuntimeContextReader().ReadCurrentContext(document);
|
||||
var details = new Dictionary<string, object?>
|
||||
{
|
||||
["ExecutionMode"] = mode.ToString(),
|
||||
|
||||
Reference in New Issue
Block a user