dot-getLastIdLvl function

Get the last idLvl