Data conversion method for converting json into step on WEB end software

By converting JSON to STEP format data on the web-based software, the problem that web-based design schemes cannot be directly converted into STEP files is solved, enabling efficient HVAC analysis and fluid dynamics modeling, and improving design efficiency and accuracy.

CN119292600APending Publication Date: 2025-01-10RED STAR MACALLINE GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411248106.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

Existing technology cannot directly convert interior design schemes from web-based design software into STEP format files, which requires HVAC analysis to be remodeled, resulting in low efficiency and cumbersome process. Furthermore, web-based design modifications cannot be synchronized to the simulation model.

Method used

This paper describes a method for converting JSON to STEP data on a web-based software platform. By defining a parser, transcriber, and data document manager in a Node.js program, the method converts JSON-formatted interior design schemes into multiple STEP files, supporting CFD fluid dynamics modeling.

Benefits of technology

It enables the direct conversion of web-based design schemes into STEP format, improving the efficiency of HVAC analysis, ensuring model accuracy, supporting multi-purpose fluid dynamics testing, and avoiding redundant modeling and synchronization issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292600A_ABST
    Figure CN119292600A_ABST
Patent Text Reader

Abstract

The invention provides a data conversion method for converting json into step on WEB end software. The method comprises the following steps: step 1, designing a Nodejs program; 2, a user configures an export request at the front end through a graphical interface and sends out the export request; 3, the Nodejs program at the rear end obtains the json format interior design scheme from the WEB end software; 4, analyzing the json format interior design scheme by an analyzer, and outputting a classification result I and a classification result II; 5, splitting and translating the instance data of the wall body and the instance data of the article; step 6, the step data document manager receives the instance data and the instance data of the article and outputs step format data; and 7, asynchronously transmitting the step format data back to the front end, and finishing downloading by the front end. According to the method, the overall indoor design scheme of the web end can be converted into a data set which can be used for CFD fluid mechanics and is composed of a plurality of step files, so that modeling can be rapidly completed in various fluid mechanics test software, the aim that one scheme has multiple purposes is achieved, and the implementation efficiency of heating and ventilation analysis requirements is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of 3D data format conversion, and in particular relates to a data conversion method for converting json into step on a WEB-side software. Background Art

[0002] There are numerous design tools in the home improvement industry, and the current mainstream web-based design tools are quite popular. However, after the designer completes the design plan in the web-based design software, this plan cannot be directly used by HVAC (air conditioning) companies. This means that if the customer needs HVAC analysis, they must re-measure the house and re-model the house. Moreover, the design changes on the web side cannot be synchronized to the simulation model, which is not only inefficient but also extremely cumbersome.

[0003] In addition, the current mainstream web-based interior design software in China does not have a function that can directly convert solution data into step format files. Only the M Design Cloud design software where the present invention is located is supported by the present invention. The problem solved by the present invention is that before, design was the design, and the CFD analysis of the HVAC solution was implemented by remodeling using professional software such as revit and solidworks, and it could not be completely connected. The reason why the step format file is used is that CFD analysis has high requirements for the model, and the models displayed by ordinary front ends (such as stl format) generally have model surface intersections, broken surfaces, or surface overlaps, which will lead to inaccurate calculations or even impossible calculations. Summary of the invention

[0004] The purpose of the present invention is to provide a data conversion method for converting json into step on WEB software, and to convert the overall interior design plan on the web into a data set consisting of multiple step files that can be used for CFD fluid mechanics, so that modeling can be quickly completed in various fluid mechanics testing software, achieving the goal of one plan having multiple uses, and greatly improving the implementation efficiency of HVAC analysis needs.

[0005] A data conversion method for converting json into step on a web-side software includes the following steps:

[0006] Step 1: Design the Nodejs program, which includes the following steps:

[0007] Define a parser, which is used to classify data. Its input is an interior design plan in json format, and its output is classification result 1 and classification result 2; the classification result 1 is a data array, which includes the data of each wall structure component, and the classification result 2 is a data array, including the data of each indoor item;

[0008] A translation analyzer for defining spaces and walls, whose input is the classification result 1, and whose output is the instance data after the geometric relationship combination definition of the wall; the geometric relationship includes one or more of points, lines, and surfaces;

