"offset curve center" question?

I want to offset a line like that in the middle

You can try ExtrudeCrvTapered and also this discussion. Old Town Roofs

Also this plug-in: https://www.food4rhino.com/app/hible-roofs

thank you. I’m not fluent in Grasshoper. Is there a script running in python?