Create walls based on Linked cad plan in Revit by using dynamo

Hi Everyone
I have developed a script to create walls based on a CAD plan. However, after running the script, I noticed that in some areas, the walls are not aligned properly with the CAD plans as shown below.



Please let me know if anything need to update in my script, it was very helpful for my projects

Can you show the data on all the nodes, space them out a bit so we can see everything.

Hi pyXam,
Thank you for the response, I have extracted all the data from the nodes, Please check and let me know how to adjust the walls in below attached images


Have a look here, there is a lengthy discussion on how the lines influence the determined inside and outside face off the wall which look like the problem