Batch drawing creation and view layout method and device, equipment and medium

Through separate input interfaces and view configurations, combined with the Building Information Model API, efficient and accurate drawing creation and automated view layout are achieved, solving the problems of low efficiency and high error rate in existing technologies. It is suitable for standardized scenarios such as construction project approval.

CN120764002APending Publication Date: 2025-10-10ZHUBO DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510915743.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-03
Publication Date
2025-10-10

AI Technical Summary

Technical Problem

Existing technologies are inefficient and error-prone in the process of drawing creation and view layout in building information models. They are difficult for non-technical personnel to operate and cannot meet the needs of rapid iterative design. Parameter control and data-driven capabilities are insufficient, and view layout relies on fixed coordinate algorithms or manual calibration, resulting in high error risks and high technical barriers.

Method used

Obtain basic drawing parameters through a separate input interface, dynamically parse external data sources to generate numbering sequences, use the Building Information Model API to batch create drawings, obtain layout parameters through the view configuration interface, calculate view positioning points based on spatial location attribute priority and coordinate offset parameters, and realize automatic view layout.

Benefits of technology

The efficiency of drawing creation has been increased by more than 10 times, the error rate has been reduced to below 1%, the adaptability and scalability have been improved, the technical threshold has been lowered, the view layout has been ensured to be accurate and consistent, and rapid iteration of large projects has been supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120764002A_ABST
    Figure CN120764002A_ABST
Patent Text Reader

Abstract

The invention relates to a batch drawing creation and view layout method and device, equipment and a medium, and the method comprises the steps: responding to an interaction instruction through a separated parameter configuration mechanism to dynamically obtain drawing basic parameters, and combining with an external data source to analyze and generate a drawing sequence. In the drawing creating step, user input parameters are obtained through UI interface setting, and one-key batch generation is achieved; and obtaining view identifiers and coordinate offset parameters according to the view configuration interface, generating ordered view queues through spatial attribute priority ranking, and placing the ordered view queues on a target drawing in batches. The technical effect of the scheme is that the drawing creation and view layout efficiency in the building information model design is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of architectural design, and in particular to a method, device, equipment and medium for batch drawing creation and view layout. Background Art

[0002] In the field of Building Information Modeling (BIM) technology, especially during the construction project permit application phase, traditional drawing creation and view layout processes are highly dependent on manual operations. With the popularization of BIM technology, the architectural design industry is increasingly demanding automated tools, but existing methods still have significant flaws: designers need to create drawings and adjust view positions and scales one by one in Revit software. This process is not only time-consuming and inefficient, but also prone to view misalignment or inconsistent scales due to human error. Especially in large-scale projects, repetitive work increases the operational burden and makes it difficult to meet the needs of rapid design iteration. Although the visual programming-based Dynamo tool has been used to generate drawings in batches (such as by calling the Revit API in a node-based manner), the existing implementation lacks a separate parameter configuration mechanism, resulting in insufficient adaptability of drawing specifications and insufficient view layout accuracy. This makes it difficult for non-technical personnel to operate, further limiting its promotion in practical applications.

[0003] Furthermore, the limitations of existing technologies exacerbate industry pain points: weak parameter control and data-driven capabilities make it impossible to dynamically respond to design changes, and view layouts rely on fixed coordinate algorithms or manual calibration, increasing the risk of errors and technical barriers. Traditional Dynamo scripts separate the drawing creation and view placement processes, requiring users to execute multiple independent scripts step by step. This not only prolongs overall processing time but also makes it difficult to ensure output consistency, ultimately impacting submission compliance and project efficiency. This invention aims to address these issues through innovative mechanisms, enabling efficient and accurate automated processes. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide an efficient and accurate method for batch drawing creation and view automatic layout.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for batch drawing creation and view layout, comprising:

[0006] In response to the first user interaction instruction, obtaining a drawing basic parameter set through a separate input interface, the parameter set at least including a drawing specification identifier, a drawing frame type identifier, and a quantity allocation parameter;

[0007] Dynamically parsing an external data source based on the drawing specification identifier to generate a drawing number sequence and a drawing name sequence;

[0008] Calling the building information model API to batch create target drawings according to the frame type identifier and quantity allocation parameters;

[0009] In response to the second user interaction instruction, obtaining a view layout parameter set through the view configuration interface, the parameter set including at least a target drawing identifier set, a view identifier set to be placed, and a coordinate offset parameter;

[0010] sorting the set of view identifiers to be placed based on the spatial location attribute priority to generate an ordered view queue;

