How do I create a dotted line in Sketchup?
Are you using SketchUp 2019 as indicated in your profile? You can create a group containing the line(s) and then give the group a layer/tag that has a dashes style added to it.
How are you using this dashed line once you have it? Maybe you could just add that line in LayOut with its Line tool.