I have an event-based PIO Linear Object that doesn't seem to be firing the OnInit event. I have an AlrtDialog that fires immediately after vsoGetEventInfo function but I never get an event ID of 5. Specifically I don't get it the first time I use the tool after opening VW2023.
Any thoughts?
The weird thing is another PIO I use the logic is working fine, This is what I have done to try and figure out what is going on.
this is python Script in the script editor.:
import _Gizmo
id, button = vs.vsoGetEventInfo()
vs.AlrtDialog(f'Script Editor {id}') #normally I don't make this call here but in the _Gizmo.run after running the vs.GetCustomObjectInfo call
_Gizmo.run(id, button)
this is the python Script in "_Gizmo.run":
vs.PushAttr