[0011] Calculate a view anchor point set according to the coordinate offset parameters;

[0012] The ordered view queue is batch-associated with the drawings corresponding to the target drawing identification set according to the view anchor point set.

[0013] Furthermore, the dynamically parsing the external data source based on the drawing specification identifier to generate the drawing number sequence and the drawing name sequence includes:

[0014] Read structured data files and generate a two-dimensional data matrix through row-column conversion operations;

[0015] The drawing number sequence and the drawing name sequence are extracted respectively according to preset index rules.

[0016] Furthermore, the step of calling the building information model API to batch create target drawings according to the frame type identifier and quantity allocation parameters includes:

[0017] Filter family instances in the building information model based on the frame type identifier;

[0018] Divide the drawing numbering sequence into subsets by the quantity allocation parameter;

[0019] Using the family instance as a template, the drawing creation operation is performed in parallel for each subset.

[0020] Furthermore, sorting the set of view identifiers to be placed based on the spatial location attribute priority to generate an ordered view queue includes:

[0021] Sort by view type priority in the first level;

[0022] Perform secondary sorting by associated elevation values ​​in similar views;

[0023] Perform three-level sorting by name in lexicographical order at the same elevation.

[0024] Furthermore, calculating the view anchor point set according to the coordinate offset parameters includes:

[0025] Get the coordinates of the drawing origin;

[0026] Dynamically generate relative displacement vectors based on coordinate offset parameters;

[0027] Generate a view anchor point set by vector superposition.

[0028] Furthermore, the implementation of the separate input interface includes:

[0029] Merge multiple input control groups through heterogeneous data integration nodes;

[0030] Use a visual form to dynamically receive drawing specification identification, frame type identification and quantity allocation parameters.

[0031] Furthermore, the implementation of the view configuration interface includes:

[0032] Get the target drawing ID set and the view ID set to be placed through the interactive list control;

[0033] Use the slider to dynamically adjust the coordinate offset parameters.

[0034] The present invention also provides a batch drawing creation and view layout device, comprising:

[0035] a parameter configuration module, configured to obtain a drawing basic parameter set through a separate input interface in response to a first user interaction instruction, wherein the parameter set includes at least a drawing specification identifier, a drawing frame type identifier, and a quantity allocation parameter;

[0036] A data parsing module, configured to dynamically parse an external data source based on the drawing specification identifier to generate a drawing number sequence and a drawing name sequence;

[0037] A drawing creation module is used to call the building information model API to batch create target drawings according to the frame type identification and quantity allocation parameters;

[0038] a layout parameter acquisition module, configured to acquire, in response to a second user interaction instruction, a view layout parameter set through a view configuration interface, wherein the parameter set includes at least a target drawing identifier set, a view identifier set to be placed, and a coordinate offset parameter;

[0039] a view queue generating module, configured to sort the set of view identifiers to be placed based on spatial location attribute priorities to generate an ordered view queue;

[0040] A view anchor point set calculation module, configured to calculate a view anchor point set according to the coordinate offset parameters;

[0041] The view layout module associates the ordered view queues in batches with the drawings corresponding to the target drawing identification set according to the view positioning point set.

[0042] The present invention also provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor implements the batch drawing creation and view layout method described above when executing the computer program.

[0043] The present invention also provides a storage medium storing a computer program, which, when executed by a processor, can implement the batch drawing creation and view layout method described above.

[0044] The beneficial effects of the present invention are: dynamically acquiring basic drawing parameters through a separate input interface, combining external data source analysis to achieve one-click batch drawing generation, reducing the time consumed by traditional manual operations from several hours to minutes, and greatly alleviating the burden of repetitive work; at the same time, utilizing spatial position attribute priority sorting and coordinate offset parameter calculation to ensure accurate and consistent view layout, eliminating position dislocation and scale deviation caused by human errors; in addition, the modular parameter configuration mechanism simplifies user interaction, lowers the technical threshold, enables non-professionals to operate easily, enhances the adaptability and scalability of the solution in large projects, and ultimately improves submission compliance and overall design efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The specific structure of the present invention is described in detail below with reference to the accompanying drawings.

[0046] Figure 1 A flowchart of a method for creating and laying out drawings in batches according to an embodiment of the present invention;

[0047] Figure 2 A UI interface configuration diagram for creating drawings according to an embodiment of the present invention;

[0048] Figure 3 Creating an interface diagram for a target drawing of an embodiment of the present invention;

