Automatic synchronous adjustment method for valve group component parameters of revit software
By extracting and utilizing the linear connection relationship and geometric vectors of components in the valve group module, the automatic synchronous adjustment of pipeline parameters in the revit software is realized, solving the problems of cumbersome adjustment process and missed selection in the existing technology, and improving work efficiency.
Patent Information
- Application Number
- CN202411763185.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-06-27
AI Technical Summary
When adjusting the pipe size of the valve module in the revit software, the positions of adjacent components cannot be linked, resulting in cumbersome adjustment process and prone to missed selection.
By extracting the linear connection relationship of each component in the valve group module, using the geometric vector of the target pipeline to calculate the geometric offset after its length changes, the position and diameter of other components in the valve group module are automatically adjusted.
Automatic synchronous adjustment of pipeline parameters in the valve group module is realized, reducing user operation steps and error rates, improving work efficiency, and forming menu-based adjustment options.
Smart Images

Figure CN120217567A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology, and in particular relates to a method for automatically adjusting parameters of Revit software. Background Art
[0002] The valve group module refers to a component group that includes valves, and a series of connected pipes, pipe fittings, and pipe accessories. The valve group module starts from the pump (mechanical equipment) and ends at the last valve before connecting to the ring pipe upwards. It includes valves but not pumps. Figure 1 The connection relationship between the components in the valve group module is a linear connection relationship.
[0003] The valve module field recognition parameter extraction technology is derived from the need to select and adjust pipes from the valve module in the detailed design work of Revit software. Usually, pipes are manually selected from the model, and then parameters are modified one by one in the model property column.
[0004] The existing technology mainly has the following four disadvantages:
[0005] 1. The manual adjustment operation is too cumbersome. During the detailed design of the Revit pipeline, the existing valve group module is adjusted. The number of components in the local space is large, which may easily lead to the wrong selection or omission of the valve group and the pipelines in the valve group. Figure 2 shown.
[0006] 2. A single valve group module has many components and related parameters, which may cause problems such as misadjustment or omission of component parameters, such as Figure 3 shown.
[0007] 3. When adjusting the pipe size in Revit software, the positions of adjacent components cannot be linked, which will cause errors in the connection between pipes and pipe fittings. Users are required to repeatedly adjust the size or position of each component of the pipe group, such as Figure 4 shown.
[0008] 4. When a pipe is connected to pipe fittings at both ends, the length of the pipe cannot be adjusted. It can only be adjusted by moving the elbow and the pipe connected to the other end of the elbow. If the elbow and its connecting pipe are omitted, errors may occur after moving, such as Figure 5 shown. Summary of the invention
[0009] In view of this, the present invention proposes a method for automatically synchronizing the parameters of valve group components in Revit software. For the model group downloaded from the platform, the present invention automatically completes the extraction and identification of parameters before layout; when the user adjusts the parameters of a certain pipeline in the valve group module, the present invention can automatically complete the size adjustment of other components in the valve group module. The specific technical solution is as follows:
[0010] An automatic adjustment method for the parameters of valve group components in Revit software, including length adjustment and diameter adjustment; the length adjustment includes extracting the linear connection relationship of each component in the valve group module; using the geometric vector of the target pipeline to calculate the geometric offset after the change of the target pipeline length; according to the geometric offset of the target pipeline, based on the linear connection relationship, sequentially drive the positions of each component behind the target pipeline in the valve group module; the diameter adjustment includes synchronously changing the diameters of each component in the valve group module until a pipe with a diameter change or the valve group ends.
[0011] Furthermore, extract the coordinate values of the center points of the endpoints of each component in the valve group module, and extract the connection relationship between the components by comparing the coordinate values.
[0012] Furthermore, the pipeline geometric vector refers to the geometric vector formed by taking the center point of one end of the pipeline close to the starting component of the valve group as the starting point and the center point of the other side of the pipeline as the ending point.
[0013] Furthermore, the geometric offset is equal to the product of the pipeline length change and the pipeline geometric vector.
[0014] Furthermore, the starting component in the linear connection relationship is the component in the valve group module with the smallest Z value of the endpoint geometric coordinates and only one connected component.
[0015] Furthermore, dynamically create adjustment interaction controls for the pipeline length and diameter values, and bind the interaction controls to the valve group module.
[0016] Beneficial effects
[0017] 1. The original method was to adjust each component one by one after the valve group module was created; after adopting the method of the present invention, valve group modules in different positions and of the same type can be directly retrieved from the platform for multiple layouts;
[0018] 2. The present invention forms menu-based adjustment options for users to modify the pipe group.
[0019] 3. When encountering valve group modules of the same type but different parameters, they can be directly arranged in the menu through parameter adjustment, greatly improving work efficiency.
[0020] 4. Compared with modifying information such as diameter and length for each pipeline in the valve group, adopting the menu adjustment method of the present invention saves the process for users to select the target in pipe group models with similar shapes, reducing the situations of misselection and missed selection.
[0021] 5. In the present invention, by establishing a linked list of components of the valve group module, the sequential relationship of the connections of the valve group module can be clarified. Since the connections of the components within the valve group module are mainly linear connections, and the Revit software comes with an original coordinate system, by extracting the XYZ coordinate values of the two end points of each component within the valve group module, the sequential linked list of the components can be clearly expressed by comparing the magnitudes of the coordinate values. Subsequently, based on this sequence, the position linkage relationship of adjacent components caused by changes in the component dimensions can be clarified, reducing the workload that the user originally needed to repeatedly adjust. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 Schematic diagram of the valve group module
[0023] Figure 2 Schematic diagram of a sample model of a general machine room
[0024] Figure 3 Parameter adjustment of a single component in the pipe group model
[0025] Figure 4 Pipeline connection error caused by component offset
[0026] Figure 5 The length of the pipeline clamped by pipe fittings cannot be modified
[0027] Figure 6 Schematic diagram of XYZ coordinates in the valve group component
[0028] Figure 7 Schematic diagram of the complete chain of components within the valve group model
[0029] Figure 8 Method flowchart of an embodiment of the present invention
[0030] Among them, Figure 2 The boxes in are partial valve group modules. SPECIFIC EMBODIMENT
[0031] When a user uploads a valve group module in the component library platform and other users download and use it through the plug-in end, it is necessary to first perform intelligent parameter recognition on the pipe length and pipe diameter in the target valve group module to facilitate subsequent adjustment and layout according to the actual situation of the project.
[0032] 1) After the user downloads the valve group module through the Revit plug-in, the software automatically opens a new window to load, preview the valve group module, and display the information of each component.
[0033] 2) Through the Revit interface, traverse all the components in the downloaded valve group module and extract the geometric coordinates (X, Y, Z) of the two end points of all the components.
[0034] 3) Find the component in the component group that has the smallest Z value of the endpoint geometric coordinates and only one connected component. Starting from this component, form a chain according to the connection relationship with the subsequent components. In this embodiment, by comparing the magnitudes of the coordinate values, a sequential linked list of each component in the valve group module is constructed, and the linear connection relationship of each component is determined through the sequential linked list. Among them, the connection relationship of each component in the valve group module is a linear link relationship.
[0035] The component link relationship takes Figure 7 as an example, and the chain order is Component 1 - Component 2 - Component 3.... Component 14, forming the complete chain order of the components in the valve group model.
[0036] 4) Starting from the starting component, extract the pipeline component information in the chain in sequence according to the connection relationship, record its length and diameter, and form a pipeline information set.
[0037] 5) Traverse the pipeline information set, and dynamically create adjustment interaction controls for the lengths and diameters of pipelines 1 to X in sequence on the user operation interface, and use the component attribute values as the default values of the controls so that the user can make adjustments for specific pipelines.
[0038] 6) The interaction control should be bound to the model component: when the user selects a certain pipeline in the preview model, the corresponding interaction control automatically acquires the cursor for the user to adjust: when the interaction control acquires the cursor, the pipeline in the model is automatically selected. This not only facilitates modification but also avoids incorrect modification.
[0039] 7) Increase (decrease) the length of a certain pipeline
[0040] 7-1) Based on the built-in three-dimensional coordinate system in the Revit software, construct a pipeline geometric vector in this coordinate system; the pipeline geometric vector refers to the geometric vector formed by taking the center point of one end of the pipeline close to the starting component of the valve group as the starting point and the center point of the other side of the pipeline as the end point.
[0041] 7-2) Take the difference between the new length of the pipeline input by the user and the original length of the pipeline to form an offset of the length. Multiply it by the geometric vector in 7-1) to calculate the geometric offset.
[0042] 7-3) Set the pipeline whose length needs to be adjusted as A, and all subsequent components in the component linked list of the valve group module are collectively referred to as B. According to the adjusted length of pipeline A, adjust the position of component B. Specifically described as before the length adjustment of pipeline A, the position of component B is expressed as (x, y, z), and after the length adjustment of pipeline A, the new position of component B is expressed as (x', y', z'), where (x', y', z') is equal to the sum of the component position before the length modification of pipeline A and the geometric offset of pipeline A in step 7-2), and drive the position of component B to offset in sequence.
[0043] 8) Set the diameter of a certain pipeline
[0044] In the linked list of valve group module components, with this pipeline as the center, traverse the entire component chain forward and backward to the starting point and the ending point. If a pipe fitting such as a reducer is encountered, stop (only one end diameter of the reducer pipe fitting needs to be adjusted, and the subsequent components do not need to be adjusted).
[0045] The diameters of pipelines, pipe fittings, and pipeline accessories in the valve group module can be directly modified according to user input or automatically changed according to the connected components. Among them, pipelines, pipe fittings, and pipeline accessories use the same diameter attribute name, and the adjustable range also conforms to user input.
Claims
1. A method for automatically synchronizing valve group component parameters in Revit software, characterized in that: It includes length adjustment and diameter adjustment; length adjustment includes extracting the connection relationship of each component in the valve group module; using the geometric vector of the target pipeline to calculate the geometric offset after the length of the target pipeline changes; according to the geometric offset of the target pipeline, based on the linear connection relationship, the position of each component in the valve group module located behind the target pipeline is driven in sequence; diameter adjustment includes synchronously changing the diameter of each component in the valve group module until a variable diameter pipeline is encountered or the valve group is terminated.
2. The method for automatically synchronizing valve group component parameters of Revit software according to claim 1, characterized in that: The coordinate values of the endpoint centers of each component in the valve group module are extracted, and the linear connection relationship between the components is extracted by comparing the coordinate values.
3. The method for automatically synchronizing valve group component parameters of Revit software according to claim 1, characterized in that: The pipeline geometric vector refers to a geometric vector formed by taking the center point of one end of the pipeline close to the starting component of the valve group as the starting point and the center point of the other side of the pipeline as the end point.
4. The method for automatically synchronizing valve group component parameters of Revit software according to claim 1, characterized in that: The geometric offset is equal to the length change of the pipe multiplied by the geometric vector of the pipe.
5. The method for automatically synchronizing and adjusting valve group component parameters of Revit software according to claim 1, characterized in that: The starting component in the linear connection relationship is the component in the valve group module with the smallest endpoint geometric coordinate Z value and only one connected part.
6. A method for automatically synchronizing valve group component parameters of Revit software according to any one of claims 1 to 5, characterized in that: Dynamically create interactive controls for adjusting the length and diameter of the pipeline, and bind the interactive controls to the valve group module.