Abstract
Artificial intelligence has increasingly been applied to residential floor plan generation, producing outputs in diverse forms such as semantic raster images, graph-structured layouts, and vector polygons. However, these outputs still require substantial interpretation and reconstruction before they can enter conventional CAD and BIM workflows. This study develops a unified engineering–semantic framework for transforming heterogeneous AI-generated floor plans into editable CAD drawings and preliminary BIM information models. Three route-specific procedures—ColorPlan, TopoPlan, and PolyPlan—are established to parse and regularize the three representative input forms. The processed information is reorganized into a common engineering–semantic JSON core and subsequently mapped to native AutoCAD entities and Revit objects. The workflow was evaluated using 165 transformation-ready single-story residential samples. The effective CAD/BIM transformation rates reached 100.0%/97.7% for ColorPlan, 93.3%/85.3% for TopoPlan, and 100.0%/97.9% for PolyPlan. The results show that transformation stability is closely related to the completeness of semantic, geometric, topological, and opening information in the source representation. A controlled human–machine experiment further showed that the proposed workflow reduced CAD drafting time by approximately 85.2% and BIM modeling time by 90.0% compared with fully manual production. The study demonstrates a feasible approach for extending heterogeneous AI-generated layouts into editable and information-bearing engineering representations while substantially reducing repetitive drafting and preliminary modeling work.
1. Introduction
Artificial intelligence has become an important tool for architectural floor plan generation and early-stage design exploration. Current generative methods can represent residential layouts in different forms, including raster images, graph-structured layouts, and vector polygons. These representations provide spatial organization, room relationships, geometric boundaries, and other useful design information, but their data structures differ substantially. Consequently, the growing diversity of AI-generated outputs also creates a new challenge for their subsequent use in architectural engineering workflows.
CAD drawings and BIM models require information that can be directly interpreted and edited by professional software. Walls need explicit geometric locations and dimensions; doors and windows require valid positions and host relationships; rooms require identifiable boundaries and semantic categories; and engineering drawings further involve grids, dimensions, annotations, and layer organization. BIM models extend this information through component types, parameters, spatial relationships, schedules, and other structured data. AI-generated floor plans generally provide only part of this information, and the missing engineering relationships must be reconstructed before the layouts can support subsequent design development.
Existing research has advanced AI-based floor plan generation, floor plan recognition and vectorization, and 2D-to-BIM reconstruction. However, these areas are largely studied separately: generation research focuses on layout synthesis and evaluation, recognition and vectorization on recovering geometry and semantics from existing drawings, and drawing-to-BIM on the digital reconstruction of existing documents. Heterogeneous AI outputs further complicate downstream use because raster, graph-structured, and polygon-based representations require different processing strategies, while a shared engineering representation supporting both CAD and BIM remains insufficiently explored. In addition, the correction workload and practical efficiency of such transformation workflows still require quantitative evaluation. These gaps are further reviewed in Section 2.
To address these issues, this study develops an engineering-oriented workflow for the continuous transformation of AI-generated residential floor plans into editable CAD drawings and preliminary BIM information models. The validation focuses on transformation-ready single-story residential layouts and adopts a masonry-based BIM representation as a controlled experimental scope. Three representative AI output forms are investigated: color-coded semantic raster images, House-GAN++ graph-structured outputs, and HouseDiffusion polygon-based outputs. Route-specific parsing and geometric regularization are first performed, after which the resulting information is reorganized into a common engineering–semantic JSON core and independently consumed by AutoCAD and Revit add-ins.
The study addresses the following four objectives:
- Heterogeneous output transformation: To establish three route-specific procedures that enable semantic raster, graph-structured, and polygon-based AI outputs to enter a common engineering workflow while preserving their principal source information.
- Unified engineering–semantic representation: To develop a shared intermediate data layer and corresponding CAD/BIM mapping procedures for generating editable drawing entities, architectural components, object relationships, parameters, and information outputs.
- Transformation reliability: To evaluate CAD/BIM transformation through an A/B/C/F grading system based on output completeness, transformation errors, and measured correction workload, and to analyze the influence of different source representations on downstream transformation.
- Engineering efficiency: To evaluate practical efficiency through a controlled human–machine experiment comparing the proposed workflow with fully manual CAD drafting and BIM modeling.
Together, these objectives examine the feasibility, reliability, interoperability, and engineering efficiency of connecting AI-generated residential layouts with downstream CAD/BIM workflows.
2. Related Work
2.1. AI-Based Floor Plan Generation
AI-based floor plan generation has evolved from raster-image synthesis to graph-constrained layouts, vector representations, and language-guided generation. Diffusion models provide an important basis for image-based generation. Ho et al. [1] introduced denoising diffusion probabilistic models (DDPMs), while Rombach et al. [2] subsequently developed latent diffusion models that perform the diffusion process in a lower-dimensional latent space and enable efficient high-resolution image synthesis. These methods provide the basis for diffusion-based architectural image and floor plan generation.
Graph-based methods further introduce explicit spatial relationships into floor plan generation. Graph2Plan converts a user-defined layout graph and building boundary into a floor plan satisfying adjacency and boundary constraints [3]. House-GAN further formulates room types and spatial adjacency as graph constraints and generates room layouts using relational generative adversarial networks [4]. House-GAN++ extends this approach through iterative layout refinement, allowing previously generated layouts to be reused as constraints during subsequent generation stages [5]. These methods improve spatial controllability and provide explicit topological information.
Recent studies have increasingly incorporated vector representations into floor plan generation. FloorplanGAN generates residential floor plans directly in the form of vector graphics and introduces architectural priors into the adversarial generation process [6]. HouseDiffusion represents rooms and doors as polygon loops and performs discrete and continuous denoising of corner coordinates, enabling direct generation of vector floor plans while considering geometric relationships such as parallelism, orthogonality, and corner sharing [7]. Language-guided approaches have also emerged. Tell2Design introduced more than 80,000 floor plans paired with natural-language descriptions and established benchmarks for language-conditioned floor plan generation [8]. Overall, floor plan generation is moving toward more structured and controllable representations.
Despite these advances, existing studies mainly focus on generation quality, such as visual realism, diversity, topology, geometry, spatial constraints, and controllability, while downstream engineering use receives comparatively limited attention. Raster outputs require semantic and geometric extraction, and graph-structured or polygon-based outputs still require engineering interpretation before they can become CAD or BIM objects. Information such as wall thickness, opening–host relationships, drawing layers, dimensions, BIM object types, and component parameters is generally not directly available. Therefore, the systematic transformation of heterogeneous AI-generated layouts into editable and information-bearing CAD/BIM representations remains an important research gap.
2.2. Color-Coded Semantic Floor Plan Generation in the Authors’ Preliminary Study
In the authors’ preliminary experiments, Stable Diffusion combined with LoRA fine-tuning [9] was used to generate color-coded semantic residential floor plans. Predefined colors encode room categories, walls, doors, and windows within a unified raster representation, while image coordinates are associated with real-world dimensions for subsequent engineering interpretation. The resulting semantic PNGs constitute the ColorPlan input used in this study.
Although color coding improves semantic interpretability, the output remains raster-based and requires further transformation into wall axes, openings, rooms, drawing objects, and BIM components. The present study therefore extends this preliminary generation research toward downstream engineering transformation and further examines graph-structured and polygon-based AI outputs within the same CAD/BIM framework.
2.3. Floor Plan Recognition, Vectorization, and CAD Reconstruction
Floor plan recognition and raster-to-vector transformation provide an important technical foundation for converting visual floor plans into structured geometric information. Liu et al. [10] proposed a learning-based raster-to-vector framework in which neural networks first detect geometric and semantic junctions, and integer programming subsequently aggregates these junctions into wall lines, door lines, and other vector primitives. This work demonstrated that semantic recognition and geometric reconstruction can be combined to obtain a topologically consistent vector representation from raster floor plans.
Subsequent research has further improved semantic recognition of architectural elements. CubiCasa5K introduced a dataset containing 5000 floor plans with dense annotations and developed a multi-task convolutional model for floor plan image analysis [11]. Zeng et al. [12] proposed a multi-task network with room-boundary-guided attention to jointly recognize walls, doors, windows, and room categories. MuraNet [13] further integrates segmentation and detection through a relation-attention-based multi-task architecture. These studies substantially improve the extraction of architectural semantics from raster floor plans.
Research has also progressed from semantic segmentation toward explicit structural reconstruction. HEAT reconstructs planar graphs from raster images by detecting corners and classifying candidate edges using a Transformer-based architecture [14]. More recently, raster-to-graph directly formulates floor plan recognition as autoregressive graph prediction, further emphasizing the reconstruction of structured geometric relationships rather than isolated pixel labels [15]. Related inverse-CAD research, such as Floor-SP, has also demonstrated that room boundaries and shared-wall relationships can be jointly optimized to obtain coherent vectorized floor plan structures from spatial observations [16].
These studies provide important foundations for semantic and geometric reconstruction, but several gaps remain for AI-generated floor plans. First, their inputs differ: existing methods mainly process scanned drawings, rasterized plans, or existing-building observations, whereas AI outputs may contain color deviations, topology–geometry inconsistencies, duplicated polygon edges, incomplete closure, or missing opening information. Second, semantic masks, polygons, line segments, and planar graphs still require further processing to form engineering CAD drawings with editable walls, openings, rooms, grids, dimensions, annotations, and layers. Third, existing methods generally address a single representation, whereas current generative models produce raster, graph-structured, and polygon-based outputs.
Accordingly, this study applies source-specific parsing to the three output forms and reorganizes their geometric, semantic, and component information into a common engineering–semantic JSON structure, from which editable CAD objects are generated.
2.4. BIM Reconstruction from 2D Drawings
Automatic reconstruction of BIM models from two-dimensional building documentation has been extensively investigated, particularly for the digitalization of existing buildings. Lim et al. [17] proposed a semi-automatic workflow for generating BIM models from 2D CAD drawings. Their method first cleans and simplifies CAD geometry and then extracts parameters required to generate three-dimensional BIM components. Yang et al. [18] developed a semiautomatic structural BIM generation method based on CAD construction drawings, using drawing layers and component classification to reconstruct semantically rich structural BIM objects. These studies demonstrate that existing CAD information can be reused to reduce the manual workload of BIM modeling.
Machine learning has subsequently been introduced into drawing-to-BIM reconstruction. Urbieta et al. [19] used Mask R-CNN to identify elements from architectural and structural drawings and combined the recognized information to generate an IFC-based BIM model. Their work demonstrates the potential of AI-based drawing interpretation for the digitalization of legacy building documentation. Barreiro et al. [20] developed a pipeline for reconstructing vectorized semantic 3D models from scanned 2D floor plans and evaluated the method using CubiCasa5K. Feist et al. [21], in a recent review of automatic 3D reconstruction from 2D drawings, identified continuing challenges related to the amount of information available in 2D documents, reconstruction completeness, semantic enrichment, and adaptability to heterogeneous drawings.
The research context of these studies differs from that of AI-generated floor plans in three main respects. First, existing CAD-to-BIM methods generally process construction drawings, blueprints, or scanned documents with relatively stable engineering conventions, whereas AI-generated layouts may contain incomplete or uncertain information. Second, existing studies mainly reconstruct existing buildings, while the present study starts from generated design results and supports both CAD and BIM through a shared intermediate engineering layer. Third, BIM generation requires component types, host relationships, parameters, room semantics, and information outputs that are not consistently available in AI-generated source data.
The evaluation focus also differs. Existing studies commonly emphasize recognition accuracy, geometric reconstruction, or BIM reconstruction feasibility, whereas AI-assisted engineering workflows also require evaluation of transformation completeness, correction workload, failure cases, and efficiency relative to manual production. Accordingly, this study connects AI floor plan generation, recognition/vectorization, and 2D-to-BIM reconstruction through a continuous engineering–semantic workflow for heterogeneous AI outputs.
3. Materials and Methods
3.1. Overall Framework
This study proposes an engineering-oriented workflow for transforming AI-generated residential floor plans into editable CAD drawings and preliminary BIM information models. The workflow consists of six stages: AI floor plan generation, representation-specific parsing, construction of an engineering–semantic JSON, CAD drawing generation, BIM model generation, and transformation quality evaluation (Figure 1). Because the three AI generation methods produce raster, graph-structured, and polygon-based representations, respectively, route-specific parsing and geometric regularization are first applied. The processed spatial, semantic, geometric, and component information is then reorganized into a common engineering–semantic JSON core, which serves as the principal interface for subsequent CAD and BIM generation.
Figure 1.
Workflow for transforming AI-generated residential floor plans into CAD drawings and BIM models.
In the CAD stage, the workflow generates editable walls, doors, windows, room labels, grids, dimensions, annotations, and layer-organized objects. These outputs are intended to approach conventional engineering drawing representations while preserving editability for subsequent professional adjustment. Within the scope of this study, they are regarded as preliminary architectural drawings for scheme development and transformation verification rather than complete construction drawings.
For BIM validation, single-story masonry residences are selected as the controlled experimental scope for both architectural and methodological reasons. First, masonry construction is suitable for the single-story residential building type investigated in this study and allows walls to serve directly as the principal load-bearing and enclosure components in the preliminary BIM representation. Second, some AI-generated layouts, particularly those produced by House-GAN++ and HouseDiffusion, contain irregular external contours and internal room boundaries. Such geometry makes it difficult to establish a stable and regular column grid required for a frame-structure representation. A masonry-based strategy is therefore more compatible with the geometric characteristics of the current generated results.
The selection of single-story masonry residences also provides a controlled domain for evaluating the transformation workflow. This building type contains the principal spatial and engineering objects addressed in this study, including rooms, wall systems, door and window openings, external boundaries, component relationships, and basic structural attributes. At the same time, it avoids additional variables introduced by multi-story buildings, such as staircases, vertical circulation, inter-floor alignment, and cross-floor component coordination. The selected scope therefore allows the influence of different AI input representations and transformation procedures to be examined more directly. It is intended as a controlled validation domain rather than a representation of all residential building types; multi-story buildings and other structural systems are considered directions for subsequent extension.
Before BIM generation, the Revit add-in provides a parameter confirmation stage in which users can review or modify key modeling settings, including structural mode; level height; wall, slab, and roof thicknesses; door and window dimensions; windowsill height; output paths; and information-output options. The values reported in this study correspond to those used in the experiments. In the inspected masonry models, 240 mm Revit wall types were adopted, while load-bearing and non-load-bearing roles were distinguished through wall types, materials, structural flags, and custom instance parameters.
The generated BIM models are positioned as preliminary information models for scheme development and engineering information organization. They preserve spatial, component, and semantic information and provide preliminary representations of load-bearing walls, non-load-bearing walls, ring beams, lintels, openings, floors, and roofs. Structural calculation, internal-force analysis, reinforcement design, construction detailing, and final structural design are beyond the scope of this study; therefore, the structural components generated in the current workflow should not be interpreted as final engineering design results.
The implementation combines input parsing and geometric regularization in Python 3.13.9 with C# add-ins targeting .NET 8.0 and developed against the AutoCAD 2026 .NET API assemblies and the Revit 2026 API assemblies. Python adapters convert the three source representations into engineering–semantic JSON files, which are subsequently loaded by the AutoCAD and Revit modules. CAD and BIM outputs were generated and checked in Autodesk AutoCAD 2026 and Autodesk Revit 2026 (Autodesk, Inc., San Francisco, CA, USA), respectively. The source code is not publicly released at this stage due to project-related restrictions; however, the principal algorithms, parameters, data structures, and object-mapping rules are described in this paper and Appendix A, Appendix B and Appendix C.
3.2. Input Representations and Transformation Routes
For different output forms of AI-generated floor plans, this study establishes three input parsing routes: the ColorPlan route for color-coded semantic PNG outputs generated by the diffusion model, the TopoPlan route for House-GAN++ generated JSON outputs, and the PolyPlan route for HouseDiffusion polygon JSON outputs. The models, input information, processing focuses, and transformation difficulties of the three routes are summarized in Table 1.
Table 1.
Input types and transformation routes for AI-generated floor plans.
3.2.1. ColorPlan Route: Raster Representation of Diffusion-Generated Semantic PNGs
The diffusion model generates residential floor plans as color-coded semantic PNG images, in which colors represent walls, doors, windows, and functional spaces. As raster-based representations, these images do not directly contain the vector component information required by CAD or BIM. The ColorPlan route therefore transforms their color semantics, spatial boundaries, and component locations into engineering objects for subsequent processing.
The ColorPlan inputs used in this study were obtained from preliminary generation experiments based on Stable Diffusion with LoRA fine-tuning [9]. Since the focus of this study is CAD/BIM transformation rather than generative model training, the generation process is not discussed in detail, and the resulting color-coded semantic PNGs are directly used as ColorPlan inputs. The overall transformation procedure of the ColorPlan route is shown in Figure 2.
Figure 2.
ColorPlan route for transforming color-coded semantic PNGs into engineering–semantic JSON.
- Color semantic recognition
The basic inputs of ColorPlan include a color-coded semantic floor plan and a functional color table. The color table records the correspondence between RGB values and different spatial or component categories, including living room, bedroom, kitchen, dining room, bathroom, corridor, storage room, wall, door, and window.
To reduce the influence of slight color deviations in generated images, semantic matching is performed using Euclidean distance in RGB space. Each pixel is assigned to its nearest standard category when the color distance does not exceed 48; otherwise, it remains unclassified. Binary semantic masks are then generated for rooms, walls, doors, and windows, followed by connected component analysis. Room regions are recorded with their category, area, bounding box, and center point, while wall, door, and window regions provide the basis for subsequent geometric reconstruction and component localization.
- 2.
- Coordinate transformation and wall centerline reconstruction
Before geometric reconstruction, image coordinates are converted into millimeter-based engineering coordinates. The program reads the actual width and height of each input image and calculates a uniform scale from a fixed reference building width of 21,000 mm:
where s is the pixel-to-millimeter scale and is the actual image width. Thus, a 1200-pixel-wide image corresponds to 17.5 mm/px, whereas a 512-pixel-wide image corresponds to 41.015625 mm/px. The same scale is applied in both coordinate directions, and the image Y-axis is reversed during conversion to the CAD/BIM coordinate system. The converted millimeter coordinates are subsequently written into the intermediate JSON.
During wall reconstruction, wall centerlines are extracted from wall masks through horizontal and vertical projection scanning rather than directly using raster boundaries. Continuous wall pixel bands are identified, and their middle positions are used to generate horizontal or vertical centerlines, reducing the influence of jagged raster boundaries.
The extracted centerlines are subsequently regularized before being used as engineering wall axes. First, their pixel coordinates are converted into millimeters. Small coordinate deviations introduced during image generation and raster recognition are then corrected at two levels. The principal wall–axis coordinates are aligned to a 300 mm architectural module, while local coordinates, such as wall endpoints and opening positions, are adjusted on a finer 100 mm grid.
Wall intersections are also checked during this process. When the end of a horizontal wall axis lies close to a vertical wall axis, or vice versa, the endpoint is extended or shortened to their exact intersection, provided that the deviation is within the predefined tolerance. This operation closes small corner gaps without changing the principal wall direction. Nearly coincident axes produced by the same wall pixel band are merged, while isolated axis fragments that are too short to form an independent principal wall axis are removed. These procedures convert locally unstable raster-derived lines into a connected and modular wall–axis system. The numerical thresholds used for endpoint correction, duplicate-axis removal, and short-axis filtering are summarized in Table 2.
Table 2.
Principal parameters and decision rules for ColorPlan raster parsing and regularization.
- 3.
- Door/window localization and host–wall matching
Door and window information is derived from the connected component results after color classification. The bounding box, center point, and direction of each opening are identified, and the host wall is determined according to its distance and directional relationship with the wall centerlines. The opening center is then projected onto the corresponding wall axis, and its width is processed according to the predefined modular rules.
Regions that are too close, overlapping, or repeatedly detected are merged according to center-point distance and opening overlap. Openings outside the valid range of the host wall are constrained within the effective wall segment. The resulting objects therefore retain position, direction, width, and host–wall relationships for subsequent CAD/BIM generation.
3.2.2. TopoPlan Route: Graph-Structured Representation of House-GAN++ Generated Results
The TopoPlan route takes the generated JSON corresponding to each House-GAN++ result as input. The file contains room categories, room masks and polygons, wall segments, door information, boundary contours, room adjacency relationships, and warnings. The explicit room relationships provide useful topological information, while the geometric boundaries require further cleaning before stable wall axes, spatial boundaries, and opening objects can be formed. The overall transformation procedure of the TopoPlan route is shown in Figure 3.
Figure 3.
TopoPlan route for transforming House-GAN++-generated JSON into engineering–semantic JSON.
- Graph-structure parsing and scale transformation
House-GAN++ generated results have clear graph-structured characteristics and can represent adjacency and connectivity relationships between rooms. The TopoPlan route first reads room categories, room boundaries, wall segments, door information, overall boundary contours, and room adjacency relationships from the generated JSON, and organizes them into spatial objects for subsequent processing.
The coordinates output by House-GAN++ are located in the model generation coordinate system. In this study, they are converted into CAD/BIM coordinates, with the scale set to 1 JSON unit = 100 mm. After coordinate conversion, key points are snapped to a 100 mm module to reduce floating-point errors and local misalignment, thereby improving the stability of wall, door/window, and axis-grid generation.
- 2.
- Room object cleaning
House-GAN++ generated results may contain local abnormal rooms, such as highly overlapping rooms, rooms contained within other rooms, rooms floating outside the main floor plan, or room boundaries inconsistent with the overall layout. These cases are evaluated according to the original room masks, room area, overlap ratio, and whether the room is located within the overall contour.
Rooms that lack valid mask evidence, conflict significantly with the main layout, or are clearly detached from the floor plan are removed from the subsequent input. Wall segments associated with the removed rooms are also deleted or assigned lower priority during wall cleaning. This step reduces the influence of local abnormalities in the generated results on subsequent wall generation and room representation.
- 3.
- Wall–axis merging and external contour control
The main task of wall processing in House-GAN++ is to resolve the inconsistency between graph relationships and geometric boundaries. Adjacent rooms may have explicit relationships in the graph structure, but their corresponding boundary lines may not be geometrically aligned. Direct transformation may therefore produce double walls, wall protrusions, corner misalignment, and local gaps. Therefore, wall lines derived from room boundaries need to be merged and aligned before engineering transformation.
Wall lines are first converted into horizontal or vertical wall axes and grouped by direction. When several parallel axes are located close to one another and represent the same wall relationship, they are consolidated into a common axis using a clustering tolerance of 600 mm. After this coordinate consolidation, separate wall segments lying on the same straight axis are joined when the gap between them does not exceed 500 mm. Wall segments shorter than 600 mm after merging are treated as local fragments and removed. Finally, when horizontal and vertical wall segments should meet, but their endpoints remain slightly separated, the endpoints are moved to a common intersection within a 500 mm tolerance. The relevant values and their parameter basis are summarized in Table 3.
Table 3.
Principal parameters and decision rules for TopoPlan and PolyPlan geometric cleaning.
External contour control uses the cleaned wall envelope as the primary reference, while the boundary contour information in the generated JSON is used as auxiliary reference information. This boundary information provides the overall floor plan range, but it may not fully match the cleaned wall layout. Therefore, the final external contour is identified by considering wall axes, room distribution, wall directions, and exterior sampling points.
- 4.
- Door position refinement and automatic window generation
Door information in the House-GAN++ output is converted into opening objects after wall–axis cleaning. The system first determines the expected door orientation from its geometric extent and, when room-connection information is available, identifies wall axes located between the connected rooms. Candidate host walls are then evaluated according to three conditions: whether the wall direction is consistent with the door orientation, whether the wall separates the connected rooms, and the perpendicular distance from the door center to the wall axis.
After the host wall has been selected, the door center is projected onto its axis, and the opening is fitted within the effective wall segment. The default 800 mm width provides a standardized opening when the original generated geometry does not contain a stable engineering width. A 100 mm clearance is retained between the opening and the wall endpoint, preventing the door from extending beyond the wall or falling directly on a wall intersection. A minimum spacing of 200 mm is also maintained between adjacent door openings to avoid overlap and unresolved local wall fragments. When these conditions cannot be satisfied at the original position, the opening is shifted along the host wall within the valid range; otherwise, the conflict is recorded for subsequent checking. The relevant values and their parameter basis are summarized in Table 4.
Table 4.
Principal parameters and decision rules for door fitting and automatic window generation.
Since House-GAN++ does not directly provide window information, windows are generated according to the cleaned external wall axes and room categories. Internal walls are not used as window candidates. For rooms adjacent to the external contour, appropriate external wall segments are selected for window placement, and the window size is determined according to room type, wall length, modular snapping, end-clearance, and non-overlap constraints. Through this process, the door and window information required for CAD/BIM transformation is organized into opening objects with host–wall relationships, directions, sizes, and valid placement ranges.
3.2.3. PolyPlan Route: Vector Polygon Representation of HouseDiffusion Generated Results
The PolyPlan route takes the polygon JSON corresponding to each HouseDiffusion result as input. The file contains room polygons, wall segments, door information, boundary contours, room adjacency relationships, and warnings, with room polygons serving as the main geometric source.
TopoPlan and PolyPlan share several subsequent operations, including wall–axis merging, external contour control, door fitting, and automatic window generation, but differ in the information emphasized by their source representations. TopoPlan relies mainly on room topology and mask-derived geometry and therefore focuses on resolving inconsistencies between topology and geometric boundaries. PolyPlan starts from explicit room polygon boundaries and focuses on simplifying, merging, and regularizing existing vector geometry. The overall transformation procedure of the PolyPlan route is shown in Figure 4.
Figure 4.
PolyPlan route for transforming HouseDiffusion-generated JSON into engineering–semantic JSON.
- Room polygon regularization
The coordinate processing strategy of HouseDiffusion is generally consistent with that of the House-GAN++ route, including coordinate conversion, scale setting, and snapping to a 100 mm module.
After the source polygons are converted into millimeter coordinates, collinear points are removed to reduce redundant vertices. Source wall endpoints are then converted into candidate wall axes. Segments shorter than 100 mm are excluded, and segments whose endpoint differences indicate a predominantly horizontal or vertical direction are converted into corresponding orthogonal axes. The procedure does not apply a general arbitrary-angle polygon-orthogonalization algorithm; instead, it regularizes near-horizontal and near-vertical wall segments and subsequently reuses the wall–axis clustering, span-merging, and endpoint-snapping procedures developed for TopoPlan.
Since each room polygon records its boundary independently, the same partition wall may appear repeatedly in adjacent room polygons. Therefore, boundaries that are close in position, consistent in direction, and overlapping in span are merged to form unified wall axes. Line segments on the same axis with small gaps are merged by span merging. Wall segments that are too short, locally protruding, or unable to form valid spatial boundaries are filtered out. Endpoints at horizontal and vertical wall intersections are snapped to unified nodes.
- 2.
- External contour and door/window processing
The external contour control, door-opening matching, and automatic window generation methods of PolyPlan are generally consistent with those of the TopoPlan route. Therefore, these shared processing rules are not repeated in detail in this section.
3.3. Unified Engineering–Semantic JSON Representation
The intermediate JSON is the principal data interface connecting route-specific AI parsing with the downstream CAD and BIM modules. It is different from the original generated JSON files of House-GAN++ and HouseDiffusion. The original files are model-specific outputs, whereas the engineering–semantic JSON is produced after coordinate conversion, semantic parsing, geometric cleaning, wall–axis reconstruction, and opening processing.
The three routes share a common JSON core consisting of source and scale information, configuration parameters, wall axes, grid information, engineering objects, and a generated outline. Engineering objects are stored in a common objects[] array and distinguished by the type field, including wall, room, door, and window. Wall objects record axis geometry and thickness; room objects record semantic categories and spatial extents; and opening objects record their bounding boxes, host axes, dimensions, and, where available, source identifiers.
In addition to the common core, TopoPlan and PolyPlan retain route-specific extension fields, including wall-cleaning statistics, joint-snapping records, door-conflict-resolution results, automatic window-generation records, source adjacency, and source warnings. PolyPlan also preserves source polygon information for selected room and boundary objects. This extensible structure allows the CAD and BIM modules to use the same principal object representation without discarding information specific to the original generative route.
Information traceability varies according to the source representation. ColorPlan preserves route-level source-image information and opening-level data such as original bounding boxes and matched host axes, but it does not store a complete object-level provenance record for every room and wall. TopoPlan and PolyPlan preserve more source identifiers, room relationships, polygon information, generated-object labels, and cleaning records. The JSON should therefore be understood as supporting route-level traceability and object-level provenance where such information is available, rather than as providing identical traceability for all objects.
The file-based JSON interface also decouples the three processing stages. Python scripts are responsible for input parsing and geometric regularization, while the AutoCAD and Revit C# add-ins consume the JSON independently. A parsed result can therefore be checked or corrected before entering CAD or BIM generation, and a new AI generation route can be incorporated by converting its output into the same common object core.
Reduced examples of the engineering–semantic JSON for ColorPlan, TopoPlan, and PolyPlan, together with the pseudocode for rule-based door fitting and automatic window generation, are provided in Appendix A and Appendix B, respectively. The core fields and route-specific extensions of the engineering–semantic JSON are summarized in Table 5.
Table 5.
Core fields and route-specific extensions of the engineering–semantic JSON.
3.4. CAD Transformation Module
The CAD transformation module is implemented as a C# add-in based on the AutoCAD 2026 .NET API. It reads the unified engineering–semantic JSON and creates editable drawing objects in the model space of the active AutoCAD document. The correspondence between the JSON fields, CAD objects, and principal AutoCAD classes is summarized in Table 6.
Table 6.
Mapping and rule-based derivation from the engineering–semantic JSON to CAD and BIM objects.
Wall regions are constructed from the regularized wall axes and wall thickness parameters, after which door and window extents are subtracted to form openings. The remaining wall boundaries are created as grouped native line entities. Door and window objects are generated as editable block references according to their geometric extents and host–wall axes. Door symbols are classified as single-leaf or double-leaf representations according to opening width, while window symbols contain frame lines and modular sash divisions.
To support post-generation correction, the host axis, center point, opening type, and orientation are stored as extended data for each door and window block. Users can therefore adjust the opening direction through left–right and inside–outside flipping commands without changing its host–wall relationship. Grid lines, room labels, dimensions, and the north arrow are generated as editable annotation objects and organized on separate layers. Dimension points are derived from the building outline, grid coordinates, wall geometry, and door/window opening extents. Dimensions, grid annotations, room labels, and the north arrow are organized on separate layers. The completed drawing remains editable in the active document and can subsequently be saved as a DWG file. It is positioned as a preliminary architectural drawing for scheme development and transformation verification rather than as a complete construction drawing.
3.5. BIM Transformation Module
The BIM transformation module is implemented as a C#/.NET 8 add-in based on the Revit 2026 API. After loading the engineering–semantic JSON and the corresponding route configuration, the add-in opens a parameter confirmation dialog before model creation. Initial values obtained from the JSON and configuration file can be reviewed or modified by the user.
Model objects are created within a Revit transaction. The regularized wall axes, opening positions, room boundaries, and building outline are converted into walls, hosted openings, rooms, floors, and roofs. Under the masonry strategy adopted in this study, walls are preliminarily classified as load-bearing or non-load-bearing according to their position, length, adjacent-room relationships, and continuity. Ring beams and lintels are derived from the load-bearing wall layout and door/window openings. The mapping between JSON information, Revit objects, and principal API methods is presented together with the CAD mapping in Table 6.
Custom CP_* parameters are assigned to the generated elements to record component categories, structural roles, dimensions, materials, source information, and opening properties. With information output enabled, the module generates Revit-native schedules and exports room, door/window, component, structural member, and material schedules, together with BIM summaries and checking reports.
The BIM model generated in this study is positioned as a preliminary information model for the scheme development stage, rather than a construction-level structural design model. Structural internal force analysis, reinforcement design, and construction detailing are beyond the scope of this study. Therefore, structural components such as load-bearing walls, ring beams, and lintels in the model are mainly used for preliminary representation and information organization, and do not represent final engineering structural design results.
4. Results
This section presents the experimental sample selection, transformation quality evaluation, and human–machine efficiency comparison for the three input routes. The evaluation examines whether heterogeneous AI-generated floor plans can be transformed into editable CAD drawings and preliminary BIM information models, with particular attention to transformation completeness, typical errors, correction time, and efficiency relative to fully manual production.
4.1. Experimental Samples
Generated outputs from the three models were used as the experimental data source. The purpose of this study was not to compare the generation quality or success rates of the generative models, but to examine the transformation performance of three different AI-generated representations. Each model was therefore run repeatedly to establish a sufficiently large and diverse candidate pool. The total number of raw generations was not used as a comparative indicator, and the final sample numbers should not be interpreted as the generation success rates of the corresponding models.
Candidate samples were screened before the CAD/BIM transformation experiment. The screening aimed to retain results that could be regarded as valid residential floor plans in terms of functional completeness, spatial organization, circulation, geometric regularity, and boundary integrity. Route-specific exclusion criteria were also applied, as summarized in Table 7. Minor local defects that remained within the intended scope of the proposed parsing, cleaning, and regularization procedures were retained rather than excluded.
Table 7.
Exclusion criteria used for experimental sample screening.
All candidate samples were independently reviewed by two researchers, and inclusion required agreement between both reviewers. Cases with different initial judgments were jointly re-examined until a consensus was reached. Samples that did not satisfy the screening criteria were removed before the transformation experiment and were therefore not classified as F-grade transformation results.
Finally, 43 ColorPlan samples generated by the diffusion model, 75 TopoPlan samples generated by House-GAN++, and 47 PolyPlan samples generated by HouseDiffusion were retained, resulting in a total of 165 experimental samples. These samples constitute a transformation-ready validation set rather than a statistical representation of the generation performance of the three models.
4.2. Transformation Quality Grading and Correction-Time Criteria
The evaluation is limited to the contents generated within the defined scope of the proposed workflow. For CAD, this includes the principal architectural elements, room information, grids, dimensions, annotations, and layer organization; for BIM, it includes the principal architectural components and preliminary information-model contents generated by the system. Site design, project-specific elevation information, and other contents dependent on actual project conditions are outside the current scope. Therefore, “complete” in the following grading system refers to completeness within the defined output scope rather than that of a full project or construction-document set.
To evaluate both transformation quality and subsequent correction workload, CAD and BIM outputs were assessed separately using four grades: A, B, C, and F. Grades A–C represent effective transformation results and are distinguished primarily by measured manual correction time and corresponding error characteristics. Grade F represents a transformation failure with no practical value for local correction and is therefore not defined by a correction-time threshold. The detailed criteria are presented in Table 8.
Table 8.
Classification criteria for transformation quality and correction time.
The correction-time thresholds of 1 min and 2.5 min were determined from preliminary timed tests on representative CAD and BIM outputs. The tests showed distinguishable workloads between minor local adjustments, more substantial corrections, and cases requiring extensive reconstruction; the two thresholds were therefore adopted as reproducible intervals for grades A–C. Correction timing started when the generated CAD drawing or BIM model became available for editing and ended after all transformation-related errors within the defined output scope had been corrected and checked. Project-specific design optimization was excluded, and all timed corrections were performed by the same researcher under consistent software and hardware conditions.
The evaluation focuses on whether the information contained in the AI-generated result is correctly transferred into the CAD drawing or BIM model, including wall completeness, spatial-boundary consistency, door/window position and quantity, and required drawing or model information. Errors in rule-based outputs such as grids, dimensions, layers, families, and schedules are also included in the correction workload when they occur. F-grade cases refer only to failures introduced during parsing, CAD generation, or BIM reconstruction; AI-generated plans with missing major functions or fundamentally unreasonable layouts were excluded during sample screening and were not classified as transformation failures. Further professional adjustments required by specific project conditions, design intentions, or building regulations are outside the grading scope.
4.3. Transformation Quality Results
Based on the grading criteria defined above, the CAD and BIM outputs of all 165 samples were classified according to their recorded correction times and observed transformation errors. The grade distributions, effective transformation rates, and correction workloads of the three routes are summarized in Table 9 and Figure 5. Detailed sample-level records, including correction time, correction content, and final transformation grade for all samples, are provided in Data S1. High-resolution complete successful CAD and BIM transformation examples for the three routes are provided in Appendix C.
Table 9.
Statistical results of CAD/BIM transformation quality.
Figure 5.
Comparison of grade distribution of CAD/BIM transformation quality across the three routes.
4.3.1. Overall Transformation Results
The results indicate a generally high level of transformation reliability across the three routes. Grade A constituted the largest proportion in all six CAD/BIM result groups, ranging from 56.0% to 95.3%, while the effective transformation rates ranged from 85.3% to 100.0%. Therefore, most AI-generated inputs could be transformed into usable CAD drawings and BIM models without major reconstruction.
Correction times further indicate the amount of required post-processing. ColorPlan had the lowest mean correction times, at 6 s for CAD and 10 s for BIM, compared with 1 min 44 s and 1 min 34 s for TopoPlan and 45 s and 57 s for PolyPlan, respectively. Most effective outputs therefore required only limited correction. Because mean correction time is calculated only for A–C cases, it should be interpreted together with the F-grade rate rather than used independently to rank the three routes.
4.3.2. Comparative Analysis of Transformation Performance and Error Causes Across the Three Routes
ColorPlan showed the highest transformation stability, with A-grade proportions of 95.3% for CAD and 88.4% for BIM and effective transformation rates of 100.0% and 97.7%, respectively. This performance is closely related to its relatively short information-processing chain. RGB-based classification and connected component analysis directly identify candidate regions for rooms, walls, doors, and windows. Wall regions are then converted into centerlines and regularized through principal-axis snapping, local coordinate snapping, and junction correction, while door and window regions already provide approximate positions, bounding boxes, and directions for subsequent projection and host–wall matching. Consequently, many small raster deviations can be absorbed before CAD/BIM objects are created. Remaining errors mainly arise from local color deviations or fragmented regions affecting component extraction, as well as occasional annotation or wall junction errors. These defects are generally localized, consistent with the high proportion of A-grade results and the low correction workload.
TopoPlan has a more complex error-propagation process. Its generated JSON contains room categories, adjacency relationships, polygons, wall segments, doors, and boundary information, but the geometry is derived from room masks and graph-structured results. Topological relationships must therefore be reconciled with geometric boundaries before engineering objects can be generated. After coordinate conversion and 100 mm snapping, nearby parallel wall axes are clustered within 600 mm, interrupted collinear segments are connected when gaps do not exceed 500 mm, and nearby horizontal–vertical endpoints are snapped within 500 mm. These operations resolve many local inconsistencies, but larger offsets or ambiguous candidate walls may still result in duplicated walls, incomplete closure, or misaligned junctions.
Further inference is required for openings. Each door must be assigned to a valid host wall and fitted within its available segment, while House-GAN++ provides no window information, requiring exterior wall identification followed by window generation from room type and geometric constraints. These additional decisions create further opportunities for error, contributing to the lower A-grade proportions of 61.3% for CAD and 56.0% for BIM and the higher failure rates, particularly the 14.7% BIM F-grade rate. Wall-closure and host relationship errors also have a greater impact in Revit because subsequent component creation depends on valid wall geometry and hosting relationships.
PolyPlan benefits from a more explicit geometric starting point. HouseDiffusion directly provides room polygons, which are converted into millimeter coordinates, simplified by removing collinear points, and regularized through degenerate-segment filtering and near-horizontal/vertical axis conversion. The same axis-clustering, span-merging, and endpoint-snapping procedures used in TopoPlan are then applied. Because each room polygon independently records its boundary, shared partition walls may appear repeatedly and must be merged according to position, direction, and overlapping span. This process introduces some local uncertainty, but the principal wall geometry is already present in the source polygons, reducing the amount of reconstruction required. This is consistent with PolyPlan’s low failure rates of 0% for CAD and 2.1% for BIM.
Its remaining correction workload is concentrated mainly in openings. Door fitting still requires host–wall matching, while window information generally needs to be generated from exterior wall conditions and room categories. Once the polygon geometry has been successfully regularized, such opening-related errors tend to remain local rather than affect the overall spatial structure, explaining the low failure rate together with the continued presence of B- and C-grade cases.
Overall, the comparison shows a clear relationship between the amount of information that must be inferred during transformation and the resulting correction workload. ColorPlan provides explicit semantics for the principal architectural objects and therefore offers a relatively direct path to engineering objects. TopoPlan preserves valuable topological relationships but requires additional geometric reconstruction and opening inference, whereas PolyPlan provides a stronger geometric basis while still requiring reconstruction of part of the opening information. Their errors therefore arise at different stages of the processing chain and propagate differently into CAD and BIM outputs.
The three routes represent three typical upstream AI output forms: semantic raster images, graph-structured data, and polygon-based data. They were established to allow heterogeneous AI outputs to enter a common engineering workflow while retaining the information available in their original representations. After route-specific parsing and regularization, all three forms are reorganized into the same engineering–semantic object structure and can subsequently be mapped to CAD and BIM objects. This explains the value of retaining TopoPlan and PolyPlan even though ColorPlan achieved the best transformation performance in the present experiments. Together, the results demonstrate the compatibility of the proposed framework with different AI-output structures and suggest that future engineering-oriented generative models would benefit from combining explicit component semantics with stable geometry, topology, and opening information.
The transformation quality analysis above quantifies the reliability and correction workload of the automatic workflow. To further examine its practical efficiency relative to conventional production, a controlled human–machine comparison was conducted for CAD drafting and BIM modeling.
4.4. Human–Machine Efficiency Comparison
A controlled human–machine comparison was conducted with four participants with architectural or civil-engineering backgrounds. Because CAD and BIM outputs from the same source plan could receive different transformation grades, samples were selected separately for the two comparisons. For each output type, up to two representative cases were selected from each available A-, B-, and C-grade group of the three routes; where fewer than two cases were available, all cases were included. This resulted in 16 CAD cases and 16 BIM cases. The two sets could overlap when the same source plan satisfied the corresponding selection criteria. Each participant independently completed all selected tasks, providing four manual completion-time records for each case.
Pre-calibrated reference drawings were provided for all tasks. ColorPlan used the corresponding raster inputs, while TopoPlan and PolyPlan used one-to-one visualizations of the JSON cases processed by the automatic workflow. Manual and machine-assisted tasks followed the same modeling parameters, output scope, and completion requirements. For TopoPlan and PolyPlan, participants selected valid exterior window locations according to the same minimum geometric requirements, although identical window positions were not required. Manual time included drafting or modeling, checking, and correction.
Automatic CAD or BIM generation was completed within 2 s for every tested case. A conservative value of 2 s was therefore assigned to the automatic execution stage, and machine-assisted time was calculated as this execution time plus the measured manual correction time. Cases requiring no correction were recorded as 2 s. The detailed human–machine efficiency comparison results are summarized in Table 10.
Table 10.
Human–machine efficiency comparison by output type and transformation grade.
The time-reduction rate was calculated as:
The comparison showed substantial efficiency gains for both output types. Mean CAD completion time decreased from approximately 10 min 37 s manually to 1 min 35 s with machine assistance, corresponding to a reduction of 85.2%. For BIM, the mean time decreased from approximately 15 min 52 s to 1 min 35 s, representing a reduction of 90.0%.
The efficiency advantage was observed across all three routes and available A–C grades. Grade-A cases achieved the greatest savings because little or no correction was required. As correction workload increased toward grades B and C, assisted completion time increased, and the relative reduction generally decreased. Nevertheless, C-grade cases still retained a substantial advantage because the principal drawing or model had already been generated and required local correction rather than complete reconstruction.
These results also indicate that the benefit of the workflow is not determined solely by its short execution time. Its main practical effect is to shift the task from repeated drafting and modeling to checking and local correction. This advantage is especially evident in BIM, where manually creating walls, openings, rooms, and related objects requires substantially more time than correcting an already generated model.
5. Discussion
5.1. Engineering Value
The results demonstrate that the proposed framework has several implications for the engineering use of AI-generated floor plans:
- Continuous transformation from AI outputs to engineering representations.
The workflow establishes a continuous path from heterogeneous AI-generated floor plans to editable CAD drawings and BIM models. Raster images, graph-structured data, and polygon-based outputs are processed through route-specific interpretation and regularization and subsequently converted into explicit walls, openings, rooms, grids, dimensions, and BIM components. This allows generated layouts to proceed beyond the generation stage and enter subsequent drawing and modeling workflows.
- 2.
- A shared engineering–semantic interface for heterogeneous AI outputs.
The engineering–semantic JSON separates source-specific parsing from downstream CAD/BIM generation. After different input representations are reorganized into a common engineering-object structure, AutoCAD and Revit can reuse the same principal object-generation logic. This reduces the dependence of downstream implementation on individual generative models and provides an extensible interface for incorporating additional AI-generation methods.
- 3.
- Reduction and reorganization of manual work.
The workflow automates repetitive operations involving geometric reconstruction, component creation, annotation, and information organization, shifting manual work toward checking, local correction, parameter adjustment, and professional design decisions. The human–machine comparison showed reductions of 85.2% in CAD production time and 90.0% in BIM modeling time. Even when local correction was required, modifying an automatically generated engineering representation remained substantially more efficient than reconstructing it from the source plan.
- 4.
- Reusable outputs for subsequent design development.
The generated CAD drawings remain editable native objects, while the BIM models retain component relationships, parameters, schedules, and other structured information. The outputs can therefore support subsequent scheme refinement, information supplementation, and further engineering processing, extending AI-generated floor plans from isolated generation results to reusable digital design information.
- 5.
- Extension beyond recognition and reconstruction-oriented studies.
Previous floor plan recognition and vectorization studies mainly recover geometry and semantics from existing raster drawings, while drawing-to-BIM research primarily focuses on reconstructing existing architectural documents. The present study extends this research context to heterogeneous AI-generated design outputs and further evaluates correction workload and human–machine efficiency. Its contribution therefore lies not only in reconstructing geometric information but also in connecting heterogeneous generative representations with a shared downstream engineering workflow.
5.2. Limitations
Several limitations should be considered when interpreting the results:
- Current depth of CAD and BIM outputs.
The generated CAD drawings contain editable walls, openings, room labels, grids, dimensions, and layer organization but remain preliminary architectural representations. Standardized drawing frames, elevations, material notes, construction details, and full construction-document compliance require further development. Similarly, the BIM module provides configurable masonry models, component parameters, schedules, and checking outputs, but structural analysis, reinforcement design, detailed construction modeling, multidisciplinary coordination, and formal code-compliance checking are not yet included.
- 2.
- Dependence on AI-generated input quality.
Transformation performance remains affected by representation-specific defects in the source data, including unclear color semantics in ColorPlan, topology–geometry inconsistencies in TopoPlan, and local polygon defects in PolyPlan. The framework can correct or regularize many local problems, but severe source-data defects may still propagate into downstream outputs.
- 3.
- Validation scope.
The current validation focuses on transformation-ready single-story masonry residential layouts satisfying the minimum input conditions defined in this study. The results should therefore not be directly generalized to multi-story residences, frame structures, or public buildings, which introduce additional requirements related to vertical circulation, inter-floor alignment, structural-grid coordination, multidisciplinary systems, and more complex code constraints.
- 4.
- Scale of the human–machine experiment.
The efficiency experiment involved four participants with different levels of academic and professional experience. Although this provided some diversity in drafting and modeling experience, the limited number of participants restricts the generalizability of the results. The measured efficiency improvements should therefore be regarded as preliminary findings within the current controlled experimental setting, and further validation with a larger and more diverse participant group is required.
5.3. Future Research Directions
Future research can be further developed in three directions. First, more engineering constraints can be incorporated into the AI generation stage to improve the engineering regularity of generated results and reduce the amount of geometric correction required in subsequent transformation. Second, the CAD and BIM outputs can be further improved by adding more standardized construction drawing expressions, construction details, material practices, and multidisciplinary information. Third, structural calculation and code checking can be introduced into the BIM transformation process, so that the automatically generated models can gradually evolve from preliminary information representations toward digital models that better meet engineering design requirements.
6. Conclusions
This study investigated the engineering-oriented transformation of heterogeneous AI-generated residential floor plans into editable CAD drawings and preliminary BIM information models. The main conclusions are organized according to the four research objectives defined in the Introduction.
- Heterogeneous output transformation
Three transformation routes were established for semantic raster images, graph-structured layouts, and polygon-based outputs. Route-specific parsing and regularization allow these heterogeneous representations to enter a common CAD/BIM workflow, demonstrating the feasibility of accommodating different native AI output structures within one engineering framework.
- 2.
- Unified engineering–semantic representation
A shared engineering–semantic JSON layer was developed to organize wall axes, rooms, openings, grids, outlines, and associated attributes while retaining route-specific information. This structure separates source-specific processing from downstream implementation and supports consistent mapping to editable AutoCAD entities and Revit objects.
- 3.
- Transformation reliability
Among 165 transformation-ready samples, the effective CAD/BIM transformation rates were 100.0%/97.7% for ColorPlan, 93.3%/85.3% for TopoPlan, and 100.0%/97.9% for PolyPlan. The results indicate that downstream transformability depends strongly on the completeness and stability of semantic, geometric, topological, and opening information in the source representation. From an application perspective, ColorPlan is preferable when explicit semantic and opening information is available, TopoPlan when room topology is emphasized, and PolyPlan when relatively stable polygon geometry is available. These recommendations are based on source-data characteristics rather than a fixed correspondence with specific design stages.
- 4.
- Engineering efficiency
The controlled human–machine comparison reduced mean CAD completion time from 10 min 37 s to 1 min 35 s and BIM time from 15 min 52 s to 1 min 35 s, corresponding to reductions of 85.2% and 90.0%, respectively. The workflow therefore substantially reduces repetitive drafting and preliminary modeling work while shifting manual effort toward checking and local correction.
Overall, the proposed framework provides a continuous engineering path from heterogeneous AI-generated layouts to editable CAD and BIM representations. The current validation is limited to transformation-ready single-story masonry residences and preliminary engineering outputs; future work will extend the framework to more complex building types, structural systems, and engineering information.
Supplementary Materials
The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/buildings16173422/s1, Data S1: Detailed Quantitative Results.
Author Contributions
Conceptualization, Y.X. and T.Z.; methodology, Y.X.; software, Y.X.; validation, Y.X.; formal analysis, Y.X.; investigation, Y.X.; resources, Y.X. and T.Z.; data curation, Y.X.; writing—original draft preparation, Y.X.; writing—review and editing, Y.X. and T.Z.; visualization, Y.X.; supervision, T.Z.; project administration, T.Z. All authors have read and agreed to the published version of the manuscript.
Funding
The National Natural Science Foundation of China (Grant No. 52278202) sponsored this work.
Data Availability Statement
The data presented in this study are available from the corresponding author upon reasonable request. Some data are not publicly available due to project-related restrictions.
Acknowledgments
During the preparation of this manuscript, the authors used ChatGPT (GPT-5.5, OpenAI) for language polishing and translation assistance only. The original research ideas, methodology, experiments, data, analysis, interpretation of results, and conclusions were independently completed by the authors. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Reduced Examples of the Engineering–Semantic JSON
The following reduced examples illustrate the principal structure of the engineering–semantic JSON. Repeated objects and non-essential records are omitted for readability.
| Listing A1. Reduced example of the ColorPlan engineering–semantic JSON. |
| { “source_image”: “case_01.png”, “image_size_px”: [1200, 1200], “config”: { “route”: “ColorPlan”, “pixel_to_mm”: 17.5, “wall_thickness_mm”: 200 }, “axes”: [ {“id”: “AX01”, “orientation”: “horizontal”, “coordinate_mm”: 3000} ], “grids”: { “vertical”: [0, 3000, 6000], “horizontal”: [0, 3000, 6000] }, “objects”: [ {“id”: “R01”, “type”: “room”, “category”: “Living”}, {“id”: “W01”, “type”: “wall”, “axis_id”: “AX01”}, {“id”: “D01”, “type”: “door”, “width_mm”: 800, “host_axis”: “AX01”}, {“id”: “WIN01”, “type”: “window”, “width_mm”: 1200, “host_axis”: “AX01”} ], “outline”: [[0, 0], [6000, 0], [6000, 6000], [0, 6000]] } |
| Listing A2. Reduced example of the TopoPlan engineering–semantic JSON. |
| { “source_generated_json”: “case_01_generated.json”, “config”: { “route”: “TopoPlan”, “scale_mm_per_unit”: 100, “wall_thickness_mm”: 200 }, “axes”: [ {“id”: “AX01”, “orientation”: “horizontal”, “coordinate_mm”: 4200} ], “objects”: [ {“id”: “R01”, “type”: “room”, “category”: “Living”, “source_id”: “room_3”}, {“id”: “D01”, “type”: “door”, “width_mm”: 800, “host_axis”: “AX01”}, {“id”: “WIN01”, “type”: “window”, “generated”: true} ], “wall_cleanup”: {“cluster_tolerance_mm”: 600}, “joint_cleanup”: {“snap_tolerance_mm”: 500}, “source_adjacency”: [[“room_3”, “room_5”]], “outline”: [[1000, 1200], [8200, 1200], [8200, 7200], [1000, 7200]] } |
| Listing A3. Reduced example of the PolyPlan engineering–semantic JSON. |
| { “source_generated_json”: “case_01_pred.json”, “config”: { “route”: “PolyPlan”, “source_canvas_units”: 256, “scale_mm_per_unit”: 100 }, “axes”: [ {“id”: “AX01”, “orientation”: “vertical”, “coordinate_mm”: 5200} ], “objects”: [ { “id”: “R01”, “type”: “room”, “category”: “Bedroom”, “source_polygon”: [[42, 45], [82, 45], [82, 83], [42, 83]] }, {“id”: “D01”, “type”: “door”, “width_mm”: 800, “host_axis”: “AX01”}, {“id”: “WIN01”, “type”: “window”, “generated”: true} ], “wall_cleanup”: {“minimum_source_axis_length_mm”: 100}, “joint_cleanup”: {“snap_tolerance_mm”: 500}, “outline”: [[1200, 1500], [8200, 1500], [8200, 8300], [1200, 8300]] } |
Appendix B. Pseudocode for Door Fitting and Automatic Window Generation
The following pseudocode summarizes the principal decision logic for door fitting and automatic window generation. For readability, implementation-level details such as data traversal, geometric calculation functions, intermediate variable handling, exception processing, and detailed record writing are omitted. The pseudocode retains the main processing sequence, decision conditions, and key geometric parameters used in the experiments.
| Algorithm A1. Door fitting for TopoPlan and PolyPlan |
| Input: source doors, wall axes, room adjacency Output: fitted doors 1: for each door d: 2: determine door orientation 3: find nearby candidate wall axes 4: if room adjacency is available: 5: prioritize walls separating the connected rooms 6: select host wall according to orientation and distance 7: project door center onto the host wall 8: use 800 mm width when no stable source width is available 9: keep ≥100 mm from wall ends and ≥200 mm from adjacent doors 10: if conflict occurs: 11: shift the door to the nearest valid position 12: create door if a valid position exists; otherwise record as unresolved 13: end for |
| Algorithm A2. Automatic window generation for TopoPlan and PolyPlan |
| Input: rooms, wall axes, existing openings, building outline Output: generated windows 1: for each room r: 2: identify candidate room sides 3: retain a side only if: 4: no adjacent room exists, 5: a corresponding wall axis exists, and 6: the wall belongs to the exterior outline 7: determine the usable wall span 8: keep 300 mm from wall ends and existing openings 9: determine window width from room type and available wall length 10: snap width to a 300 mm module 11: require width ≥600 mm and single-module width ≤1800 mm 12: divide wider openings into at most four modules with 100 mm gaps 13: snap the final position to the 100 mm interval 14: create the window if no conflict occurs; otherwise record as skipped 15: end for |
Appendix C. Complete Successful Transformation Examples
The examples in Appendix C show the principal CAD and BIM outputs of the three transformation routes. The CAD views contain only the main drawing contents generated within the scope of this study. In the BIM views, the roof is hidden to improve the visibility of the internal spatial organization and model components.
Figure A1.
Complete successful transformation example of the ColorPlan route.
Figure A2.
Complete successful transformation example of the TopoPlan route.
Figure A3.
Complete successful transformation example of the PolyPlan route.
References
- Ho, J.; Jain, A.; Abbeel, P. Denoising diffusion probabilistic models. Adv. Neural Inf. Process. Syst. 2020, 33, 6840–6851. [Google Scholar]
- Rombach, R.; Blattmann, A.; Lorenz, D.; Esser, P.; Ommer, B. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2022; pp. 10684–10695. [Google Scholar]
- Hu, R.; Huang, Z.; Tang, Y.; Van Kaick, O.; Zhang, H.; Huang, H. Graph2plan: Learning floorplan generation from layout graphs. ACM Trans. Graph. (TOG) 2020, 39, 118: 1–118: 114. [Google Scholar]
- Nauata, N.; Chang, K.-H.; Cheng, C.-Y.; Mori, G.; Furukawa, Y. House-gan: Relational generative adversarial networks for graph-constrained house layout generation. In Proceedings of the European Conference on Computer Vision; Springer: Berlin/Heidelberg, Germany, 2020; pp. 162–177. [Google Scholar]
- Nauata, N.; Hosseini, S.; Chang, K.-H.; Chu, H.; Cheng, C.-Y.; Furukawa, Y. House-gan++: Generative adversarial layout refinement network towards intelligent computational agent for professional architects. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2021; pp. 13632–13641. [Google Scholar]
- Luo, Z.; Huang, W. FloorplanGAN: Vector residential floorplan adversarial generation. Autom. Constr. 2022, 142, 104470. [Google Scholar] [CrossRef] [Scilit]
- Shabani, M.A.; Hosseini, S.; Furukawa, Y. Housediffusion: Vector floorplan generation via a diffusion model with discrete and continuous denoising. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2023; pp. 5466–5475. [Google Scholar]
- Leng, S.; Zhou, Y.; Dupty, M.H.; Lee, W.S.; Joyce, S.; Lu, W. Tell2design: A dataset for language-guided floor plan generation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Association for Computational Linguistics: Stroudsburg, PA, USA, 2023; pp. 14680–14697. [Google Scholar]
- Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. Lora: Low-rank adaptation of large language models. In Proceedings of the ICLR 2022 Conference, Online, 25–29 April 2022; Volume 1, p. 3. [Google Scholar]
- Liu, C.; Wu, J.; Kohli, P.; Furukawa, Y. Raster-to-vector: Revisiting floorplan transformation. In Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV); IEEE: Piscataway, NJ, USA, 2017; pp. 2214–2222. [Google Scholar]
- Kalervo, A.; Ylioinas, J.; Häikiö, M.; Karhu, A.; Kannala, J. Cubicasa5k: A dataset and an improved multi-task model for floorplan image analysis. In Proceedings of the Scandinavian Conference on Image Analysis; Springer: Cham, Switzerland, 2019; pp. 28–40. [Google Scholar]
- Zeng, Z.; Li, X.; Yu, Y.K.; Fu, C.-W. Deep floor plan recognition using a multi-task network with room-boundary-guided attention. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2019; pp. 9096–9104. [Google Scholar]
- Huang, L.; Wu, J.-H.; Wei, C.; Li, W. Muranet: Multi-task floor plan recognition with relation attention. In Proceedings of the International Conference on Document Analysis and Recognition; Springer: Cham, Switzerland, 2023; pp. 135–150. [Google Scholar]
- Chen, J.; Qian, Y.; Furukawa, Y. Heat: Holistic edge attention transformer for structured reconstruction. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2022; pp. 3856–3865. [Google Scholar]
- Hu, S.; Wu, W.; Su, R.; Hou, W.; Zheng, L.; Xu, B. Raster-to-Graph: Floorplan Recognition via Autoregressive Graph Prediction with an Attention Transformer. Comput. Graph. Forum 2024, 43, e15007. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.; Liu, C.; Wu, J.; Furukawa, Y. Floor-sp: Inverse cad for floorplans by sequential room-wise shortest path. In Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV); IEEE: Piscataway, NJ, USA, 2019; pp. 2661–2670. [Google Scholar]
- Lim, J.; Janssen, P.; Stouffs, R. Automated generation of BIM models from 2D CAD drawings. In Proceedings of the 23rd CAADRIA Conference, Beijing, China, 17–19 May 2018; pp. 61–70. [Google Scholar]
- Yang, B.; Liu, B.; Zhu, D.; Zhang, B.; Wang, Z.; Lei, K. Semiautomatic structural BIM-model generation methodology using CAD construction drawings. J. Comput. Civ. Eng. 2020, 34, 04020006. [Google Scholar] [CrossRef] [Scilit]
- Urbieta, M.; Urbieta, M.; Laborde, T.; Villarreal, G.; Rossi, G. Generating BIM model from structural and architectural plans using Artificial Intelligence. J. Build. Eng. 2023, 78, 107672. [Google Scholar] [CrossRef] [Scilit]
- Barreiro, A.C.; Trzeciakiewicz, M.; Hilsmann, A.; Eisert, P. Automatic reconstruction of semantic 3D models from 2D floor plans. In Proceedings of the 2023 18th International Conference on Machine Vision and Applications (MVA); IEEE: Piscataway, NJ, USA, 2023; pp. 1–5. [Google Scholar]
- Feist, S.; Jacques de Sousa, L.; Sanhudo, L.; Poças Martins, J. Automatic reconstruction of 3D models from 2D drawings: A state-of-the-art review. Eng 2024, 5, 784–800. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.















