A quick method for placing Revit components based on CAD

By processing the CAD base map of the fire hydrant box family, generating a long and short edge list and adjusting the placement direction, the problem of inconsistent direction of the fire hydrant box family and the CAD block is solved, and the accurate placement of the fire hydrant box family is achieved.

CN115310159BActive Publication Date: 2025-08-22QINGDAO TENGYUAN DESIGN ACCOUNTANTS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210718043.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-22
Publication Date
2025-08-22
Estimated Expiration
2042-06-22

AI Technical Summary

Technical Problem

The placement direction of the fire hydrant box family in Revit is inconsistent with the direction of the CAD tile, resulting in placement errors.

Method used

By processing the CAD base map of the fire hydrant box family, deleting the redundant legend, moving to the project base point, using the Revit plug-in to obtain the tiles, analyzing the lines to form a right triangle, generating a list of long and short sides, and adjusting the placement direction based on these lists, so that the fire hydrant box family is consistent with the CAD tiles.

Benefits of technology

Ensure that the placement direction of the fire hydrant box family is consistent with the direction of the CAD tiles, and avoid placement errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115310159B_ABST
    Figure CN115310159B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to a method for quickly placing Revit components based on CAD, comprising processing a CAD base drawing of a fire hydrant box family to obtain a processed rendering; using a Revit plug-in to link the processed rendering to obtain a CAD block; analyzing the line composition of the fire hydrant box family according to the CAD block to obtain a right triangle group; processing the same type of sides of the right triangle group into the same list to obtain a long side list and a short side list; placing and adjusting each fire hydrant box of the fire hydrant box family based on the long side list and the short side list, and completing the placement, thereby solving the problem that the placement direction of the fire hydrant box family cannot be guaranteed to be consistent with the direction of the CAD block, resulting in errors in the placement of the fire hydrant box family.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method for quickly placing Revit components based on CAD. Background Art

[0002] The remolding function of the REVIT plug-in of the BIM software based on the remolding work of CAD drawings can be used to perform reverse design of the fire hydrant box in the BIM direction.

[0003] At present, the existing technology discloses a REVIT-based plug-in function for placing components according to the CAD base map, but this function is relatively broad and is only effective for families that do not need to distinguish the placement direction. However, the placement direction of the fire hydrant box family cannot be guaranteed to be consistent with the direction of the CAD block, resulting in errors in the placement of the fire hydrant box family. Summary of the Invention

[0004] The purpose of the present invention is to provide a method for quickly placing Revit components based on CAD, aiming to solve the problem that the placement direction of the fire hydrant box family cannot be guaranteed to be consistent with the direction of the CAD block, resulting in errors in the placement of the fire hydrant box family.

[0005] To achieve the above object, the present invention provides a method for quickly placing Revit components based on CAD, comprising the following steps:

[0006] Process the CAD base drawing of the fire hydrant box family to obtain the processing effect drawing;

[0007] Use a Revit plug-in to link the processing renderings to obtain CAD blocks;

[0008] Analyzing the line composition of the fire hydrant box family according to the CAD block to obtain a right triangle group;

[0009] Processing the same type of sides of the right triangle group into the same list to obtain a long side list and a short side list;

[0010] Each fire hydrant box of the fire hydrant box family is placed and adjusted based on the long edge list and the short edge list, and the placement is completed.

[0011] The specific method of processing the CAD base drawing of the fire hydrant box family to obtain the processing effect drawing is as follows:

[0012] Delete the redundant legends in the CAD base drawing of the fire hydrant box family to obtain the fire hydrant box legend;

[0013] Move the fire hydrant box illustration to the project base point to obtain the processing effect diagram.

[0014] The Revit plug-in includes selecting a model element node from a document and obtaining all geometric graphic nodes associated with the object.

[0015] The specific method of using the Revit plug-in to link the processing rendering to obtain the CAD block is as follows:

[0016] Select the processing effect graph using the model primitive node selected from the document to obtain a selection result;

[0017] All geometric graphic nodes associated with the object are obtained by using the method and all graphic elements of the processing effect diagram are obtained based on the selection result to obtain a CAD block.

[0018] The placement and adjustment of each fire hydrant box of the fire hydrant box family based on the long edge list and the short edge list is performed in the following manner:

[0019] Using the midpoint of the long side list as a placement base point, placing each fire hydrant box of the fire hydrant box family based on the placement base point;

[0020] Obtaining the direction vector of each short edge in the short edge list and the angle between the direction vector and the corresponding fire hydrant box;

[0021] The corresponding fire hydrant box whose angle is not 0 is rotated until the angle is 0, and the placement is completed.

[0022] The specific method of using the midpoint of the long side list as a placement base point and placing each fire hydrant box of the fire hydrant box family based on the placement base point is as follows:

[0023] Using the midpoint of the long side list as a placement base point, click on the type and elevation of each fire hydrant box in the fire hydrant box family to obtain a selection result;