[0009] A translation analyzer for defining indoor objects is inputted as the second classification result, and outputted as instance data after the objects are defined by geometric relationship combination;

[0010] Define a step data document manager, whose input is the instance data of the wall and the instance data of the item, and whose output is the step format data;

[0011] Step 2: The user configures the export request through the graphical interface on the front end and sends it;

[0012] Step 3: The back-end Nodejs program obtains the interior design plan in json format from the WEB software;

[0013] Step 4: The parser parses the JSON format interior design plan, classifies the plan data according to the type constants of each category defined in the parser and the type of each data in the plan data, and outputs classification result 1 and classification result 2;

[0014] Step 5: Split and translate the instance data of the wall and the instance data of the object, specifically including the following steps:

[0015] The space and wall translation analyzer receives the classification results and processes them through the geometric decomposition method for the wall in StepExporter, and outputs the wall as a data set consisting of multiple geometric concepts defined according to the base class StepEntity;

[0016] The translation analyzer of indoor objects receives the classification result and processes it through the object geometry disassembly method in StepExporter, and outputs a wall consisting of multiple data sets based on the geometric concepts defined by the base class StepEntity;

[0017] Step 6: The step data document manager receives the instance data and the instance data of the item, and outputs the step format data;

[0018] Step 7: asynchronously transmit the step format data back to the front end, and the front end completes the download.

[0019] Preferably, in step 1, when defining the parser, a data factory is defined to create geometric data during the conversion process to process the first classification result and the second classification result.

[0020] Preferably, when defining the parser, define the class of the parser StepService for preliminary acquisition of json data.

[0021] Preferably, step 1 also includes the following steps:

[0022] Define the entity type base class StepEntity of step format data, and then define the base class StepObject of the constituent elements within the StepEntity entity.

[0023] Preferably, the geometric disassembly method for the wall in step 5 specifically includes the following steps:

[0024] Step 1: Put the obtained Mesh information of the wall on the WEB side into a Map dictionary class. The primary key is a UUID, which will correspond to the StepSurface number in the Step format in the future. The Mesh information is the 3D geometric mesh information.

[0025] Step 2: Disassemble the 3D geometric mesh information in the dictionary class. In the process of parsing its vertex information, vertex index, and vertex normal information, create data instances available for each Step based on StepEntity one by one to represent the analysis results.

[0026] Step 3: The analysis results are summarized into a StepShell instance to represent a whole apartment wall connected by walls and completely closed;

[0027] Step 4: Put the results of steps 2 and 3 into the document management category for collective translation and output.

[0028] Preferably, the geometric disassembly method for the object in step 5 specifically includes the following steps:

[0029] Step A: parse the obtained basic information of the model, including position information, rotation information, bounding box information, and category name; the bounding box information includes the length, width, and height information of the bounding box;

[0030] Step B: Read the original Mesh information of the model and decompose it into data instances available for each Step based on StepEntity to represent the analysis results;

[0031] Step C: According to the result obtained in step A, adjust the result of step B to ensure the accuracy of Step data, so as to correctly correspond to the placement of objects in 3D space and ensure the accuracy of space and volume in subsequent fluid mechanics calculations;

[0032] Step D: Put the results obtained in step C into the document management class for final collective translation and output.

[0033] Compared with the prior art, the advantages of the present invention are:

[0034] 1. In the technical environment involved in the present invention, users can use the "one-click export step" function to initiate an export request that can be configured through a graphical interface. In the back end, the nodejs program is responsible for parsing the solution data (in json format) from the web-side design software. Then, the data is processed twice, and the data is re-described and assembled in strict accordance with the topological structure of the step format. Finally, the processed results will be asynchronously transmitted back to the front end, thereby realizing the download operation of the results.

[0035] 2. It not only performs well in ordinary decoration, but also can quickly implement solutions in the field of small-scale industrial installations, and provide customers with detailed reports on cooling and heating through efficient CFD testing. This means that when customers choose air conditioning solutions, they are no longer blindly guessing, but can make accurate decisions based on specific data and effects, thus avoiding unnecessary risks and waste.

