Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"Edge") to create an edge mesh.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the edge selection. If you do not specify a selection, the feature creates a mesh on the remaining entities in 1D. In 3D and 2D, the default selection is empty.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,ftype) to add Size or Distribution attribute features.