The Wall Center tool creates a centerline by detecting the median between two line segments.
Requirements:
Select multiple line segments representing walls.
This tool should be used after running the Polyline_Explode tool.
Minimum 2 parallel lines required for the Centerline extraction
Steps:
Select multiple line segments representing the room walls.
Run the script and select the Polyline_Wall Center option.
Multiple centerlines will be generated. The name of each line will include the thickness of the wall, calculated by measuring the perpendicular distance between the two line segments.
Notes:
In the future, these centerlines can be used for automatic wall modeling in Revit by utilizing Dynamo scripts.