You can create HotValues in a script using the asEventValue message. For instance:
('Source' & i & '_to_Destination' & j) asEventValue.
Where i and j are integer variables in this example.
However I was warned a while ago that such algorithmically created HotValues inside a class won't necessarily work when in a Timeline. I haven't tested this rigorously to find out if that's still the case. So if I can, I avoid algorithmically creating HotValues. There are some instances where it makes sense though. I've made some matrix mixer and modulation matrix classes where I generate a fader for each source-to-destination combination. Getting the class user to enter every fader name would be tedious and error prone.