[0049] Figure 4 A diagram illustrating a configuration of view layout visualization parameters according to an embodiment of the present invention;

[0050] Figure 5 Automatically layout cross-sections of views for embodiments of the present invention;

[0051] Figure 6 A block diagram of a device for creating and laying out drawings in batches according to an embodiment of the present invention;

[0052] Figure 7 A schematic block diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0053] With reference to the drawings and the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts are within the scope of the present application.

[0054] It should be understood that the terms "comprising" and "including" as used in the specification and the appended claims indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0055] It should also be understood that the terms used in the present application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the present application specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0056] It should be further understood that the term "and / or" used in the present application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations thereof, and includes these combinations.

[0057] Embodiments of the present application are: a batch drawing creation and view layout method, comprising:

[0058] S10, in response to a first user interaction instruction, acquiring a drawing basic parameter set through a split input interface, the parameter set at least including drawing specification identification, frame type identification and quantity allocation parameters.

[0059] In a specific embodiment, in step S10, the implementation mode of the split input interface includes:

[0060] S11, merging multiple input control groups through a heterogeneous data integration node;

[0061] S12, dynamically receiving drawing specification identification, frame type identification and quantity allocation parameters using a visual form.

[0062] In this embodiment, the specific implementation of the split input interface includes using MultipleInputForm++ nodes and InputGroupData nodes to build an interactive interface through a visual programming tool (such as Dynamo). For example:

[0063] The MultipleInputForm++ node creates a startup page containing a page title (such as "Drawing Creation Configuration"), a logo (such as a company logo), an OK / Cancel button, a switch control (such as a Boolean node control function enable), and multiple heterogeneous data set input controls. These data sets include drawing size identifiers (such as "A1" or "Al+0.5"), drawing frame type identifiers (such as "Standard Title Block"), and quantity allocation parameters (such as the input value for the number of A1 drawings).

[0064] The InputGroupData node groups input controls into structured groups, for example:

[0065] The file selection control (FilePath Data node) is used to obtain the drawing catalog Excel file path, such as when the user selects "project_sheets.xlsx" from the local computer.

[0066] The frame selection control (Listview Data node) displays a list of frame names (such as "Double Door Title Block" obtained through the Family.Name node), and users can interactively select.

[0067] Enter the quantity parameter in the text box control (TextBox Data node). For example, the Code Block node generates "10" to indicate the number of A1 sheets.

[0068] like Figure 2 As shown, this UI interface merges all inputs into one form to achieve parameter separation configuration.

[0069] By integrating heterogeneous data, parameter conflicts can be avoided, such as independent configuration of different drawing specifications, improving user interaction efficiency. Non-technical personnel can directly operate, reducing parameter setting time from 10 minutes to 30 seconds, and reducing input errors by over 50%.

[0070] S20. Dynamically parse the external data source based on the drawing specification identifier to generate a drawing number sequence and a drawing name sequence.

[0071] In a specific embodiment, step S20 specifically includes:

[0072] S21, read the structured data file, and generate a two-dimensional data matrix through row-column conversion operation;

[0073] S22. Extract the drawing number sequence and the drawing name sequence respectively according to preset index rules.

[0074] In this embodiment, external data source parsing specifically includes processing structured data files, such as Excel spreadsheets, and is implemented as follows:

[0075] Use the File From Path node to read the file, such as "project_sheets.xlsx", and then import the data through the Data.ImportExcel node.

[0076] The row-column conversion operation is performed by the List.Transpose node. For example, the original Excel table (rows: drawing numbers, columns: drawing names) is converted to a two-dimensional matrix. For example, if the input data is \["SHT-001","Plan","SHT-002","Elevation"], the converted data will be \["SHT-001","SHT-002","Plan","Elevation"].

[0077] The preset indexing rules are implemented through the List.GetItemAtIndex node. For example, index 0 extracts the drawing number sequence (such as "SHT-001", "SHT-002"), and index 1 extracts the drawing name sequence (such as "Plan", "Elevation").

[0078] This solution's dynamic parsing supports batch data processing, processing 100 data items in just 2 seconds (compared to 5 minutes for traditional manual copying). Row-column conversion ensures data structure alignment, preventing drawing creation failures caused by data misalignment and improving data compatibility.

[0079] S30: Calling a building information model API to batch create target drawings according to the frame type identifier and quantity allocation parameters.

[0080] In a specific embodiment, step S30 specifically includes:

[0081] S31, filtering family instances in the building information model according to the frame type identifier;