[0036] 3. It pioneered the support of directly converting solution data into step format files. This breakthrough solved the long-standing problem of separation between design and CFD analysis of HVAC solutions, and achieved a complete connection between the two. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 Design a floor plan for the front end;

[0038] Figures 2 to 4 This is a schematic diagram after the air outlet is assembled;

[0039] Figure 5 This is a schematic diagram of the windows and bay windows after assembly;

[0040] Figures 6 to 8 It is a schematic diagram of the opening and closing operation of the export and door;

[0041] Figures 9-10 A schematic diagram for exporting content control;

[0042] Figures 11-12 This is a schematic diagram for exporting records;

[0043] Fig.13 To export the result graph;

[0044] Fig.14 This is the effect diagram of interior furniture after importing starccm CFD testing software;

[0045] Fig.15 This is the effect diagram of the entrance door after importing the starccm CFD testing software;

[0046] Fig.16 This is a flow chart of the data conversion method for converting json into step on the WEB software. DETAILED DESCRIPTION

[0047] The following is a more detailed description of the data conversion method for converting json to step on the web-side software of the present invention in conjunction with a schematic diagram, which shows a preferred embodiment of the present invention. It should be understood that those skilled in the art can modify the present invention described herein and still achieve the advantageous effects of the present invention. Therefore, the following description should be understood as being widely known to those skilled in the art and not as a limitation of the present invention.

[0048] A data conversion method for converting json into step on the WEB software, such as Fig.16 As shown, the following steps are included:

[0049] Step 1. Design the Nodejs program.

[0050] Define a parser, which is used to classify data. Its input is an interior design plan in JSON format, and its output is classification result one and classification result two.

[0051] The classification result 1 includes various walls and structural components of the house, such as columns, doors, windows, openings, etc.

[0052] The second classification result is the items and furniture placed indoors in the design, such as coffee tables, desks, beds, etc. The purpose is to achieve better volume accuracy in fluid mechanics calculations.

[0053] A translation analyzer for defining spaces and walls is defined, wherein the input is the classification result 1 and the output is the instance data of the wall.

[0054] These instance data are still the wall object geometry data defined by the WEB design software, for example, only the vertex data and vertex index data commonly used in 3D geometry.

[0055] The space and wall translation analyzer interprets the vertices, planes, and vectors of the 3D walls on the web, the vertices, planes, and vectors of the bounding boxes of the structural components related to doors and windows that can be opened and closed, and generates corresponding 3D geometric data sets in the corresponding Step format standard. Its composition is the instances of various geometric definition classes derived from the StepEntity base class, which are saved in the document management class.

[0056] The translation analyzer for defining indoor objects has the second classification result as input and the instance data of the objects as output. These instance data are still the geometric data of the objects defined by the WEB design software, such as the position, rotation, size, outer contour and other information in the room.

[0057] The translation analyzer of indoor objects interprets the position, rotation, size, outer contour and other data of 3D objects on the web, and generates a corresponding 3D geometric data set in the corresponding Step format standard. It is composed of instances of various geometric definition classes derived from the StepEntity base class and saved in the document management class.

[0058] If it is an air outlet or air conditioner type, some special processing is required. For items of the air outlet type, the vertex data of the air outlet will be projected onto the wall where it is installed based on the basic information and size of the item.

[0059] The projection consists of multiple contour points, and connecting the contour points is the projection geometry of the installation wall. Based on the projection data, the accurate data of the air outlet attached to the wall is generated, and an additional geometric data instance of the air outlet is generated on the wall. The meaning of this data is to represent the fluid release position and area for subsequent fluid calculations.

[0060] Define the step data document manager, whose input is the geometric definition instance array of the wall and the geometric definition instance array of the item.

[0061] One of its functions is to control the dependencies between these geometric definitions, for example, line A is determined by point b and point c.

[0062] Function 2: Convert the array of geometry definition instances into single data in step format file one by one.

[0063] For example, convert StepPoint point type data into

[0064] #55=CARTESIAN_POINT('NONE',(-6604.83936,2800.00000,-3439.75122)); A piece of data in the Step file.

[0065] Function 3 mainly saves the generated Step content data and assembles and combines the data according to the step format standard (ISO10303). Secondly, it can record the data of the template step that needs to be directly referenced externally.