[0024] Place each fire hydrant box based on the selection results.

[0025] The present invention provides a method for quickly placing Revit components based on CAD. The method processes the CAD base map of the fire hydrant box family to obtain a processed rendering; uses a Revit plug-in to link the processed rendering to obtain a CAD block; analyzes the line composition of the fire hydrant box family according to the CAD block to obtain a right triangle group; processes the same type of sides of the right triangle group into the same list to obtain a long side list and a short side list; places and adjusts each fire hydrant box of the fire hydrant box family based on the long side list and the short side list. After the placement is completed, the placement direction of the fire hydrant box family is consistent with the direction of the CAD block, thereby solving the problem that the placement direction of the fire hydrant box family cannot be guaranteed to be consistent with the direction of the CAD block, resulting in errors in the placement of the fire hydrant box family. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0027] Figure 1 This is a flow chart of a method for quickly placing Revit components based on CAD provided by the present invention.

[0028] Figure 2 It is a flow chart for processing the CAD base drawing of the fire hydrant box family to obtain the processing effect diagram.

[0029] Figure 3 A flow chart of a CAD block is obtained by linking the processing renderings using a Revit plug-in.

[0030] Figure 4 This is a flow chart for placing and adjusting each fire hydrant box of the fire hydrant box family based on the long edge list and the short edge list, and completing the placement.

[0031] Figure 5 The invention is a flowchart for placing each fire hydrant box of the fire hydrant box family based on the placement base point by taking the midpoint of the long side list as the placement base point.

[0032] Figure 6 This is the processing effect diagram.

[0033] Figure 7 This is the placement diagram of the fire hydrant box with an angle of 0. DETAILED DESCRIPTION

[0034] The following describes embodiments of the present invention in detail, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and are not to be construed as limiting the present invention.

[0035] See also Figures 1 to 7 The present invention provides a method for quickly placing Revit components based on CAD, comprising the following steps:

[0036] S1 processes the CAD base drawing of the fire hydrant box family to obtain a processing effect drawing;

[0037] The specific method is:

[0038] S11 deletes redundant legends in the CAD base drawing of the fire hydrant box family to obtain a fire hydrant box legend;

[0039] Specifically, to ensure the ease of use of the program, we avoid using extension packages and custom nodes during writing, and use all DYNAMO native nodes. Therefore, when processing the CAD base map, all content except the fire hydrant box legend needs to be deleted.

[0040] S12 moves the fire hydrant box legend to the project base point to obtain a processing effect diagram.

[0041] Specifically, a model drawing is created based on the size information of the fire hydrant box family, and the fire hydrant box legend is moved to the project base point of the model drawing to obtain a processing effect diagram.

[0042] S2 uses a Revit plug-in to link the processing rendering to obtain a CAD block;

[0043] Specifically, the Revit plug-in includes selecting a model element node (Select Model Element node) from a document and obtaining all geometric graphic nodes (Element.Geometry node) associated with the object.

[0044] The Select Model Element from Document node allows you to select the element you want to extract parameter values ​​from into Dynamo.

[0045] The specific method of using the Revit plug-in to link the processing rendering to obtain the CAD block is as follows:

[0046] S21 selects the processing effect graph using the document selection model primitive node to obtain a selection result;

[0047] S22 uses the method of obtaining all geometric graphic nodes associated with the object to obtain all graphic elements of the processing effect diagram based on the selection result to obtain a CAD block.

[0048] S3: Analyze the line composition of the fire hydrant box family according to the CAD block to obtain a right triangle group;

[0049] Specifically, based on the data characteristics of CAD blocks obtained by DYNAMO, it was analyzed that the fire hydrant box block is composed of 3 lines and forms a non-isosceles right triangle. The short side of the right angle points from the right angle to the non-right angle, which is the opening direction of the fire hydrant box. The midpoint of the long side of the right angle is the placement base point of the fire hydrant box.

[0050] S4 processes the same type of sides of the right triangle group into the same list to obtain a long side list and a short side list;

[0051] Specifically, use the PolyCurve.Curves node to obtain the three lines that make up the tile, process the same type of edges into the same list, and obtain the long edge list and the short edge list for subsequent data acquisition.

[0052] S5: Each fire hydrant box of the fire hydrant box family is placed and adjusted based on the long edge list and the short edge list, and the placement is completed.

[0053] The specific method is:

[0054] S51 uses the midpoint of the long side list as a placement base point, and places each fire hydrant box of the fire hydrant box family based on the placement base point;

[0055] The specific method is:

[0056] S511 uses the midpoint of the long side list as a placement base point, clicks the type and elevation of each fire hydrant box in the fire hydrant box family, and obtains a selection result;

[0057] S512 places each fire hydrant box based on the selection result.

[0058] S52 obtains the direction vector of each short edge in the short edge list and the angle between the direction vector of the corresponding fire hydrant box;

[0059] S53 rotates the corresponding fire hydrant box whose angle is not 0 until the angle is 0, and the placement is completed.

