You can also ignore bonus id's completely and just manually edit the ilvl using ,ilevel=### at the end of the line. Add in gems the same way and you can ignore tertiary effects since they don't add anything to DPS.

In fact you can cut out the name of the item as well and make it even simpler by using a line such as:
main_hand=,id=XXXXXX,itemlevel=###,enchant=blah,gems=blah