[0066] Specifically, the most important parts of the STEP file are:

[0067] The file header is used to provide basic information about the file, including the file name, file execution standard, creation date, etc. It consists of multiple definition methods and data.

[0068] The Data Section is used to define the geometry and topology information of the model, including the definition of geometric elements such as points, lines, surfaces, and entities, and is composed of multiple definition methods and data.

[0069] The Entities Section is used to describe specific objects in the model, including: detailed definitions of various geometric entities (such as lines, circles, splines, etc.), which are composed of multiple definition methods and data.

[0070] 1. Since the step format is a topological structure, its working principle is similar to object-oriented programming.

[0071] Therefore, we first define the step format entity type base class StepEntity.

[0072] The base class StepEntity is used to save the overall related properties of the step file. The definition includes:

[0073] Abstract methods such as initialization init, data import setFromDump, data assembly getSentence, and export dump.

[0074] Then define the base class StepObject of the constituent elements within the StepEntity entity.

[0075] The base class StepObject is used to store the definition of each piece of data in the Data Section and Entity Section of the file. The definition includes:

[0076] Each piece of data has a UUID (unique ID), type classID, data name dataName, and two abstract methods for importing and exporting: setFromDump import and Dump export.

[0077] 2. Define a factory class (common design pattern in software design: factory pattern), and define a data factory to facilitate the creation of geometric data during the conversion process, so as to better handle classification results one and two.

[0078] Specific implementation: Create an object named StepObjectFactory with the following characteristics:

[0079] Contains a Map dictionary type attribute stepObjectFactories, which is used to store object factories corresponding to different geometry definition IDs.

[0080] For example, a point in a geometric sense has a type of CARTESIAN_POINT in Step.

[0081] The custom code method registerObjectFactory is used to register an object factory. If you try to register a factory for an existing class ID, an error will be thrown.

[0082] The custom code method createObject creates a corresponding object based on the given IObjectDump type object. If the corresponding factory is found, the factory is used to create the object and set the object properties from the dump data.

[0083] 3. Point 1 only defines the base class of the object and the methods in the class are abstract, while each definition method in DataSection and EntitySection needs to be defined independently, so many detailed data types are defined.

[0084] Take the method of defining DataSection as an example:

[0085] StepDirection (vector): Imports the StepEntity base class, ModelClassId constant, StepObjectFactory, THREE.JS library (a commonly used 3D code library for WEB front-end development), and regular expression constants from the specified path.

[0086] A customized interface IStepDirectionData is created, which contains a dir property of type THREE.Vector3, which represents the direction vector.

[0087] The StepDirection class is customized and inherited from StepEntity.

[0088] In the constructor, a numeric id and an optional IStepDirectionData type parameter prop are received. If no prop is passed in, an object with a direction of zero vector is created by default and the corresponding class ID is set.

[0089] The custom dump method converts the direction data into a string in a specific format, which is a standard directly available in STEP and uses string assembly.

[0090] The custom setFromDump method parses the direction data from the given string and sets it to the object, throwing an error if the parsing fails.

[0091] 4. Define data constants to store the definition name of each entity data in STEP (same as Step format definition, no need to process later). For example:

[0092] StepEdgeCurve = 'EDGE_CURVE', StepDirection = 'DIRECTION'; (same as step standard content)

[0093] Define the air conditioning type constants that need to be added to the fluid dynamics calculation, for example:

[0094] / / Outlet type

[0095] CategoryTypes.AirOutlet,

[0096] / / Air Conditioning Type

[0097] CategoryTypes.AirConditioner,

[0098] / / Other hardware types

[0099] CategoryTypes.OtherHardware,

[0100] / / Pipeline component type

[0101] CategoryTypes.PipeComponent,

[0102] / / Pipeline type

[0103] CategoryTypes.Pipe,

[0104] / / Air conditioner outdoor unit type

[0105] CategoryTypes.ACOuterMachine,

[0106] / / Wall-mounted air conditioner type

[0107] CategoryTypes.WallMountedAC,

[0108] / / Vertical air conditioner type

[0109] CategoryTypes.VerticalAC,

[0110] 5. Define a class called StepExporter as an overall export control and determine how to export types.

