@hanywillim look into DynaMEP package:
Remember, if you see nulls or errors in exploded polylines, fix and cleanup them in autocad (overkill command etc.), or you’ll lose that polylines. Later you can make polycurves from sublists of exploded polylines.