Independent control method of BIM component in two-dimensional and three-dimensional views
By introducing view transformation data and status marks into BIM forward design software, independent control of BIM components in two-dimensional views is achieved, solving the problem of two-dimensional view modifications affecting three-dimensional views and meeting the aesthetic requirements of electrical professionals.
Patent Information
- Application Number
- CN202510719268.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-09
AI Technical Summary
In the existing technology, when BIM components are modified in the two-dimensional view, the three-dimensional view will be affected synchronously, and independent control cannot be achieved. Especially in the electrical profession, it is necessary to adjust the two-dimensional view to maintain the appearance without changing the position and angle of the three-dimensional view.
By introducing the view transformation data SymbolViewTransformation and the status mark Is2DeditMode in the BIM forward design software, independent control in the 2D grip editing mode is achieved. When modifying the 2D components, only the transformation matrix data is updated without affecting the 3D view. When switching the editing mode, the global position data of the 3D view is synchronously updated.
It realizes independent control of the position, angle and size of components in the 2D view, meets the aesthetic requirements of the 2D view without affecting the display of the 3D view, and retains the linkage mechanism of the 2D and 3D views.
Smart Images

Figure CN120611433A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building component design, and in particular to a method for independently controlling BIM components in two-dimensional and three-dimensional views. Background Art
[0002] In BIM forward design software (Revit software provided by AutoDesk), the position of the same component in different views (including 2D views and 3D views, etc.) is shared. That is, if the position of a component in a 3D view is modified, the position of the component in other views will also change accordingly, and vice versa.
[0003] However, in the drawing production process of some disciplines, it is necessary to adjust the position of components in the 2D view without affecting the actual position of the components in the 3D view. Modifying the components in the 3D view will also modify the components in the 2D view. For example, in the electrical engineering field, in order to make the drawings more beautiful, it is necessary to adjust the position, rotation angle, or size of some electrical equipment (i.e., BIM components) in the 2D view (the position of the same BIM component may be different in each 2D view), but the position, rotation angle, or size of the corresponding components in the 3D view cannot be changed.
[0004] Please see the attached Figure 1 , Figure 1 (a) is a three-dimensional view, Figure 1 (b) is a 2D view. Two switches, or BIM components, are placed on the wall (as shown in the box in the figure), but the two switches are obscured by the pipes. In the 2D view, the two switches can be moved or rotated for aesthetic reasons using the grip editing function to avoid obscuration. However, this modification will be displayed simultaneously in the 3D view, which does not meet the requirement of maintaining the position of the corresponding components in the 3D view. Therefore, it is necessary to provide a method for independently controlling BIM components in 2D and 3D views to solve the problem of the existing technology that components cannot be independently modified in the 2D view. Summary of the Invention
[0005] The purpose of the present invention is to provide a method for independently controlling BIM components in two-dimensional and three-dimensional views, which can solve the problem in the prior art that components cannot be independently modified in a two-dimensional view.
[0006] The present invention is achieved in that:
[0007] A method for independently controlling BIM components in two-dimensional and three-dimensional views includes the following steps:
[0008] Step 1: When creating a 2D component legend for a 2D view using BIM forward design software, add a view transformation data SymbolViewTransformation to each 2D component legend in the 2D view. The view transformation data SymbolViewTransformation corresponds to the transformation matrix data ViewTransformation2D, which is used to record the legend position data and modification operation data of the 2D component legend in the 2D grip editing mode.
[0009] Step 2: Determine whether it is in 2D grip editing mode. If so, go to step 3; if not, go to step 4.
[0010] Step 3: In the 2D grip editing mode, modify the 2D component legend and store the modified operation data in the transformation matrix data ViewTransformation2D. That is, only the transformation matrix data ViewTransformation2D is updated, and the global position data GlobalPosition3D of the component in the corresponding 3D view is not updated.
[0011] Step 4: In standard mode, the position data of the 2D component legend is still obtained synchronously from the global position data GlobalPosition3D of the 3D view. When the position data of the 2D component legend is modified, the global position data GlobalPosition3D of the 3D view of the corresponding component is modified synchronously.
[0012] Step 5: Render and refresh the 2D and 3D views to complete the modification operation.
[0013] In step 1, the transformation matrix data ViewTransformation2D is separated from the three-dimensional coordinates of the three-dimensional component, so that when the two-dimensional component legend is modified in the two-dimensional grip editing mode, its position in the three-dimensional view is not affected.
[0014] In step 2, an independent status mark Is2DeditMode is added to the two-dimensional component legend in each two-dimensional view. When the status mark Is2DeditMode is true, it is the two-dimensional grip editing mode. If the status mark Is2DeditMode is false, it is the standard mode.
[0015] In the two-dimensional view, a "Switch Editing Mode" button or command is added through the grip editing function to switch between the standard mode and the two-dimensional grip editing mode. The "Switch Editing Mode" button or command defaults to the two-dimensional grip editing mode, and the status mark Is2DeditMode is true. When the "Switch Editing Mode" button or command is clicked, it switches to the standard mode, and the status mark Is2DeditMode is false.
[0016] In step 3, all modification operations in the 2D grip editing mode only modify the transformation matrix data ViewTransformation2D in the 2D view, while in the standard mode, the global position data GlobalPosition3D of the 3D view is modified, and the modification operation is ended.
[0017] The current editing mode, ie, the two-dimensional grip editing mode or the standard mode, is displayed in real time in the interface of the BIM forward design software.
[0018] Compared with the prior art, the present invention has the following beneficial effects:
[0019] This invention adds a new transformation matrix, ViewTransformation2D, to independently store modification operations on 2D component legends in 2D grip editing mode. This allows for independent control of the position of the 2D component legend in each 2D view, modifying the 2D component legend without affecting the component's display in the 3D view. Furthermore, modifying the 3D component model in standard mode also modifies the position of the corresponding 2D component legend in the 2D view, preserving the existing 2D / 3D linkage mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 The three-dimensional view (a) and two-dimensional view (b) of the BIM component;
[0021] Figure 2 It is a flow chart of the independent control method of BIM components in two-dimensional and three-dimensional views of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0023] Please see the attached Figure 2 , a method for independently controlling BIM components in two-dimensional and three-dimensional views, comprising the following steps:
[0024] Step 1: When creating a two-dimensional component legend of a two-dimensional view through BIM forward design software, add a view transformation data SymbolViewTransformation to the two-dimensional component legend of each two-dimensional view. The view transformation data SymbolViewTransformation corresponds to the transformation matrix data ViewTransformation2D, which is used to record the legend position data and modification operation data (two-dimensional coordinates) of the two-dimensional component legend in the two-dimensional grip editing mode.
[0025] In step 1, the transformation matrix data ViewTransformation2D is separated from the three-dimensional coordinates (GlobalTransformation3D) of the three-dimensional component, so that when the two-dimensional component legend is modified in the two-dimensional grip editing mode, its position in the three-dimensional view is not affected.
[0026] Modifications to 2D component legends include position, angle (rotation), size (scaling), etc.
[0027] Step 2: Determine whether it is in 2D grip editing mode. If so, execute step 3; if not, execute step 4.
[0028] In the step 2, an independent status mark Is2DeditMode is added to the two-dimensional component legend in each two-dimensional view. When the status mark Is2DeditMode is true, it is the two-dimensional grip editing mode. If the status mark Is2DeditMode is fals, it is the standard mode.
[0029] Specifically, a "Toggle Edit Mode" button (or command) can be added to the 2D view through the grip editing function to switch between standard mode (i.e., linked 3D mode) and 2D grip editing mode (i.e., independent control mode). The "Toggle Edit Mode" button (or command) defaults to 2D grip editing mode, in which case the status flag Is2DeditMode is true. Clicking the "Toggle Edit Mode" button (or command) switches to standard mode, in which case the status flag Is2DeditMode is false. Grip editing is a common feature of BIM forward design software and will not be discussed here.
[0030] In a 2D view, you can switch to 2D grip editing mode or 3D editing mode using the grip editing function. 2D grip editing mode only modifies the position, angle, and size of the 2D component legend in the 2D view without affecting the display of the 3D view.
[0031] In 3D editing mode, modifying a 3D component modifies its actual position, angle, and size, and simultaneously updates the position, angle, and size of the corresponding component in the 2D view. Furthermore, modifying the 2D component legend in non-2D grip editing mode in the 2D view also updates the 3D view of that component. This bidirectional data synchronization is ensured by binding coordinate listener events between the 3D component model and the 2D component legend. This modification feature is a conventional modification method and will not be further described here.
[0032] The editing mode is determined by the status flag Is2DeditMode, which can block unnecessary data flow to meet the requirements of linked updates or independent modifications.
[0033] Step 3: In the 2D grip editing mode, modify the 2D component legend and store the modification operation data in the transformation matrix data ViewTransformation2D. That is, only the transformation matrix data ViewTransformation2D is updated, and the global position data GlobalPosition3D of the component in the corresponding 3D view is not updated. This allows you to control whether the current modification behavior of the 2D component legend affects the 3D view.
[0034] In step 3, all modification operations in the 2D grip editing mode only modify the transformation matrix data ViewTransformation2D in the 2D view, while in the standard mode, the global position data GlobalPosition3D of the 3D view is modified, and the modification operation is ended.
[0035] Step 4: In standard mode, the position data of the 2D component legend is still synchronously obtained from the global position data GlobalPosition3D of the 3D view. When the position data of the 2D component legend is modified, the global position data GlobalPosition3D of the 3D view of the corresponding component is modified synchronously.
[0036] Step 5: Render and refresh the 2D and 3D views (i.e., 2D and 3D scenes), and end the modification operation.
[0037] Preferably, the current editing mode, i.e., the two-dimensional grip editing mode or the standard mode, is displayed in real time in the interface of the BIM forward design software, for example, by displaying the current editing mode through a status bar prompt or button highlighting to facilitate modification operations.
[0038] The above are only preferred embodiments of the present invention and are not intended to limit the scope of protection of the invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for independently controlling BIM components in two-dimensional and three-dimensional views, characterized by: The following steps are involved: Step 1: When creating a 2D component legend for a 2D view using BIM forward design software, add a view transformation data SymbolViewTransformation to each 2D component legend in the 2D view. The view transformation data SymbolViewTransformation corresponds to the transformation matrix data ViewTransformation2D, which is used to record the legend position data and modification operation data of the 2D component legend in the 2D grip editing mode. Step 2: Determine whether it is in 2D grip editing mode. If so, go to step 3; if not, go to step 4. Step 3: In the 2D grip editing mode, modify the 2D component legend and store the modified operation data in the transformation matrix data ViewTransformation2D. That is, only the transformation matrix data ViewTransformation2D is updated, and the global position data GlobalPosition3D of the component in the corresponding 3D view is not updated. Step 4: In standard mode, the position data of the 2D component legend is still obtained synchronously from the global position data GlobalPosition3D of the 3D view. When the position data of the 2D component legend is modified, the global position data GlobalPosition3D of the 3D view of the corresponding component is modified synchronously. Step 5: Render and refresh the 2D and 3D views to complete the modification operation.
2. The method for independent control of BIM components in two-dimensional and three-dimensional views according to claim 1, characterized in that: In step 1, the transformation matrix data ViewTransformation2D is separated from the three-dimensional coordinates of the three-dimensional component, so that when the two-dimensional component legend is modified in the two-dimensional grip editing mode, its position in the three-dimensional view is not affected.
3. The method for independent control of BIM components in two-dimensional and three-dimensional views according to claim 1, characterized in that: In step 2, an independent status mark Is2DeditMode is added to the two-dimensional component legend in each two-dimensional view. When the status mark Is2DeditMode is true, it is the two-dimensional grip editing mode. If the status mark Is2DeditMode is false, it is the standard mode.
4. The method for independent control of BIM components in two-dimensional and three-dimensional views according to claim 3, characterized in that: In the two-dimensional view, a "Switch Edit Mode" button or command is added through the grip editing function to switch between standard mode and two-dimensional grip editing mode. The "Switch Edit Mode" button or command defaults to two-dimensional grip editing mode, and the status mark Is2DeditMode is true. When the "Switch Edit Mode" button or command is clicked, it switches to standard mode, and the status mark Is2DeditMode is false.
5. The method for independent control of BIM components in two-dimensional and three-dimensional views according to claim 1, characterized in that: In step 3, all modification operations in the 2D grip editing mode only modify the transformation matrix data ViewTransformation2D in the 2D view, while in the standard mode, the global position data GlobalPosition3D of the 3D view is modified, and the modification operation is ended.
6. The method for independent control of BIM components in two-dimensional and three-dimensional views according to claim 1, characterized in that: The current editing mode, ie, the two-dimensional grip editing mode or the standard mode, is displayed in real time in the interface of the BIM forward design software.
Citation Information
Cited By
Method and device for modifying BIM link model data, equipment and storage medium
CN122046513A
Methods, apparatus, equipment and storage media for modifying BIM linked model data
CN122046513B