Okay, @s.hamel this one is unusual and I would go as far as to say this is an undiscovered bug.
Let me first explain the setup:
Trapeze Family has nested GTP Point families at the top of the rod.
Some instances of trapezes have different rod heights for the two rods (one rod is going to the deck, another is going to building steel).
I'm renumbering from a view that is set to only see the GTP Points that are going to the deck. Renumber is successful.
When I export, there are duplicates. So I dive deeper to investigate and see that the families that have different rod heights, the renumbered point is the one that is NOT visible. The visible point remains unchanged (before this, I had all point numbers for both rods set to 1).
I've triple checked the associated mappings within the trapeze family and all 3 parameters (PointRole, PointNumber, PointElement) are consistently mapped to their respective parameter (GTP_PointRole_X, GTP_PointNumber_X, GTP_PointElement_X, where X is either 0 or 1, assigned respectively to each rod).
If I renumber from a view that displays both GTP points, then it renumbers as expected.
Currently using Revit 2022.1.6 and APL 2024