1
Automation Interface, Add-Ins and Tools / Re: How to get the Trigger-Data of a Timer event ? (C# script)
« on: November 14, 2018, 08:06:16 am »You have to look into the correct t_xref records.ok thank you for your reply
They are related to your Action based on the t_xref.Client = t_object.ea_guid
In your case there will be two t_xref records. One that indicates the type of Action, and the other that specifies the GUID of the trigger element.
So based upon that trigger element you will again need to query t_xref. One record specifies the kind of trigger (Time) and the other specifies the specification (0.5s)
On my test model they look like this:Code: [Select]XrefID Name Type Visibility Namespace Requirement Constraint Behavior Partition Description Client Supplier Link
{6FD0BC82-87EA-43dd-83B1-02EF301AB86B} MOFProps element property Public NULL NULL NULL event 0 RefGUID={89807AC7-D452-48eb-85EC-844975D3497B};RefName=0.5s; {F0E65A7D-D49C-47e1-B198-50B0F2D6C091} <none> NULL
{829EF67E-BDB8-444b-95C4-581AD0CEA054} CustomProperties element property Public NULL NULL NULL NULL 0 @PROP=@NAME=kind@ENDNAME;@TYPE=TriggerKind@ENDTYPE;@VALU=Time@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP; {F0E65A7D-D49C-47e1-B198-50B0F2D6C091} <none> NULL
I'm not sure how much of this info can be read using the API objects purely
Geert
Subway Surfers Psiphon Hill Climb Racing
_________________