[0082] S32. Divide the drawing number sequence into multiple subsets according to the quantity allocation parameter;

[0083] S33. Using the family instance as a template, execute the drawing creation operation for each subset in parallel.

[0084] In this embodiment, the batch creation operation specifically calls the Revit API function, and the implementation method is as follows:

[0085] Filter Family Instances Use the Family Types node to filter family instances in a Revit project based on the border type identifier (such as "Standard A1 Title Block").

[0086] Sequence division is done using the List.Slice node, which divides the drawing number sequence into subsets based on the quantity allocation parameter. For example, if the number of drawings in A1 is 10, for example, subset 1 contains the first 10 numbers (SHT-001 to SHT-010), and subset 2 contains the subsequent numbers.

[0087] Parallel creation uses the Sheet.ByNameNumberTitleBlockAndView node, using the family instance as a template. The API is called for batch generation of drawings for each subset. For example, subset 1 creates 10 A1 drawings, while subset 2 creates Al+0.5 drawings. The Revit API automatically handles thread parallelism.

[0088] like Figure 3 As shown, the program logic of this step realizes one-click batch generation.

[0089] This solution only takes 1 minute to process 100 drawings in parallel, while the traditional method of processing them one by one takes 60 minutes, which is a 60-fold increase in efficiency. The modular division is suitable for multiple specifications of drawings to ensure consistency. For example, all A1 drawings use the same template to reduce manual intervention.

[0090] S40. In response to the second user interaction instruction, obtain a view layout parameter set through the view configuration interface, where the parameter set at least includes a target drawing identification set, a to-be-placed view identification set, and a coordinate offset parameter.

[0091] In a specific embodiment, in step S40, the implementation of the view configuration interface includes:

[0092] S41. Obtain a target drawing identification set and a view identification set to be placed through an interactive list control;

[0093] S42. Dynamically adjust the coordinate offset parameters through the slider control.

[0094] In this embodiment, the view configuration interface implementation includes an interactive list control and a slider control, which are constructed using Dynamo nodes:

[0095] Interactive list controls use the Listview Data node, for example:

[0096] The Collect.Sheets node collects all sheets (such as "SHT-001", "SHT-002"), and the Sheet.SheetNumber node obtains the identifier set. The user can select multiple target sheets.

[0097] The Collect.Views node collects views (such as "first floor plan"), and the Element.Name node obtains the view identifier set. Users can check the views to be placed.

[0098] The slider control uses the Slider node (such as Integer Slider) to dynamically adjust coordinate offset parameters. For example, the X position slider range is (0-1000mm), with a default value of 500mm; the Y position slider range is (0-800mm), with a step size of 10mm, and position changes can be previewed in real time.

[0099] like Figure 4 As shown, the UI provides visual parameter configuration. The interactive controls in this solution lower the technical barrier to entry, allowing users to configure parameters without coding. The real-time feedback provided by the slider reduces calibration errors, reducing the time required to set up the view layout from an estimated 15 minutes to just 1 minute.

[0100] S50: Sort the set of view identifiers to be placed based on spatial location attribute priorities to generate an ordered view queue.

[0101] In a specific embodiment, step S50 specifically includes:

[0102] S51. Perform a first-level sorting based on the view type priority order;

[0103] S52. Perform secondary sorting by associated elevation values ​​in similar views;

[0104] S53. Sort the items at the same level in lexicographical order by name in three levels.

[0105] In this embodiment, the sorting rule is specifically implemented as a multi-level priority algorithm:

[0106] First level sorting (view type priority): Sort by a preset order (plan > elevation > section), for example: grouping view ID sets into plan Figure 1 ,flat Figure 2 , facade Figure 1 , output plane Figure 1 ,flat Figure 2 , facade Figure 1 .

[0107] Secondary sorting (elevation value): In the same type of views, the views are sorted in ascending order by the associated elevations. For example, in the plan view group, the view with an elevation of 2.5m is sorted before the view with an elevation of 5.0m.

[0108] Three-level sorting (name lexicographical order): For the same elevation, sort in alphabetical order, for example, the view name "A-zone" comes before "B-zone".

[0109] Use a custom Dynamo node to perform this logic, such as the Elevation (Ascending) Sort node.

[0110] In this solution, sorting ensures the logical coherence of the view layout, such as prioritizing the floor plan to avoid overlapping views or disordered order. Processing 50 views takes only 0.5 seconds, improving the accuracy of subsequent placement steps.

[0111] S60: Calculate a view anchor point set according to the coordinate offset parameters.

