Can we mesh a line non-uniformly, I mean If a line length is 100 mm, can we mesh it with a mesh length as for example 25mm, 20mm, 10mm , 20mm, 25mm ???
Another way of doing this is to split the line body with required element lengths in Design Modeller. Then, when you are performing meshing, use sizing property to assign the required number of divisions or element sizes to the splitted line body.
If you are using Classical ANSYS, you can create nodes by your wish and then create elements passing through the nodes you created.