Overiding transaction associated with analysis port

Hello,

I am using a VIP which uses axi_transaction linked with analysis port of monitor. But in my environment i am extending the axi_transaction and using it, so i want to override the transaction linked with analysis port with my transaction, which is been extended from axi_transaction. I am trying set_type_override_by_type method in build phase of environment, but it doesn’t seems to help.
Can someone please help on this.

Thanks
Disha

Can’t really help unless you show us how you registered the axi_transaction and its extension with the factory, how the transaction gets created, and how you overrode it.