[0112] In a specific embodiment, step S60 specifically includes:

[0113] S61, obtaining the coordinates of the origin of the drawing;

[0114] S62, dynamically generating a relative displacement vector according to the coordinate offset parameter;

[0115] S63. Generate a view positioning point set by vector superposition.

[0116] In this embodiment, the positioning point calculation specifically includes coordinate transformation:

[0117] The coordinates of the drawing origin are obtained through Revit API functions (such as ActiveView.Origin), for example, the origin (0,0,0).

[0118] Generate the relative displacement vector using the Point.ByCoordinates node. Calculate the vector based on the coordinate offset parameters (such as X = 500mm, Y = 300mm), such as the vector (500, 300, 0).

[0119] Vector superposition generates a set of anchor points: Apply a vector offset to each view, for example: origin (0,0,0) + vector (500,300,0) = anchor point (500,300,0), forming the point set (500,300), (600,400).

[0120] The dynamic calculation in this solution adapts to different drawing sizes to ensure accurate view position (error <1mm); eliminates manual measurement errors and improves submission compliance.

[0121] S70: Associating the ordered view queues in batches with drawings corresponding to the target drawing identification set according to the view positioning point set.

[0122] In this embodiment, the rhythm|Viewport.Create node is called in batches, and the implementation method is as follows:

[0123] Automatically create viewports via the Revit API by inputting an ordered sequence of views and a set of anchor points.

[0124] For example: View Queue "Plane Figure 1 ","Facade Figure 1Associate the anchor point set (500,300), (700,400) and place the viewports in batches on the target drawing (such as "SHT-001").

[0125] like Figure 5 As shown, this step completes the automatic layout of the view.

[0126] The full process automation in this solution reduces operation time from several hours to within 5 minutes, and supports one-click completion of large projects (such as 100+ views). The association accuracy between views and drawings is 100%, eliminating the risk of human error and improving the speed of design iteration.

[0127] Through the above-mentioned specific implementations, this solution achieves separate parameter configuration and dynamic data-driven design. The UI interface simplifies parameter input, lowering the technical barrier to entry; intelligent sorting and coordinate calculation ensure layout consistency. Ultimately, this solution increases the efficiency of drawing creation in BIM design by more than 10 times, reducing the error rate to less than 1%, making it suitable for standardized scenarios such as construction project approval.

[0128] like Figure 6 As shown, the present invention also provides a batch drawing creation and view layout device, comprising:

[0129] The parameter configuration module 10 is configured to obtain a drawing basic parameter set through a separate input interface in response to a first user interaction instruction, wherein the parameter set includes at least a drawing specification identifier, a drawing frame type identifier, and a quantity allocation parameter;

[0130] A data parsing module 20 is configured to dynamically parse an external data source based on the drawing specification identifier to generate a drawing number sequence and a drawing name sequence;

[0131] A drawing creation module 30 is configured to call a building information model API to batch create target drawings according to the frame type identifier and quantity allocation parameters;

[0132] a layout parameter acquisition module 40 for acquiring, in response to a second user interaction instruction, a view layout parameter set through a view configuration interface, wherein the parameter set includes at least a target drawing identifier set, a view identifier set to be placed, and a coordinate offset parameter;

[0133] A view queue generating module 50 is configured to sort the set of view identifiers to be placed based on spatial location attribute priorities to generate an ordered view queue;

[0134] A view anchor point set calculation module 60, configured to calculate a view anchor point set according to the coordinate offset parameters;

[0135] The view layout module 70 associates the ordered view queues in batches with the drawings corresponding to the target drawing identification set according to the view positioning point set.

[0136] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned batch drawing creation and view layout device can refer to the corresponding description in the aforementioned method embodiment. For the convenience and brevity of the description, it will not be repeated here.

[0137] The above-mentioned batch drawing creation and view layout device can be implemented in the form of a computer program. The computer program can be used in Figure 7 Runs on the computer device shown.

[0138] See also Figure 7 , Figure 7 This is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 can be a terminal or a server. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, personal digital assistant, wearable device, or other electronic device with communication capabilities. The server can be a standalone server or a server cluster consisting of multiple servers.

[0139] See Figure 7 The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0140] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, which, when executed, can enable the processor 502 to execute a batch drawing creation and view layout method.

[0141] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.

[0142] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a batch drawing creation and view layout method.

[0143] The network interface 505 is used to communicate with other devices through the network. Figure 7 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0144] The processor 502 is configured to run a computer program 5032 stored in the memory to implement the batch drawing creation and view layout method as described above.

