Beam Trim\Extend

Hi everyone,
I was working on CAD to Revit Auto Beam & Column Placement scripts and the scripts work very well. but due to drafting errors in CAD file, I’m facing some beam trimming\extend issues.
are there any nodes or packages that can help to trim\extend the beams.

here is the sample image



Beam.rvt (2.7 MB)