[0111] A constant array WindowTypes is defined, which contains various window types and is used for different logics of specific types of windows.

[0112] 5-1. Class properties and constructors

[0113] The StepExporter class has several properties, including the task ID, a list of categories to hide, a list of IDs of closed doors, a StepService instance, a list of IDs of exterior surfaces, the exported geometry, and a map to record surface treatment information.

[0114] The constructor receives the design path and the application instance, initializes some properties, and creates an empty map of surface treatment records.

[0115] 5-2. Main methods

[0116] Custom openDesign method: performs a series of operations when opening a web-based design, including obtaining external surfaces, processing doors, windows, and vents, filtering geometric data, and creating a StepExporter exporter instance.

[0117] Custom _openingProcess method: Specially handles the opening operation of doors and windows. By reading the switch information and outline information of doors and windows, it controls whether to delete windows and doors, or process the convex volume of bay windows. The methods are as follows:

[0118] ① Customize the _handleOpeningRemove method: delete doors, windows and related shapes.

[0119] ②Custom _handleBayWindow method: handle the bay window, create a new surface and add it to the building.

[0120] ③Customize the _handleAirOutlet method: handle the air outlet and add a processing surface to the air outlet according to different situations.

[0121] ④Customize _addFixSurfaceForOutlet method: create a processing surface for the adsorbed air outlet.

[0122] ⑤Customize the _getOutletBoundProfile method: get the boundary points of the air outlet according to the size of the air outlet.

[0123] ⑥Custom _addFixSurfaceForOpening method: add processing surface for doors and windows with openings.

[0124] ⑦Custom _filterGeometryData method: filter defective or redundant geometry data as required.

[0125] 6. Use a parser StepService class to parse the json data on the web side (the full data of the entire interior design plan from the front-end web side) and classify the data according to the constants provided in 3.

[0126] Mainly used to handle STEP-related operations. The following are its main functions:

[0127] 6-1. Properties and Constructors

[0128] It includes an application instance _app, an object _stepCreator responsible for creating a house type STEP model (including walls, structural parts, doors, windows, holes, etc.), an object _stepModelProcess responsible for processing alternative models, as well as a task ID _taskId and a default file name filename.

[0129] The constructor receives the application instance and task ID and initializes the relevant objects.

[0130] 6-2. Methods

[0131] Customize the createApartmentStepModel method:

[0132] Filter data based on specific geometric object types. If there are surface records that need to be processed. Detailed process in StepService:

[0133] A class named StepApartmentCreator is used to create the STEP model related to the apartment type. The following are its main functions:

[0134] 6-2-1. Properties and constructors

[0135] Contains an application instance _app, an array _faces for storing StepFace objects, and an optional map _fixSurfaceMap for storing surface processing information.

[0136] The constructor receives the application instance and initializes relevant properties.

[0137] 6-2-2. Method

[0138] Custom setFixSurfaceMap method: used to set the surface processing map.

[0139] Customize the createApartmentStepModel method:

[0140] Checks whether the input geometry data is valid and returns directly if it is invalid.

[0141] Clears the document manager's database and updates the current ID.

[0142] Create a map to store the mesh definition.

[0143] Traverse the geometry and create STEP nodes for each face according to the mesh definition.

[0144] If a face exists, a closed shell (StepClosedShell) object is created and added to the document manager, and the document is output to the specified file; if no face exists, an error is thrown.

[0145] createSingleSurfaceStepNodes method:

[0146] Checks if the geometry type is a polygon, and returns if not.

[0147] Creates subnodes for the face based on the face's mesh definition, including boundary, plane, and surface parts.

[0148] The specific steps are as follows:

[0149] Process the region path of the face, extract vertex position and normal vector information, and create point and normal vector arrays.

[0150] Create directed edges (StepOrientedEdge) for each boundary, including direction, vector, line, and curve objects, and add them to the document manager.

[0151] Create edge loop (StepEdgeLoop) and face boundary (StepFaceBound) objects and add them to the Document Manager.

[0152] Create a plane (StepPlane) object, including orientation, axis placement, etc., and add it to the Document Manager.

[0153] Create a face (StepFace) object based on the face boundary and plane, add it to the document manager, and store it in the _faces array.

