A method for quickly drawing unfolded diagrams based on Revit steel structure bolt hole calculations
By automatically calculating bolt hole positions and drainage outlet locations using the Revit API plugin, the problem of low efficiency in manually drawing bolt hole positions in Revit 3D steel structure modeling is solved, enabling efficient and accurate 2D machining drawing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- FUJIAN YONGFU POWER ENG
- Filing Date
- 2023-01-13
- Publication Date
- 2026-05-26
AI Technical Summary
In Revit 3D steel structure modeling, designers manually calculate bolt hole positions, which is labor-intensive, inefficient, and prone to errors. Existing technologies cannot efficiently automate the drawing of bolt holes and other dimension annotations, resulting in a high probability of errors in the fabrication drawings.
Using a self-developed plugin for Revit API, the system automatically calculates and accurately positions bolt holes by associating 3D models with 2D details. It uses the ray casting method to calculate bolt hole positions and the spatial line intersection method to calculate drain outlet positions, and follows specific family and parameter naming rules to automatically draw details.
The entire project's 2D machining drawings were completed in less than a minute, improving work efficiency and accuracy, saving a significant amount of manpower and resources, and ensuring the accuracy and consistency of the drawings.
Smart Images

Figure CN116226978B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital 3D design modeling, and in particular to a method for quickly drawing unfolded diagrams based on Revit steel structure bolt hole calculations. Background Technology
[0002] As the depth and breadth of BIM applications gradually increase, BIM data will be widely used throughout the entire building lifecycle and even extend to the management of digital twin cities. From a technical perspective, if BIM semantics and knowledge are widely understood and applied, and continuously accumulated and refined, BIM will be closely integrated with artificial intelligence technology, bringing even greater transformative innovations to work and life.
[0003] The design process using Revit is simultaneously a BIM modeling process. It allows for the refinement of design schemes, rapid expression of design intent, and generation of schematic diagrams. Once the model is complete, it generates necessary construction drawings such as plans, elevations, sections, and detailed drawings. This enables designers to intuitively view the entire building's 3D model during the design process, providing a clear and comprehensive understanding of complex or irregularly shaped buildings, significantly improving design efficiency. Furthermore, it allows for quantity take-off, rendering, and walkthrough animations. All subsequent work is based on this model. In the final BIM data model, all data is interconnected. When design changes occur, Revit automatically updates all related drawings, tables, and lists, ensuring data consistency, accuracy, and effective transmission.
[0004] However, the manufacturing process still relies on detailed two-dimensional drawings containing a large amount of dimensional and positional information. For example, in a three-dimensional model, a beam with a channel steel cross-section is bolted to purlins and other structural members. During manufacturing, the channel steel needs to be unfolded into plates, bolt holes drilled, and then various cross-sections of channel steel need to be fabricated. Therefore, in 3D modeling, designers often first create families of beams, columns, purlins, etc., build the 3D model, and then bolt the components at their intersections. In a project, the number of beams, columns, and purlins can be counted in the thousands, and the number of bolts is countless. If designers were to count these and draw the bolt holes at the corresponding locations, it would take a lot of time, greatly increasing the probability of errors in the drawings and leading to even greater workloads such as revisions.
[0005] Disadvantages of existing technology:
[0006] 1. In Revit 3D steel structure modeling, designers often first create families of beams, columns, purlins, etc., build the 3D model, and then fix the components with bolts at the intersections. In a project, the number of beams, columns, and purlins can be counted in the thousands, and the number of bolts is countless. If designers were to count them and draw the bolt holes at the corresponding locations, it would take a lot of time, the probability of errors in the drawings would be very high, and it would lead to even greater workload due to changes.
[0007] 2. A single beam may have dozens of bolts. In addition, the beam is arranged at an angle and has a three-dimensional cross-section, while the unfolded drawing used for processing is a two-dimensional planar drawing. The difficulty and workload of manually calculating the bolt hole positions are extremely high, and it is easy to miss some.
[0008] 3. In addition to bolt positioning dimensions, the machining drawings also need to indicate common dimensions such as length, unfolded width of channel steel, and location of drain outlets. Manual annotation is slow and inefficient.
[0009] See the prior art for Chinese patent publication number CN115130186A, entitled "A Method for Quickly Creating Piping Systems Based on Modeling Software." This invention relates to the field of Building Information Modeling (BIM) technology, specifically to a method for quickly creating piping systems based on modeling software. The method involves using a secondary development plugin to retrieve piping systems from CAD drawings in Revit; generating an Excel file containing piping system abbreviations and names; obtaining the required piping system abbreviations and names in Revit; automatically searching for and matching the corresponding piping system in a cloud platform; automatically generating the matching piping system and its attributes in Revit; automatically marking piping systems whose attributes cannot be matched; and automatically completing the creation of the piping system from the CAD drawings in Revit using a secondary development plugin. This invention is easy to operate; users can quickly create the corresponding piping system based on the project requirements using the secondary development plugin, effectively improving the efficiency of Revit piping system creation. However, the technology used in that invention differs from this solution.
[0010] Based on the above characteristics, this solution addresses the issues of excessive workload, low drawing efficiency, high calculation volume, and high error when manually calculating bolts and drawing fabrication drawings for 3D components such as Revit channels and columns. It involves an independently developed plugin based on the Revit API that automatically calculates bolts and draws fabrication drawings for these components. The plugin can complete the creation of 2D fabrication drawings for the entire project in less than a minute, saving significant manpower and resources.
[0011] Terminology Explanation:
[0012] 3D design: Based on engineering information and geographic information data, it integrates 3D modeling and collaborative design technologies to achieve 3D visualization design and information integration. 3D design is the foundation of a new generation of digital, virtual, and intelligent design platforms. It is an emerging design method that builds upon planar and two-dimensional design, making design objectives more three-dimensional and visual.
[0013] BIM: BIM stands for Building Information Modeling. Building Information Modeling (BIM) is a unified and coordinated process from planning, design, construction to management. It is an operating software that transforms the concepts of using standards into corresponding data.
[0014] Information model: A digital representation of the physical and functional characteristics of an engineering or facility throughout its entire lifecycle, encompassing the design, construction, and operation processes and outcomes.
[0015] Revit is the name of a suite of software from Autodesk. The Revit suite is built for Building Information Modeling (BIM) and helps architects design, build, and maintain higher-quality, more energy-efficient buildings.
[0016] Digital technology: The technology of digitally representing existing or future physical objects (or systems) for a specific purpose. The company's digital technology specifically refers to the digital technology applied to engineering projects, that is, the technology of digitally representing engineering objects. The application of digital technology in the design phase: Digital design summarizes the design results into a digital database. Design documents are no longer the primary or core element; they are still useful, but not "drawn" in the traditional sense, but generated from the database according to requirements. Summary of the Invention
[0017] To overcome the above problems, the purpose of this invention is to provide a method for quickly drawing unfolded diagrams based on Revit steel structure bolt hole positions. This method can automatically calculate the bolt hole positions of the 3D model and quickly draw detailed diagrams, improving work efficiency and accuracy.
[0018] This invention is implemented using the following scheme: a method for quickly drawing unfolded diagrams based on Revit steel structure bolt hole location calculations, the method comprising the following steps:
[0019] Step S1: Create families according to the drawing requirements. The modeling includes model families and detail component families. Model families are used for 3D modeling, and detail component families are used for drawing details. The names of model families and detail component families are matched one-to-one.
[0020] Step S2: Create a 3D model using families, and place the support material components and bolts of the detailed component family until the assembly is complete.
[0021] Step S3: After the model is built, filter out all the components to be drawn and select the components that need to be drawn this time.
[0022] Step S4: Classify and statistically analyze the components according to family type. Components of the same family type and length are assigned one unfolded drawing. Determine whether the detailed drawing component family corresponding to the support material component contains parameters of the ka, kb, kc, and kh series. The parameters of the ka and kb series are the dimension line names for the outer and inner bolt hole positions defined in the family, respectively; the kc series is the dimension line name for the drain outlet position; and the kh series is the dimension line name for the cross-section. If yes, obtain the bolt hole position, drain outlet position, and cross-section dimensions respectively; otherwise, obtain the component's conventional dimensions and annotate them after obtaining the corresponding dimensions.
[0023] After step S5 and the annotations are completed, you will get a complete detailed unfolded diagram.
[0024] Furthermore, step S1 is further specified as follows: the name of the model family must contain the words "support material", the name of the detailed component family must contain the words "detailed component", and the family type names contained in the model family and the detailed component family must correspond one-to-one and be associated.
[0025] Furthermore, step S2 is further specified as follows: the junctions of different support material components need to be connected by bolts, that is, the junctions of the purlins and steel beams of the support material components, and the junctions of the support and the beams are connected by bolts, and the positions of the bolt holes need to be obtained where there are bolt connections; if the purlins of the support material components contain drainage outlets, then the positions of the drainage outlets need to be obtained.
[0026] Furthermore, the KA series indicates multiple dimensions whose first two digits contain the letter "KA" and are distinguished by numbers, i.e., KA1, KA2, KA3, etc. The KA series is the dimension line name for the outer row of bolt holes; similarly, the KB series indicates multiple dimensions whose first two digits contain the letter "KB" and are distinguished by numbers, i.e., KB1, KB2, KB3, etc. The KB series is the dimension line name for the inner row of bolt holes.
[0027] Furthermore, the acquisition of the drainage outlet location in step S4 specifically involves: Obtaining the drainage outlet at the intersection of the purlin and the steel beam: Calculate the positioning lines of the purlin and the steel beam, which are intersecting spatial straight lines. Project both the purlin and the steel beam onto a horizontal projection plane. The accurate location of the drainage outlet can be obtained by projecting the intersection point on the horizontal projection plane onto the positioning line of the steel beam. The calculation method for the positioning lines of the purlin and the steel beam is as follows: The calculation methods for both the purlin and the steel beam are the same. The calculation method for the steel beam positioning line is as follows:
[0028] Read the coordinates of the insertion point (x1, y1, z1) and the center point (x2, y2, z2) of the steel beam, and calculate the vector k = (x2-x1, y2-y1, z2-z1);
[0029] Read the normal vector k1 = (a1, b1, c1) of all steel beam end faces. When k1·k>0, the normal vector of the steel beam positioning line is considered to be k1. Therefore, the positioning line of the steel beam is: (x-x1) / a1 = (y-y1) / b1 = (z-z1) / c1; a1, b1, and c1 are the X, Y, and Z values of the vector, respectively.
[0030] Furthermore, the specific method for obtaining the bolt hole position in step S4 is as follows: A ray method is used to determine whether the bolt intersects with the steel beam. For intersecting bolts, a perpendicular line is drawn from the bolt's positioning point to the steel beam's positioning line. The perpendicular point between the bolt's positioning point and the steel beam's positioning line is obtained. The distance between the perpendicular point and the steel beam's insertion point is the bolt's lateral distance. The length of the perpendicular line is the longitudinal distance in three-dimensional space, thus obtaining the bolt hole position. Therefore, by using a fixed dimension method and giving a given longitudinal spacing within the family type, the calculated three-dimensional longitudinal distances are statistically classified to determine whether it is a single-row bolt or a double-row bolt.
[0031] Furthermore, the conventional dimensions include: length and channel steel unfolded width; the acquisition of cross-sectional dimensions and conventional dimensions in step S4 is specifically as follows: given a reference line, if it is necessary to mark the diagram, the parameter naming rule is set with a "-" line for marking, i.e., khi-khj. The value of the dimension annotation between the reference line khi and khj is the dimension of khi-khj, where i and j are natural number labels 1, 2, 3..., and j>i.
[0032] The beneficial effects of this invention are as follows: It associates a 3D model with a 2D detail drawing, automatically calculates the bolt hole positions of the 3D model, and quickly draws the detail drawing; it uses the ray casting method to calculate the bolt hole positions, accurately locates the bolt holes, and accurately dimensions them in the detail drawing; it uses the spatial line intersection point method to accurately calculate the drain outlet positions and dimensions them in the detail drawing; and it adheres to the family naming rules and parameter naming rules of this invention, allowing for the unlimited addition of new types of components to calculate bolt and drain outlet positions and generate drawings. The family naming rules require that the name of the model family must contain the words "support material," and the name of the detail drawing component family must contain the words "detail drawing component," with the family type names corresponding one-to-one. The parameter naming rules are as follows: if a detail drawing component family needs to calculate the drain outlet position, a family instance parameter of type kc must be set; if bolts need to be calculated, parameters of the ka and kb series must be set, where the ka series is ka1, ka2, ka3..., and the kb series is kb1, kb2, kb3...; the parameter numbers can be added infinitely based on the sequence number. This invention relates to Revit 3D modeling, which automatically calculates bolt hole positions in the 3D model and quickly draws detailed drawings. It can complete the creation of 2D machining drawings for the entire project in less than a minute, saving significant manpower and resources. This method boasts high calculation accuracy and versatility, greatly improving work efficiency and precision. Attached Figure Description
[0033] Figure 1 This is a schematic diagram of the basic process of the method of the present invention.
[0034] Figure 2 This is a schematic diagram showing the one-to-one correspondence between the model family and the detailed component family names in one embodiment of the present invention.
[0035] Figure 3 This is a schematic diagram of the parameter naming method in the unfolded drawing of the steel beam of the detailed component family in one embodiment of the present invention.
[0036] Figure 4 This is a schematic diagram of the bolt hole positions after three-dimensional modeling in one embodiment of the present invention.
[0037] Figure 5 This is a schematic diagram of selecting the output component in one embodiment of the present invention.
[0038] Figure 6 This is a schematic diagram of the calculation of the drain outlet location in one embodiment of the present invention.
[0039] Figure 7 This is a schematic diagram of bolt hole position calculation in one embodiment of the present invention. Detailed Implementation
[0040] The invention will now be further described with reference to the accompanying drawings.
[0041] This invention provides a method for quickly drawing unfolded diagrams based on Revit calculations of bolt hole locations in steel structures. The method includes the following steps:
[0042] Step S1: Create families according to the drawing requirements. The modeling includes model families and detail component families. Model families are used for 3D modeling, and detail component families are used for drawing details. The names of model families and detail component families are matched one-to-one. The name of the model family must contain the words "support material", and the name of the detail component family must contain the words "detail component". The family type names contained in the model family and the detail component family must be matched one-to-one and associated.
[0043] Step S2: Perform 3D modeling using families, place the support material components and bolts of the detailed component family until the assembly is completed. Step S2 is further specified as follows: the junctions of different support material components need to be connected with bolts, that is, the junctions of the purlins and steel beams of the support material components, and the junctions of the supports and beams are connected with bolts. The positions of the bolt holes need to be obtained where there are bolt connections; if the purlins of the support material components contain drainage outlets, the positions of the drainage outlets need to be obtained.
[0044] Step S3: After the model is built, filter out all the components to be drawn and select the components that need to be drawn this time.
[0045] Step S4: Classify and statistically analyze the components according to family type. Components of the same family type and length are assigned one unfolded drawing. Determine whether the detailed drawing component family corresponding to the support material component contains parameters of the ka, kb, kc, and kh series. The parameters of the ka and kb series are the dimension line names for the outer and inner bolt hole positions defined in the family, respectively; the kc series is the dimension line name for the drain outlet position; and the kh series is the dimension line name for the cross-section. If yes, obtain the bolt hole position, drain outlet position, and cross-section dimensions respectively; otherwise, obtain the component's conventional dimensions and annotate them after obtaining the corresponding dimensions.
[0046] The KA series indicates multiple dimensions whose first two digits contain the letter "KA" and are distinguished by numbers, i.e., KA1, KA2, KA3, etc. The KA series is the dimension line name for the outer row of bolt holes. Similarly, the KB series indicates multiple dimensions whose first two digits contain the letter "KB" and are distinguished by numbers, i.e., KB1, KB2, KB3, etc. The KB series is the dimension line name for the inner row of bolt holes.
[0047] After step S5 and the annotations are completed, you will get a complete detailed unfolded diagram.
[0048] The present invention will be further described below with reference to a specific embodiment:
[0049] A method for quickly drawing unfolded diagrams based on Revit steel structure bolt hole calculations includes the following key points: (1) Setting drawing rules: Select drawing components and input customer names, etc.; (2) Creating families according to the drawing rules, where the model family name includes "support material" and the detailed component family name includes "detail component", and the family type names correspond one-to-one and are associated; (3) Classifying and statistically analyzing drawing components according to family type based on the drawing rules; (4) Calculating bolt hole location information by category (a) Calculating the parameters of the detailed component package ka and kb sequences; (b) Calculating the drainage outlet location for detailed components containing the kc1 parameter; (c) Calculating the lateral dimension if the parameter kh is included; (d) Calculating other dimensions: length, etc.; (5) Calculating the intersection of bolts and support materials using the ray method, determining whether it is a double row or single row of bolts based on the distance between the intersection and the component positioning line, and the lateral distance between the bolt and the insertion point is the lateral position of the bolt hole; (6) Statistically analyzing the number of support materials of the same type and length, one drawing view for each type, and ensuring that the drawing spacing meets daily needs. (7) As long as the family parameter naming rules of (1)-(6) of this invention are followed, new types of components can be added indefinitely, and the positions of bolts and drain holes can be calculated and drawings can be generated.
[0050] Figure 1 This method demonstrates its basic workflow. First, families are created according to the drawing rules, where the support materials of the model families correspond one-to-one with the detailed component families (see [reference]). Figure 2 (As shown), this facilitates drawing association. Next, use families for 3D modeling, placing support material components and bolts until the assembly is complete. After the model is built, all components that can be drawn can be filtered out, and the components that need to be drawn this time (such as...) can be selected. Figure 5 As shown), and input customer information and other settings. Click the unfold drawing button, and the program will start drawing and calculating: Step 1: Statistically classify all components in the project space; generate an unfold drawing for components of the same family type and the same length. Step 2: Determine whether the detailed component family corresponding to the support component contains parameters of the ka, kb, kc1, and kh series, and calculate the bolt hole position, drain outlet position, and lateral dimension respectively (e.g., Figure 3 As shown: ka and kb are the custom dimension line names for the outer and inner bolts in the family, respectively; kc1 is the dimension line name for the drain outlet position; and the kh series are the dimension line names for the cross-section. If the above parameters are not included, perform standard dimension calculations, such as for length and components with fixed bolt holes. Finally, after calculating the corresponding dimensions, add dimension annotations.
[0051] Process description:
[0052] Step 1: Establishing a Clan
[0053] This invention includes two types of families: model families and detail component families. Model families are used for 3D modeling, and detail component families are used for drawing details. The names of model families must include "support material," and the names of detail component families must include "detail component." Figure 2 The family type names contained in the two shown must correspond one-to-one for proper drawing association; otherwise, the corresponding components cannot be drawn. For example... Figure 3 The parameters shown include those for khi-khj, which can automatically calculate the dimensions between references khi and khj (i, j being labels 1, 2, 3, ...). This method can be used for components such as columns and cross braces where bolt positions are relatively uniform. The length dimension is the dimension between reference ka0 and the center reference. Furthermore, the insertion points of the model family and the detail component family must be consistent.
[0054] Specifically, if a detailed component family requires drainage outlet calculations, the family instance parameter for kc needs to be set. When calculating bolts, parameters for the ka and kb series need to be set. The ka series indicates multiple dimensions whose first two digits in the dimension line name contain the letter "ka" and are distinguished by numbers, i.e., ka1, ka2, ka3, etc. Similarly, the kb series indicates multiple dimensions whose first two digits in the dimension line name contain the letter "ka" and are distinguished by numbers, i.e., kb1, kb2, kb3, etc. The serial numbers after the parameters can be added indefinitely as needed.
[0055] Step 2: 3D Modeling
[0056] At the junctions of different components, such as purlins and steel beams, or supports and beams, bolt connections are used. Subsequent steps require calculation of the bolt hole positions (e.g., ...). Figure 4 (As shown). Additionally, the purlins at the eaves contain drainage outlets, and the location of these outlets needs to be calculated in subsequent steps.
[0057] Step 3: Select the components in the drawing.
[0058] After the model is built, filter out all components that need to be drawn and select the components that need to be drawn this time; to improve efficiency, select the components to be drawn as needed.
[0059] Step 4: Component Classification and Statistics
[0060] Classify and count the components that need to be drawn. Components of the same family type and the same length should be drawn as one unfolded drawing. The detail drawing should be drawn in two columns with a horizontal spacing of 1500mm and a vertical spacing of 2000mm. The view scale should be 1:20 and the view name should be the type parameter of the drawing name.
[0061] Step 5: Dimension Calculation
[0062] Dimension calculations include calculations for drain outlets, bolt hole positions, lateral dimensions, and general dimensions.
[0063] like Figure 6 As shown, a. Drainage outlet calculation: Taking the drainage outlet at the intersection of the purlin and the steel beam as an example, the first step is to calculate the positioning lines of the purlin and the steel beam. These are intersecting straight lines in space; project them onto a horizontal projection plane. The second step is to project the intersection point on the horizontal projection plane onto the positioning line of the steel beam to obtain the accurate location of the drainage outlet.
[0064] The calculation methods for the purlin and steel beam positioning lines are as follows. The two calculation methods are consistent, taking the steel beam as an example:
[0065] 1. Read the coordinates of the insertion point (x1, y1, z1) and the center point (x2, y2, z2) of the steel beam, and calculate the vector k = (x2-x1, y2-y1, z2-z1);
[0066] 2. Read the normal vector k1 = (a1, b1, c1) of all steel beam end faces. If k1·k > 0, then the normal vector of the steel beam positioning line is considered to be k1. Therefore, the positioning line of the steel beam is:
[0067] (x-x1) / a1=(y-y1) / b1=(z-z1) / c1
[0068] a1, b1, and c1 represent the X, Y, and Z values of the vector, respectively.
[0069] b. Bolt Calculation: The ray casting method is used to determine whether the bolts intersect with the steel beam. For intersecting bolts, the calculation is as follows: Figure 7 As shown, by drawing a perpendicular line from the bolt point to the steel beam positioning line, the perpendicular point between the bolt point and the steel beam positioning line can be calculated. The distance between the perpendicular point and the steel beam insertion point (e.g.) Figure 7 In this context, d1 and d2 represent the lateral distance between the bolts. The length of the vertical line represents the longitudinal distance in three-dimensional space, and cannot be directly considered as the longitudinal spacing in the unfolded diagram. Therefore, a fixed-size approach is used, with the longitudinal spacing specified in the family type. The calculated three-dimensional longitudinal distances are then statistically classified to determine whether the bolts are single-row or double-row.
[0070] ReferenceIntersector refIntersects=new ReferenceIntersector(elemntId,FindReferenceTarget.Face,view3D);
[0071] ReferenceWithContext refc0=refIntersects.FindNearest(XYZ,direction);
[0072] c. Calculation of cross-sectional dimensions and conventional dimensions: Given a reference line, if annotation is required on the drawing, set the parameter naming convention to include a "-" line for labeling, and the program can then add the annotation in the drawing. For example, khi-khj, read the reference lines khi and khj (see...). Figure 3 The values of the dimensions between kh4-kh5 are the dimensions of khi-khj (i, j are labels 1, 2, 3, ...).
[0073] Step Six: Dimensioning
[0074] The bolts can be labeled by obtaining the reference name and drawing the label positioning line.
[0075] string kast="center (left / right)"; / / Reference name 1
[0076] string kaenn="ka0"; / / Reference name 2
[0077] XYZ ka1=stPt+new XYZ(0,maxlenth / 2+hh*cdNum*0.5+0.75,0);
[0078] XYZ ka2=stPt+new XYZ(letn,maxlenth / 2+hh*cdNum*0.5+0.75,0);
[0079] if(ka1.DistanceTo(ka2)>0.0001)
[0080] {
[0081] Line dimentionLinecd=Line.CreateBound(ka1,ka2);
[0082] CreateDimention(doc,familyInstance,dimentionLinecd,viewDF,kast,kaenn);
[0083] }
[0084] Step 7: Output the drawing
[0085] Once the calculations are complete, a full detailed drawing will be obtained.
[0086] In summary, this invention enables the automatic calculation of bolt hole positions in Revit 3D modeling and rapid drawing of detailed drawings. It can complete the creation of 2D machining drawings for the entire project in less than a minute, saving significant manpower and resources. This method boasts high calculation accuracy and versatility, greatly improving work efficiency and precision.
[0087] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be included in the scope of the present invention.
Claims
1. A method for quickly drawing an expanded view based on Revit steel structure calculation of bolt hole position, characterized in that: The method shown includes the following steps: Step S1: Create families according to the drawing requirements. The modeling includes model families and detail component families. Model families are used for 3D modeling, and detail component families are used for drawing details. The names of model families and detail component families are matched one-to-one. Step S2: Create a 3D model using families, and place the support material components and bolts of the detailed component family until the assembly is complete. Step S3: After the model is built, filter out all the components to be drawn and select the components that need to be drawn this time. Step S4: Classify and statistically analyze the components according to family type. Components of the same family type and with the same length will be generated as one unfolded diagram. Determine whether the detailed drawing component family corresponding to the support material component contains parameters of the ka, kb, kc and kh series. The parameters of the ka and kb series are the dimension line names of the outer and inner bolt hole positions defined in the family, respectively. The kc series is the dimension line name of the drain outlet position, and the kh series is the dimension line name of the cross section. If yes, then obtain the bolt hole position, drain outlet position and cross section size respectively. If no, then obtain the conventional size of the component. After obtaining the corresponding size, dimension annotation is performed. Step S5: After the annotation is completed, a complete detailed unfolded diagram will be obtained; The specific steps for obtaining the location of the drain outlet in step S4 are as follows: Obtaining the drain outlet at the intersection of the purlin and the steel beam: Calculate the positioning lines of the purlin and the steel beam. Since the two are intersecting straight lines in space, project the purlin and the steel beam onto the horizontal projection plane. Based on the intersection point on the horizontal projection plane, project it onto the positioning line of the steel beam to obtain the accurate location of the drain outlet. The specific steps for obtaining the bolt hole positions in step S4 are as follows: A ray method is used to determine whether the bolt intersects with the steel beam. For intersecting bolts, a perpendicular line is drawn from the bolt's positioning point to the steel beam's positioning line. The perpendicular point between the bolt's positioning point and the steel beam's positioning line is obtained. The distance between the perpendicular point and the steel beam's insertion point is the bolt's lateral distance. The length of the perpendicular line is the longitudinal distance in three-dimensional space, thus obtaining the bolt hole positions. Therefore, using a fixed-size method, with a given longitudinal spacing in the family type, the calculated three-dimensional longitudinal distances are statistically classified to determine whether it is a single-row bolt or a double-row bolt. Given a reference line, obtain the cross-sectional dimensions and general dimensions, and finally obtain the detailed unfolded drawing after annotation.
2. The method for calculating bolt hole positions based on Revit steel structure to draw and develop a drawing quickly according to claim 1, characterized in that: Step S1 is further specified as follows: the name of the model family must contain the words "support material", the name of the detailed component family must contain the words "detailed component", and the family type names contained in the model family and the detailed component family must correspond one-to-one and be associated.
3. The method of claim 1, wherein the method is based on Revit steel structure calculation of bolt hole position for quick drawing development drawing. Step S2 is further specified as follows: the junctions of different support material components need to be connected with bolts, that is, the junctions of the purlins and steel beams of the support material components, and the junctions of the support and the beams are connected with bolts, and the positions of the bolt holes need to be obtained where there are bolt connections; if the purlins of the support material components contain drainage outlets, then the positions of the drainage outlets need to be obtained.
4. The method for calculating bolt hole positions based on Revit steel structure to draw and develop a drawing quickly according to claim 1, characterized in that: The KA series indicates dimensions with the letter "KA" in the first two digits of the dimension line name, distinguished by numbers, i.e., KA1, KA2, KA3, etc. The KA series is the dimension line name for the outer row of bolt holes. Similarly, the KB series indicates dimensions with the letter "KB" in the first two digits of the dimension line name, distinguished by numbers, i.e., KB1, KB2, KB3, etc. The KB series is the dimension line name for the inner row of bolt holes.
5. The method for quickly drawing an unfolded diagram based on Revit steel structure bolt hole location calculation according to claim 1, characterized in that: The calculation methods for purlin and steel beam positioning lines are as follows. The calculation methods for purlins and steel beams are the same; therefore, the calculation method for steel beam positioning lines is as follows: Read the coordinates of the insertion point (x1, y1, z1) and the center point (x2, y2, z2) of the steel beam, and calculate the vector k = (x2 - x1, y2 - y1, z2 - z1). Read the normal vector k1=(a1,b1,c1) of all steel beam end faces. When k1•k>0, the normal vector of the steel beam positioning line is considered to be k1. Therefore, the positioning line of the steel beam is: (x-x1) / a1=(y-y1) / b1=(z-z1) / c1; a1, b1, and c1 are the X, Y, and Z values of the vector, respectively.
6. The method for quickly drawing an unfolded diagram based on the calculation of bolt hole positions in Revit steel structures according to claim 1, characterized in that: The conventional dimensions include: length and channel steel unfolded width; the acquisition of cross-sectional dimensions and conventional dimensions in step S4 is specifically as follows: given a reference line, if it is necessary to mark the diagram, the parameter naming rule is marked with a "-" line, i.e., khi-khj. The value of the dimension annotation between reference line khi and khj is the dimension of khi-khj, where i and j are natural number labels 1, 2, 3..., and j>i.