Updated Requirement/Element Number Visually on Containment Tree

Hello everyone,

I'm trying to update the "Id" property of a Requirement using the OpenAPI for Cameo 22x. I'm using this method to achieve it:

TagsHelper.setStereotypePropertyValue(req, abstractReqStereotype, "Id", updatedId)

 

The problem is that the containment tree doesn't get the update visually unless I save and relaunch the model. I'd like a way to run TagsHelper and immediately refresh the containment tree, so that I can see the Element Number next to my requirement in the containment tree. The example below shows the updated Id "3.2.1.1.1" on the right via TagsHelper but the containment tree still shows "3.2.1.1.2". 

 

 

I am running TagsHelper during a new session. I've tried using View->Refresh and RefreshManager.refresh(project, progress) but it didn't change anything.

I also looked into INumberingAction.generateIds(elems [], NumberingInfo) but was unsuccessful since NumberingInfo wants a NumberingData which seemed private/inaccessible.

 

Some guidance would be extremely appreciated!