A line is infinitely thin in software, and will result in a single stroke of however wide your laser beam is (perhaps 0.1mm).
To go 0.5mm wide, make a rectangle and set it to “Fill”.
That’s the first idea I needed to share. Now what do you mean by dotted line?