Hi thanks for your response!
I try with the second option but the method is not called when I create
figure A maybe because B is not a child of A but only a referenced
element.!
How can I do? The other 2 options also does not work for the same reason I
think!