uspenskiyan - 2023-06-05

I need to perform some actions when creating an FB instance (pass a reference to the created instance to another FB - something like Dependency Injection). I found FB_Init and {attribute 'call_after_init'}, but in both cases, the added code when creating the FB (declared in the visualization var and created, as I understand it, along with it) is not executed. Why?