Creating walls from CAD Files

Good day, i created walls from CAD files in dynamo but all the created walls comes as double walls attached together. How can i make the mid point reference to create a single wall not double walls attached from the middle. Below is a photo of the issue.

And here is the script i created

Filter by CADLayer
Assing a WallType per Layer comes to mind

I use this way.
1,get line from wall layer of dwg file
2,group lines by parallel and distance
3,for each group using boundingbox to get max-point and min-point
4,in newer version of dynamo using max-point and min-point create rectangle and surface by patch.
5,use isoline node and filter method get the right location line for creating the wall
6,input rest value like level,wall type to create the wall

if you’re interested you can check my YouTube channel,I’ve record a video doing in Revit2022 and older version dynamo.But in revit 2024 and newer version dynamo I use rectangle and surface to get center line rather than boundingbox.

3 Likes

Yes, could you kindly share your youtube video