P&ID digitization for manufacturing