Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"FillHoles") to fill small holes on surfaces (boundaries) of an imported mesh. Use
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the faces for which the holes are filled. If you do not specify the selection, it is left empty.