How to create Pipe trench

I have a task to create a trench plan outline and hatch along the pipeline. I have been placed the condition image, sample image, dynamo and drawing file. Could you please help me out to complete the dynamo.

Hi @manrajan.kalimuthu,

What have you tried so far?

I am trying to take information from pipe properties such as pipe invert level, pipe cover and pipe diameter. These details to adopt the trench standard, i am trying to make offset on the line. Unfortunately, i don’t have much exposure in plane and vectors. cad image represents how i wants the trench line in plan.

Trench hatch v0.01.dyn (178.9 KB)