How to know/ figure out what functions I need (Search & replace names)

Hi Peter,

Regular Expressions are what you need.
Check the attached .py file. It will allow you to use asteriks symbol when replacing layer names, exactly as you wanted.

You could also just download the attached .rui file, and drop into your Rhino toolbar. It will automatically generate a new Toolbar tab with two buttons: this one(replace layer names with/without asteriks symbol), and “make 2d layers” you wanted in here.
Hope that helps.

Happy New Year!!!

layerNames_Make2D.rui (12.3 KB)

renameLayerNamesAsteriks.py (6.1 KB)