setIdFactor function

Set the "idfactor" attribute