[0060] The specific method is:

[0061] S531 obtains the actual angle of the fire hydrant box corresponding to the angle not being 0;

[0062] S532 selects a rotation direction based on the actual angle;

[0063] Specifically, the rotation direction includes any one of clockwise rotation and anti-clockwise rotation; the direction with the smallest rotation angle is selected according to the actual angle.

[0064] For example: the current angle is 30 degrees, clockwise rotation requires 30 degrees, counterclockwise rotation requires 330 degrees. Since the angle selected clockwise is smaller than the angle selected counterclockwise, clockwise rotation is selected to increase the rotation speed of the corresponding fire hydrant box, thereby increasing the placement speed.

[0065] S533 rotates the corresponding fire hydrant box whose angle is not 0 based on the rotation direction until the angle is 0, and the placement is completed.

[0066] The present invention provides a method for quickly placing Revit components based on CAD. The method comprises the following steps: deleting redundant legends in the CAD base drawing of the fire hydrant box family to obtain a fire hydrant box legend; moving the fire hydrant box legend to the project base point to obtain a processing effect diagram; selecting the processing effect diagram using the method of selecting a model element from a document to obtain a selection result; obtaining all elements of the processing effect diagram based on the selection result using the method of obtaining all geometric graphics nodes associated with the object to obtain a CAD block; analyzing the line composition of the fire hydrant box family according to the CAD block to obtain a right triangle group; processing the same sides of the right triangle group into the same list to obtain a long side list and a short side list; and Use the midpoint as the placement base point, click on the type and elevation of each fire hydrant box of the fire hydrant box family to obtain the clicking result; place each fire hydrant box based on the clicking result; obtain the direction vector of each short side in the short side list and the angle with the direction vector of the corresponding fire hydrant box; obtain the actual angle of the fire hydrant box whose angle is not 0; select the rotation direction based on the actual angle; rotate the fire hydrant box whose angle is not 0 based on the rotation direction until the angle is 0, and the placement is completed, so that the placement direction of the fire hydrant box family is consistent with the direction of the CAD block, which solves the problem that the placement direction of the fire hydrant box family cannot be guaranteed to be consistent with the direction of the CAD block, resulting in errors in the placement of the fire hydrant box family.

[0067] The above disclosure is merely a preferred embodiment of the method for quickly placing Revit components based on CAD of the present invention. It is certainly not intended to limit the scope of the present invention. A person skilled in the art will understand that all or part of the processes of the above embodiment and equivalent changes made in accordance with the claims of the present invention still fall within the scope of the invention.

Claims

1. A method for quickly placing Revit components based on CAD, characterized in that: The following steps are involved: Process the CAD base drawing of the fire hydrant box family to obtain the processing effect drawing; Use a Revit plug-in to link the processing renderings to obtain CAD blocks; Analyzing the line composition of the fire hydrant box family according to the CAD block to obtain a right triangle group; Processing the same type of sides of the right triangle group into the same list to obtain a long side list and a short side list; Each fire hydrant box of the fire hydrant box family is placed and adjusted based on the long edge list and the short edge list, and the placement is completed; The placement and adjustment of each fire hydrant box of the fire hydrant box family based on the long edge list and the short edge list is completed in the following specific manner: Using the midpoint of the long side list as a placement base point, placing each fire hydrant box of the fire hydrant box family based on the placement base point; Obtaining the direction vector of each short edge in the short edge list and the angle between the direction vector of the corresponding fire hydrant box; The corresponding fire hydrant box whose angle is not 0 is rotated until the angle is 0, and the placement is completed.

2. The method for rapid placement of Revit components based on CAD as claimed in claim 1, characterized in that: The specific method of processing the CAD base drawing of the fire hydrant box family to obtain the processing effect drawing is as follows: Delete the redundant legends in the CAD base drawing of the fire hydrant box family to obtain the fire hydrant box legend; Move the fire hydrant box illustration to the project base point to obtain the processing effect diagram.

3. The method for rapid placement of Revit components based on CAD as claimed in claim 1, characterized in that: The Revit plugin consists of selecting a model element node from the document and getting all geometry nodes associated with the object.

4. The method for rapid placement of Revit components based on CAD as claimed in claim 3, characterized in that: The specific method of using the Revit plug-in to link the processing rendering to obtain the CAD block is as follows: Select the processing effect graph using the model primitive node selected from the document to obtain a selection result; All geometric graphic nodes associated with the object are obtained by using the method and all graphic elements of the processing effect diagram are obtained based on the selection result to obtain a CAD block.

5. The method for rapid placement of Revit components based on CAD as claimed in claim 1, characterized in that: The specific method of using the midpoint of the long side list as a placement base point and placing each fire hydrant box of the fire hydrant box family based on the placement base point is as follows: Using the midpoint of the long side list as a placement base point, click on the type and elevation of each fire hydrant box in the fire hydrant box family to obtain a selection result; Place each fire hydrant box based on the selection results.