[0154] addPointAndVertex method:

[0155] Creates Cartesian point (StepCartesianPoint) and vertex point (StepVertexPoint) objects for each point in the given array of points.

[0156] The mapping relationship between points and vertices is stored in the point dictionary table and the vertex dictionary table, and all created objects are added to the document manager.

[0157] 7. Combine the above types and export logic through a document management:

[0158] 7-1. Define classes and interfaces

[0159] The StepDocumentManager class is defined to manage STEP document related operations.

[0160] 7-2. Class properties and constructors

[0161] The StepDocumentManager class has several properties, including the current maximum document ID, the header and footer objects of the STEP file, the model bounding box, the entity database, the circular mode flag, the result path, and the model path.

[0162] The constructor initializes some properties with default values.

[0163] 7-3. Main methods

[0164] Custom getStepEntitiesByType method: Analyze the dependency relationship of STEP model nodes by type acquisition and correctly arrange the order of data elements.

[0165] Custom handleStepTransformation method: perform transformation operations on the STEP model, including scaling, rotation and translation.

[0166] dumpDocument method: Exports a document consisting of all current models, including the header, entity data, and footer, and saves it to the specified file.

[0167] Step 2: The user configures the export request through the graphical interface on the front end and sends it.

[0168] Step 3: The back-end Nodejs program obtains the interior design plan in json format from the WEB software.

[0169] Step 4: The parser parses the JSON format interior design plan, classifies the plan data according to the type constants of each category defined in the parser and the type of each data in the plan data, and outputs classification result 1 and classification result 2;

[0170] Step 5: Split and translate the instance data of the wall and the instance data of the object.

[0171] The space and wall translation analyzer receives the classification results and processes them through the StepExporter processing class, and outputs the instance data of the wall defined by the geometric combination of points, lines and surfaces;

[0172] The translation analyzer of indoor objects receives the classification result 2 and processes it through the StepExporter processing class, and outputs the instance data of the object defined by the geometric combination of points, lines and surfaces;

[0173] Step 6: The step data document manager receives the instance data and the instance data of the item, and outputs the step format data.

[0174] Step 7: asynchronously transmit the step format data back to the front end, and the front end completes the download.

[0175] The following are some application examples of this method:

[0176] 1.1 Preparation

[0177] First, you need to design a house type on the design cloud front end, such as Figure 1 shown.

[0178] 1.2 Assembly - "wall-mounted" air outlet, such as Figures 2 to 4 shown.

[0179] There are roughly two types of air outlets: wall-mounted and ceiling-mounted.

[0180] The air outlet size can be adjusted in the property bar on the left to meet customized air outlet size requirements.

[0181] 1.3 Assembly - windows, bay windows, such as Figure 5 shown.

[0182] Bay windows and windows can be assembled normally. Click on the bay window or window to control the window properties on the left. No special operation is required, and it will be automatically processed when exported.

[0183] 1.4 Start exporting, opening and closing of doors, such as Figures 6 to 8 shown.

[0184] In the export button in the top menu bar, there is a button called <Export step file>.

[0185] Click to enter the step export environment.

[0186] 1. The property panel on the upper left side controls whether the corresponding content is exported.

[0187] 2. The lower left side is the panel for controlling the opening and closing of the door.

[0188] 3. The right side is a controllable 3D display window.

[0189] 1.5 Export content control, such as Figures 9-10 shown.

[0190] In the property control bar on the left, you can control which contents of the current plan are needed or not. If necessary, check them, and if not, uncheck them. At the same time, the space display on the right will also display or hide the corresponding things.

[0191] 1.6 Export and export records, such as Figures 11-12 shown.

[0192] At the bottom of the left panel are the Export and Export Record buttons. When the plan is confirmed, click Export. In the Export Record panel, you can view all previous export situations of the current plan, including time content, and download of previous results.

[0193] Close the panel and click Export Records again to refresh the panel list and get the latest export results.

[0194] 1.7 Export results, such as Fig.13 shown.

[0195] The final export results will be divided into three folders: aircon, content, and structure.

[0196] The three represent air conditioning, interior decoration, and apartment type. All step files are in these three folders.

