I may be misunderstanding something, but YOU set the ID of any element. Just select the elements and set the ID field in the Tags and Categories panel of its Settings Dialog (or in the Info Box).
I think in this case you don't even need to bother with those Master ID since that is used when you want instances to have unique IDs.
Here I see a case where you want a given Door with a given size to have a certain ID, regardless of which Hotlink it comes from.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28