Hey there, I try to access the layoutview to make the example below work. I am currently using a SingleGlobal Plugin and already tried things like: var layoutview = this.GetProject().GetLayout()...
Can anyone help me please?
const eventSheet = layoutView.GetLayout().GetEventSheet();
if (eventSheet)
{
const systemType = eventSheet.GetProject().GetSystemType();
const eventBlock = await eventSheet.GetRoot().AddEventBlock();
eventBlock.AddCondition(systemType, null, "on-start-of-layout");
eventBlock.AddAction(iObjectType, null, "set-position", [100, 200]);
}