The way I do it is create the template and drag the commands one by one onto the template from the preprogrammed database and as you place the commands, you will see the IRID box will show an ID. IRID is the only way a command is assigned to a button, not by name. You can then select the device on the left side in tree view, right click and select delete contents to erase all of the commands. Now when you click "save all" the commands will be automatically saved.
There are 10 types of people in this world, There are those who understand binary, and those who don't!