[0145] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0146] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.

[0147] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to execute the batch drawing creation and view layout method described above.

[0148] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.

[0149] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0150] In the several embodiments provided herein, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.

[0151] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted as needed. The units in the devices of the embodiments of the present invention may be combined, divided, or deleted as needed. Furthermore, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.

[0152] If this integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present invention.

[0153] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A method for creating and laying out drawings in batches, characterized in that: include: In response to the first user interaction instruction, obtaining a drawing basic parameter set through a separate input interface, the parameter set at least including a drawing specification identifier, a drawing frame type identifier, and a quantity allocation parameter; Dynamically parsing an external data source based on the drawing specification identifier to generate a drawing number sequence and a drawing name sequence; Calling the building information model API to batch create target drawings according to the frame type identifier and quantity allocation parameters; In response to the second user interaction instruction, obtaining a view layout parameter set through the view configuration interface, the parameter set including at least a target drawing identifier set, a view identifier set to be placed, and a coordinate offset parameter; sorting the set of view identifiers to be placed based on the spatial location attribute priority to generate an ordered view queue; Calculate a view anchor point set according to the coordinate offset parameters; The ordered view queue is batch-associated with the drawings corresponding to the target drawing identification set according to the view anchor point set.

2. The method for batch drawing creation and view layout according to claim 1, characterized in that: The dynamically parsing the external data source based on the drawing specification identifier to generate a drawing number sequence and a drawing name sequence includes: Read structured data files and generate a two-dimensional data matrix through row-column conversion operations; The drawing number sequence and the drawing name sequence are extracted respectively according to preset index rules.

3. The method for batch drawing creation and view layout according to claim 1, characterized in that: The step of calling the building information model API to batch create target drawings according to the frame type identifier and quantity allocation parameters includes: Filter family instances in the building information model based on the frame type identifier; Divide the drawing numbering sequence into subsets by the quantity allocation parameter; Using the family instance as a template, the drawing creation operation is performed in parallel for each subset.

4. The method for batch drawing creation and view layout according to claim 1, characterized in that: The sorting of the to-be-placed view identifier sets based on the spatial location attribute priority to generate an ordered view queue includes: Sort by view type priority in the first level; Perform secondary sorting by associated elevation values ​​in similar views; Perform three-level sorting by name in lexicographical order at the same elevation.

5. The method for batch drawing creation and view layout according to claim 1, characterized in that: Calculating the view anchor point set according to the coordinate offset parameters includes: Get the coordinates of the drawing origin; Dynamically generate relative displacement vectors based on coordinate offset parameters; Generate a view anchor point set by vector superposition.

6. The method for batch drawing creation and view layout according to claim 1, characterized in that: The implementation of the separate input interface includes: Merge multiple input control groups through heterogeneous data integration nodes; Use a visual form to dynamically receive drawing specification identification, frame type identification and quantity allocation parameters.

7. The method for batch drawing creation and view layout according to claim 1, characterized in that: The implementation of the view configuration interface includes: Get the target drawing ID set and the view ID set to be placed through the interactive list control; Use the slider to dynamically adjust the coordinate offset parameters.

8. A batch drawing creation and view layout device, characterized in that: include: a parameter configuration module, configured to obtain a drawing basic parameter set through a separate input interface in response to a first user interaction instruction, wherein the parameter set includes at least a drawing specification identifier, a drawing frame type identifier, and a quantity allocation parameter; A data parsing module, configured to dynamically parse an external data source based on the drawing specification identifier to generate a drawing number sequence and a drawing name sequence; A drawing creation module is used to call the building information model API to batch create target drawings according to the frame type identification and quantity allocation parameters; a layout parameter acquisition module, configured to acquire, in response to a second user interaction instruction, a view layout parameter set through a view configuration interface, wherein the parameter set includes at least a target drawing identifier set, a view identifier set to be placed, and a coordinate offset parameter; a view queue generating module, configured to sort the set of view identifiers to be placed based on spatial location attribute priorities to generate an ordered view queue; A view anchor point set calculation module, configured to calculate a view anchor point set according to the coordinate offset parameters; The view layout module associates the ordered view queues in batches with the drawings corresponding to the target drawing identification set according to the view positioning point set.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the batch drawing creation and view layout method according to any one of claims 1 to 7 when executing the computer program.

10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method for batch drawing creation and view layout according to any one of claims 1 to 7 can be implemented.