[0197] 2 The final results are shown as follows: Figures 14-15 Shown is the geometric scene effect after importing the starccm CFD testing software.

[0198] The above is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any technician in the relevant technical field, without departing from the scope of the technical solution of the present invention, makes any form of equivalent replacement or modification to the technical solution and technical content disclosed in the present invention, which does not depart from the content of the technical solution of the present invention and still falls within the protection scope of the present invention.

Claims

1. A data conversion method for converting json into step on a WEB software, characterized in that: The following steps are involved: Step 1: Design the Nodejs program, which includes the following steps: Define a parser, which is used to classify data. Its input is an interior design plan in json format, and its output is classification result 1 and classification result 2; the classification result 1 is a data array, which includes the data of each wall structure component, and the classification result 2 is a data array, including the data of each indoor item; A translation analyzer for defining spaces and walls, whose input is the classification result 1, and whose output is the instance data after the geometric relationship combination definition of the wall; the geometric relationship includes one or more of points, lines, and surfaces; A translation analyzer for defining indoor objects is inputted as the second classification result, and outputted as instance data after the objects are defined by geometric relationship combination; Define a step data document manager, whose input is the instance data of the wall and the instance data of the item, and whose output is the step format data; Step 2: The user configures the export request through the graphical interface on the front end and sends it; Step 3: The back-end Nodejs program obtains the interior design plan in json format from the WEB software; Step 4: The parser parses the JSON format interior design plan, classifies the plan data according to the type constants of each category defined in the parser and the type of each data in the plan data, and outputs classification result 1 and classification result 2; Step 5: Split and translate the instance data of the wall and the instance data of the object, specifically including the following steps: The space and wall translation analyzer receives the classification results and processes them through the geometric decomposition method for the wall in StepExporter, and outputs the wall as a data set consisting of multiple geometric concepts defined according to the base class StepEntity; The translation analyzer of indoor objects receives the classification result and processes it through the object geometry disassembly method in StepExporter, and outputs a wall consisting of multiple data sets based on the geometric concepts defined by the base class StepEntity; Step 6: The step data document manager receives the instance data and the instance data of the item, and outputs the step format data; Step 7: asynchronously transmit the step format data back to the front end, and the front end completes the download.

2. The data conversion method for converting json into step on the WEB software according to claim 1, characterized in that: In step 1, when defining the parser, define a data factory for creating geometric data during the transformation process to process classification result 1 and classification result 2.

3. The data conversion method for converting json into step on the WEB software according to claim 1, characterized in that: When defining the parser, define the parser StepService class for the initial acquisition of json data.

4. The data conversion method for converting json into step on the WEB software according to claim 1, characterized in that: Step 1 also includes the following steps: Define the entity type base class StepEntity of step format data, and then define the base class StepObject of the constituent elements within the StepEntity entity.

5. The data conversion method for converting json into step on the WEB software according to claim 1, characterized in that: The geometric decomposition method for the wall in step 5 specifically includes the following steps: Step 1: Put the obtained Mesh information of the wall on the WEB side into a Map dictionary class; the Mesh information is 3D geometric grid information; Step 2: Disassemble the 3D geometric mesh information in the dictionary class. In the process of parsing its vertex information, vertex index, and vertex normal information, create data instances available for each Step based on StepEntity one by one to represent the analysis results. Step 3: The analysis results are summarized into a StepShell instance to represent a whole apartment wall connected by walls and completely closed; Step 4: Put the results of steps 2 and 3 into the document management category for collective translation and output.

6. The data conversion method for converting json into step on the WEB software according to claim 1, characterized in that: The geometric disassembly method for the object in step 5 specifically includes the following steps: Step A: parse the obtained basic information of the model, including position information, rotation information, bounding box information, and category name; the bounding box information includes the length, width, and height information of the bounding box; Step B: Read the original Mesh information of the model and decompose it into data instances available for each Step based on StepEntity to represent the analysis results; Step C: According to the result obtained in step A, adjust the result of step B to ensure the accuracy of Step data, so as to correctly correspond to the placement of objects in 3D space and ensure the accuracy of space and volume in subsequent fluid mechanics calculations; Step D: Put the results obtained in step C into the document management class for final collective translation and output.