A method for marking lines and related device

By marking and numbering model instances in the Revit software, the problems of long time-consuming, cumbersome and high error rate numbering in the existing technology are solved, and fast and accurate numbering of model instances is achieved.

CN112598396BActive Publication Date: 2024-08-27SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011597124.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-08-27
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

The process of numbering model instances in the prior art is time-consuming, cumbersome, and has a high error rate.

Method used

Provides a line numbering method. The user lines the model instances to be numbered in the Revit software, receives the line information, and sequentially numbers the model instances that the model lines pass through in sequence based on the set numbering information, simplifying the numbering process. .

Benefits of technology

This method greatly reduces the time-consuming numbering, reduces the error rate, and improves the efficiency and accuracy of numbering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112598396B
    Figure CN112598396B
Patent Text Reader

Abstract

The application provides a method for marking and numbering a line and a related device, wherein the method includes: displaying a model instance to be numbered; receiving information of a model line; the model line is obtained by a user by marking through the model instance; displaying an interface for setting numbering information; and sequentially numbering the model instances that the model line passes through in sequence based on the set numbering information. In the present application, the user only needs to mark the model instance to be numbered to obtain the model line, and there is no need to operate on each model instance to be numbered. Therefore, the present application saves time and effort and has a low error rate. Thus, the problem of time-consuming, cumbersome and high error rate of numbering in the prior art can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of architectural modeling, and in particular to a line numbering method and related devices. Background Art

[0002] Building Information Modeling (BIM) has been widely used in the field of engineering design, and Autodesk Revit (Revit software) is a BIM 3D modeling tool commonly used by architectural designers. In practice, when designers use Revit software to build BIM models, they need to number the model instances.

[0003] Currently, the process of numbering model instances can include: Step 1, create numbering parameters, select Management -> Project Parameters -> Add -> Enter parameter name -> Select parameter type -> Select parameter grouping method -> Select model type -> OK in Revit software. Step 2, set the numbering parameters. Specifically, manually select the model instance to be numbered in step 1 in the Revit view, find the parameter added in step 1 in the property panel, and fill in the number. Repeat step 2 until all model instances are numbered.

[0004] In the prior art, model instances are manually numbered, which is time-consuming, cumbersome, and has a high error rate. Summary of the invention

[0005] The present application provides a line numbering method and related devices, the purpose of which is to solve the problem in the prior art that numbering model instances separately is time-consuming, cumbersome, and has a high error rate.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] The present application provides a line numbering method, comprising:

[0008] Display the model instances to be numbered;

[0009] Receiving information of a model line; the model line is obtained by a user drawing a line through the model instance;

[0010] Displaying an interface for setting numbering information; and

[0011] Based on the set numbering information, the model instances through which the model line passes in sequence are numbered sequentially.

[0012] Optionally, the interface includes at least: option information for determining the type of the model instance to be numbered and option information for selecting the model line to be processed; the set numbering information includes: the type of the model instance to be numbered and the model line information to be processed;

[0013] The step of sequentially numbering the model instances that the model line sequentially passes through based on the set numbering information comprises:

[0014] The model instances of the type of the model instances to be numbered that the model line to be processed passes through sequentially are numbered sequentially.

[0015] Optionally, in the case where there are multiple model lines to be processed and they are selected in batches, the information of the model lines to be processed includes: the order in which the multiple model lines to be processed are selected;

[0016] The step of sequentially numbering the model instances of the model instance type to be numbered that are sequentially passed through by the model line to be processed comprises:

[0017] According to the order in which the multiple model lines to be processed are selected, the model instances of the model instance type to be numbered that each model line to be processed passes through in sequence are numbered in sequence.

[0018] Optionally, the information of the model line to be processed also includes: the starting point, the end point and the position information corresponding to each model line to be processed;

[0019] Sequentially numbering the model instances of the model instance type to be numbered that are sequentially passed through by any of the model lines to be processed includes:

[0020] Filtering model instances of the type of the model instances to be numbered from the model instances to be numbered to obtain filtered model instances;

[0021] According to the position information of the model line to be processed, determining the filtered model instance through which the model line to be processed passes;

[0022] According to the starting point and the end point of the model line to be processed, a number name is generated for each filtered model instance that the model line to be processed passes through sequentially; the numbers in the number names generated successively start from the target number and the numbers increase in order.

[0023] Optionally, according to the starting point and the end point of the model line to be processed, a number name is generated for each filtered model instance that the model line to be processed sequentially passes through, including:

[0024] According to the starting point and the end point of the model line to be processed, the order of each filtered model instance sequentially passed by the model line to be processed is used as the sorting of the filtered model instances passed by the model line to be processed;

[0025] Based on the principle that the numbering starts from the target number and the numbering increases in order, a number name is generated for each sorted and filtered model instance.

[0026] Optionally, the interface further includes: prompt information for setting a numbering rule for a numbering model instance; the numbering rule includes: a numbering direction; the set numbering information further includes: numbering rule information; the numbering rule information includes: numbering direction information; the numbering direction information is a forward direction from a starting point to an end point, or a reverse direction from an end point to a starting point;

[0027] The order of the selected model instances that the model line to be processed sequentially passes through according to the starting point and the end point of the model line to be processed is used as the sorting of the selected model instances that the model line to be processed passes through, including:

[0028] The order of the filtered model instances that the to-be-processed model line sequentially passes through in the numbering direction information is used as the sorting of the filtered model instances that the to-be-processed model line passes through.

[0029] Optionally, the numbering rule information further includes: numbering name information and a starting number value;

[0030] The method starts from the target number and increases in order of the number size, and generates a number name for each sorted and filtered model instance, including:

[0031] Based on the principle of starting from the starting number and increasing the number size in sequence, a number name is generated for each sorted and filtered model instance in turn according to the number name information.

[0032] Optionally, determining the filtered model instance through which the model line to be processed passes according to the position information of the model line to be processed includes:

[0033] Calculating the intersection point of the model line to be processed and the horizontal projection contour of the screened model instance;

[0034] The filtered model instance indicated by the intersection point is used as the filtered model instance through which the model line to be processed passes.

[0035] Optionally, the option information for determining the type of the model instance to be numbered includes: a plurality of preset model instance type items, and a preset option for picking up the type of the model instance to be numbered from the model instances to be numbered;

[0036] The method for obtaining the type of the model instance to be numbered includes:

[0037] When receiving a selection instruction for the preset multiple model instance type items, obtaining a model instance type selected from the preset multiple model instance type items to obtain the model instance type to be numbered;

[0038] When a trigger instruction for the preset option is received, the model instance to be numbered is displayed; the model instance selected by the user is received; based on the preset correspondence between the model instance and the model instance type, the model instance type corresponding to the selected model instance is determined to obtain the model instance type to be numbered.

[0039] The present application also provides a line numbering device, comprising:

[0040] A first display module, used for displaying the model instances to be numbered;

[0041] A receiving module, used for receiving information of a model line; the model line is obtained by a user drawing a line through the model instance;

[0042] A second display module, used to display an interface for setting numbering information; and

[0043] The numbering module is used to sequentially number the model instances that the model line passes through in sequence based on the set numbering information.

[0044] The present application also provides a storage medium, which includes a stored program, wherein the program executes any of the above-mentioned line numbering methods.

[0045] The present application also provides a device, which includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute any of the above-mentioned line numbering methods.

[0046] The line marking and numbering method and related device described in the present application display the model instance to be numbered; receive the information of the model line; the model line is obtained by the user by marking through the model instance; display an interface for setting the numbering information; and based on the set numbering information, sequentially number the model instances that the model line passes through in sequence. That is, in the present application, the user only needs to mark the model instance to be numbered to obtain the model line, and there is no need to operate each model instance to be numbered. Therefore, the present application saves time and effort and has a low error rate. Thus, the problem that the numbering in the prior art is time-consuming, cumbersome and has a high error rate can be solved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 A flowchart of a line numbering method disclosed in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of a result of scribing through a model instance to be numbered disclosed in an embodiment of the present application;

[0050] Figure 3 A flowchart of another line numbering method disclosed in an embodiment of the present application;

[0051] Figure 4 A schematic diagram of the opening interface of the plug-in disclosed in the embodiment of the present application;

[0052] Figure 5 A schematic diagram of a line segment combination corresponding to a model line to be processed disclosed in an embodiment of the present application;

[0053] Figure 6 A schematic diagram of the sorting result of the line segment combination corresponding to the model line to be processed disclosed in the embodiment of the present application;

[0054] Figure 7 It is a schematic diagram of calculation results of the model instance after screening through which the model line to be processed passes according to the embodiment of the present application;

[0055] 8(a) to (d) are schematic diagrams of the results of sorting the filtered model instances through which the line segments in group 1 and group 2 pass according to the embodiment of the present application;

[0056] Fig. 9 A schematic diagram of the structure of a line numbering device disclosed in an embodiment of the present application;

[0057] Fig.10 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0059] Figure 1 A method for line numbering is provided in the embodiment of the present application. This embodiment takes the Revit software as an example to introduce the process of line numbering. Of course, in practice, the execution subject of the line numbering method provided in this embodiment can also be other devices, and this embodiment does not limit the specific content of the execution subject. Among them, the Revit software includes a pre-developed plug-in, which can include the following steps:

[0060] S101. Displaying model instances to be numbered.

[0061] In this step, the model instances that can be numbered can be displayed in the view of the Revit model. For the convenience of description, the model instances that can be numbered are referred to as model instances to be numbered.

[0062] In this embodiment, the model instances to be numbered may be model instances of multiple types.

[0063] In this embodiment, the user can draw a line in the view in a manner of passing through the model instances to be numbered. In this embodiment, for the convenience of description, the line drawn by the user in the view passing through the model instances to be numbered is called a model line.

[0064] It should be noted that, in this embodiment, the line drawn by the user through the model instance to be numbered may be one or more lines, and the specific number of lines needs to be determined by the user according to actual conditions.

[0065] In order to intuitively display the model instances and model lines to be numbered in the Revit model view in this embodiment, this embodiment provides Figure 2 The schematic diagram of the streaking result is shown in Figure 2. Figure 2 In the figure, the model instance to be numbered is shown. Figure 2 In the example, the user draws four model lines, namely "Model Line 1", "Model Line 2", "Model Line 3" and "Model Line 4". Each model line passes through a part of the model instances to be numbered.

[0066] S102: Receive information about the model line.

[0067] In this embodiment, when the user draws the model line, the Revit software can receive the information of the model line drawn by the user.

[0068] Optionally, in this embodiment, the information of the model line may include: a starting point and an end point of the model line and position information of the model line, wherein the position information of the model line may be position information of the model line in the view.

[0069] S103: Display an interface for setting numbering information.

[0070] In this embodiment, when a preset calling instruction is received, an interface for setting the number information may be displayed, wherein the preset calling instruction may refer to an instruction for calling a previously developed plug-in.

[0071] In this embodiment, when the Revit software receives an instruction to call the plug-in, it displays an interface for the user to set the numbering information.

[0072] S104. Based on the set numbering information, the model instances through which the model line passes are sequentially numbered.

[0073] In this embodiment, when a preset numbering instruction is received, the model instances through which the model line passes sequentially can be numbered sequentially. For example, the user can click a preset button on the interface, that is, the plug-in receives the numbering instruction and performs the operation of this step.

[0074] In this step, the model instances that the model line passes through are numbered sequentially.

[0075] In this embodiment, the user only needs to draw lines on the model instances to be numbered to obtain the model lines, and does not need to operate on each model instance to be numbered. Therefore, this application saves time and effort and has a low error rate. Thus, the problem of time-consuming, cumbersome and high error rate of numbering in the prior art can be solved.

[0076] exist Figure 1In a corresponding embodiment, based on the set numbering information, the model instances that the model line passes through in sequence are numbered sequentially. In practice, the user may not want to number all the displayed model instances to be numbered. For example, the user only needs to number a certain type or several types of model instances among the displayed model instances to be numbered. For this requirement, the interface for setting the numbering information displayed in the embodiment of the present application at least includes: option information for determining the type of model instance to be numbered, and option information for selecting the model line to be processed. Among them, the type of model instance to be numbered refers to: the type of model instance that the user needs to number among the model instances to be numbered displayed in the indication view. In this embodiment, the user can select the model instance type based on the option information for determining the type of model instance to be numbered. The user can select the model line to be processed based on the option information for selecting the model line to be processed.

[0077] Based on the information set by the user in the interface, the process of line numbering is performed. The embodiment of the present application provides another method of line numbering, such as Figure 3 As shown. The execution subject also takes Revit software as an example, and the Revit software includes a pre-developed plug-in, which may include the following steps:

[0078] S301, displaying the model instances to be numbered.

[0079] The specific meaning of this step can be found in S201 and will not be repeated here.

[0080] S302: Receive model line information.

[0081] In this step, the model line is obtained by the user by drawing a line through the model instance to be numbered.

[0082] S303: Display an interface for setting numbering information.

[0083] In this embodiment, the Revit software can display the interface when receiving an instruction to call a plug-in. The preset calling instruction refers to an instruction to call a plug-in developed in advance.

[0084] In this embodiment, the displayed interface may include: option information for determining the type of model instances to be numbered and option information for selecting model lines to be processed.

[0085] Optionally, the interface may further include prompt information for setting a numbering rule for the model instance indicated by the type of model instance to be numbered, wherein the numbering rule may include: numbering direction, numbering name and starting number.

[0086] Optionally, in this embodiment, the option information for determining the type of the model instance to be numbered may include: a plurality of preset model instance type items, and / or preset options for picking the type of the model instance to be numbered from the model instances to be numbered.

[0087] For intuitive display, this embodiment takes Revit software as an example, and the interface shown is as follows: Figure 4 As shown. Figure 4 In the "Type", there are two types: "Room" and "Parking space group" for users to choose.

[0088] exist Figure 4 In the example, the option information for determining the type of parking space instance to be numbered in the "parking space family" is given by taking the selected "parking space family". The option information includes the types of multiple preset parking space instances. The preset multiple parking space instance types include: "LH-A-parking space-standard parking space", "LH-A-parking space-AC pile parking space", "LH-A-parking space-mini parking space", "LH-A-parking space-mother-child parking space" and "LH-A-parking space-disabled parking space".

[0089] exist Figure 4 In the dialog box, the "Pick from Model" button represents a preset option. Once this preset option is triggered, the user can pick the parking space instance type to be numbered from the model instance to be numbered displayed in the Revit model.

[0090] exist Figure 4 In the example, the "Select Line Generation Number" option indicates: option information for selecting model lines to be processed. When the "Select Line Generation Number" option is triggered, the plug-in provides an interface for users to select model lines to be processed.

[0091] exist Figure 4 In the “Prefix”, “Suffix”, “Start Number” and “Numbering Direction: Forward and Reverse”, it means: prompt information for setting the numbering rule of the model instance indicated by the model instance type to be numbered. Among them, “Prefix” and “Suffix” are used to prompt the user to set the prefix and suffix of the number name of the model instance indicated by the model instance type to be numbered.

[0092] "Starting number" is used to prompt the user to set the starting value of the number in the code name. In this embodiment, in order to facilitate the user to set the value of the starting number, an option for automatically determining the starting number is provided, for example, Figure 4 "Get starting number" option. When the user triggers this option, the plug-in will get the next unused number that meets the current prefix and suffix settings as the starting number value for this numbering.

[0093] “Numbering direction: forward and reverse” is used to prompt the user to set the direction in which the model line passes through the model instance indicated by the type of model instance to be numbered.

[0094] S304: When receiving an instruction to select a model instance type, obtain the selected model instance type to obtain the model instance type to be numbered.

[0095] In this step, upon receiving the instruction to select the model instance type to be numbered, the plug-in obtains the selected model instance type and uses the obtained model instance type as the model instance type to be numbered.

[0096] Also Figure 4 For example, since this embodiment provides two ways to select the model instance type to be numbered, in this step, the selection instructions for the model instance type received by the plug-in may include two types. The first type is receiving the selection instructions for the preset multiple model instance type items. The second type is the triggering instruction for the preset option.

[0097] For the first type, in this embodiment, when the plug-in receives a selection instruction for a plurality of preset model instance type items, it obtains the model instance type selected from the plurality of preset model instance type items to obtain the model instance type to be numbered.

[0098] Also Figure 4 As an example, in the multiple parking space instance types shown in Figure 4 In the example, the parking space instance types selected by the user are "LH-A-parking space-standard parking space", "LH-A-parking space-mother-child parking space" and "LH-A-parking space-disabled parking space", that is, these three types of parking space instance types are used as the parking space instance types to be numbered.

[0099] For the second type, when the plug-in receives a trigger instruction for a preset option, first, the model instances to be numbered are displayed in the view, and then the model instance selected by the user from the model instances to be numbered is received. Finally, according to the preset correspondence between the model instance and the model instance type, the model instance type corresponding to the selected model instance is determined to obtain the model instance type to be numbered.

[0100] Also Figure 4 For example, when the user triggers Figure 4In the case of the "Pick from Model" option in the Revit model, the user can select multiple parking space model instances through the dotted box, that is, the dotted box intersects several parking space model instances. After obtaining the parking space model instance that intersects with the dotted box, the plug-in determines the model instance type corresponding to the selected model instance based on the preset correspondence between the model instance and the model instance type in the Revit model, and obtains the target model instance type. For example, the three parking space model instance types of "LH-A-Parking Space-Standard Parking Space", "LH-A-Parking Space-Mother and Child Parking Space" and "LH-A-Parking Space-Disabled Parking Space" are also obtained.

[0101] S305. When receiving a setting instruction for a numbering rule, obtain the numbering rule information set by the setting instruction.

[0102] Also Figure 4 For example, due to Figure 4 The prompt information for setting the numbering rule (for example, the numbering name, the starting number, and the numbering direction) is given in the process of setting by the user. During the setting process, the plug-in will receive the setting information of the numbering rule. In this step, the specific setting value of the numbering rule is obtained, which is called the numbering rule information for the convenience of description.

[0103] by Figure 4 For example, the numbering rule information may include: numbering direction information. The numbering direction information is the forward direction from the starting point to the end point, or the reverse direction from the end point to the starting point. The numbering rule information may also include: numbering name information and the starting number value.

[0104] It should be noted that, in this embodiment, this step is an optional step.

[0105] S306. When receiving the instruction for selecting the model line, obtain the information of the selected model line and obtain the information of the model line to be processed.

[0106] Also Figure 4 For example, the plug-in receives the user's Figure 4 In the case of the trigger instruction of "Select line generation number", it can be displayed Figure 2 The model lines shown in the figure are provided for the user to select the model lines. In this embodiment, the user can select the model lines in two ways, wherein one is to select one model line at a time. The other is to directly select the model line to be selected by framing.

[0107] In this step, the plug-in obtains the information of the model line selected by the user from the model lines when receiving the instruction to select the model line. For the convenience of description, the model line selected by the user is called the model line to be processed. Therefore, the information of the model line selected by the user is the information of the model line to be processed.

[0108] In this embodiment, if multiple model lines are selected, the information of the model lines to be processed may include: the starting point, end point and position information (which may be position information in the view) corresponding to each model line to be processed.

[0109] Furthermore, if the selected multiple model lines are selected in batches, the information of the model lines to be processed also includes: the order in which the multiple model lines to be processed are selected.

[0110] S307 , sequentially numbering the model instances of the to-be-numbered model instance type that the model line to be processed sequentially passes through.

[0111] In this step, the operation of this step can be performed when a preset numbering instruction is received. The content of the preset numbering instruction can be determined according to actual conditions, and this embodiment does not limit the specific content of the numbering instruction.

[0112] In this embodiment, the model line to be processed may be one or more.

[0113] If there is only one model line to be processed, the plug-in sequentially numbers the model instances of the model instance type to be numbered that the model line to be processed passes through in sequence.

[0114] If there are multiple model lines to be processed and the multiple model lines to be processed are selected in batches, the plug-in can sequentially number the model instances of the model instance type to be numbered that each model line to be processed passes through in sequence according to the order in which the multiple model lines to be processed are selected.

[0115] If there are multiple model lines to be processed and the multiple model lines to be processed are obtained by the frame at one time, the plug-in will sort them according to the starting point coordinates of the multiple model lines to be processed, and sequentially number the model instances of the model instance type to be numbered that each model line to be processed passes through in sequence according to the order indicated by the sorting result.

[0116] In this embodiment, the model instances of the model instance type to be numbered that are sequentially passed through by each model line to be processed are sequentially numbered in the same manner. For the convenience of introduction, this embodiment is introduced by taking any model line to be processed as an example. Specifically, the process of sequentially numbering the model instances of the model instance type to be numbered that are sequentially passed through by the model line to be processed may include the following steps A1 to A3:

[0117] A1. Filter out model instances of the type of the model instances to be numbered from the model instances to be numbered, and obtain filtered model instances.

[0118] In this step, model instances of the model instance type to be numbered are filtered from the model instances to be numbered displayed in the Revit model. For the convenience of description, the filtered model instances of the model instance type to be numbered are referred to as filtered model instances.

[0119] A2. According to the position information of the model line to be processed, determine the filtered model instance through which the model line to be processed passes.

[0120] In this embodiment, since the information of any model line to be processed may include the position information of the model line to be processed in the view, in this step, the specific implementation method of determining the filtered model instance that the model line to be processed passes through may include: calculating the intersection point of the horizontal projection contour of the model line to be processed and the filtered model instance, and using the filtered model instance indicated by the intersection point as the filtered model instance that the model line to be processed passes through.

[0121] A3. Generate a number name for each filtered model instance sequentially passed by the model line to be processed according to the starting point and the end point of the model line to be processed.

[0122] In this step, the numbers in the number names generated successively start from the target number and the numbers increase in order. If the user sets the value of the starting number, the value of the target number is the value of the starting number set by the user. If the user does not set the value of the starting number, the value of the target number is: the next unused digital number obtained by the plug-in from the historical number names that meets the prefix and suffix rules.

[0123] Optionally, the specific implementation of this step may include steps B1 and B2:

[0124] B1. According to the starting point and the end point of the model line to be processed, the order of each filtered model instance sequentially passed by the model line to be processed is used as the sorting of the filtered model instances passed by the model line to be processed.

[0125] In this step, the order of the filtered model instances that the model line to be processed passes through can be determined according to the direction from the starting point to the end point of the model line to be processed, or according to the direction from the end point to the starting point of the model line to be processed. This can be used as the sorting order of the filtered model instances that the model line to be processed passes through.

[0126] Optionally, if the user sets the numbering direction, then in this step, the order of the filtered model instances that the model line to be processed passes through in sequence on the numbering direction information can be used as the sorting of the filtered model instances that the model line to be processed passes through.

[0127] B2. Based on the principle that the numbering starts from the target number and the numbering increases in order, a number name is generated for each sorted and filtered model instance.

[0128] In this embodiment, if the user sets the value of the starting number in the interface, then in this step, the value of the target number is the value of the starting number set by the user. If the user does not set the value of the starting number in the interface, the value of the target number is the next number that has not been used and that the plug-in determines from the historical number names that the prefix and suffix of the number that matches the current user setting.

[0129] Optionally, in this step, a number name can be generated for each sorted and filtered model instance in turn according to the number name information, starting from the starting number value and increasing in order of number size.

[0130] In this embodiment, the model line may be formed by connecting multiple line segments in sequence. Of course, in practice, a model line may also be a curve, that is, it is not formed by connecting multiple line segments in sequence. In this embodiment, a model line is formed by connecting at least one line segment in sequence as an example to introduce the process of numbering the model instances of the to-be-numbered model instance type that the multiple to-be-processed model lines pass through in the above step S307.

[0131] Since each model line is composed of at least one line segment connected in sequence, each model line can correspond to a line segment combination. Figure 2 As an example, assume that Figure 2 The four model lines in are all model lines to be processed, and the line segment combinations corresponding to the four model lines to be processed and the sorting results of each group of line segment combinations are shown in Table 1. Among them, the intuitive effect diagram of the line segment combination is as follows Figure 5 As shown, the sorting results of each group of line segments are as follows Figure 6 shown.

[0132] Table 1

[0133] Group number Line segments within group 1 CD, DF, FE 2 AB 3 GH,HJ,JI,IK,KL,LM,MN 4 OP

[0134] exist Figure 5 middle, Figure 2 The model line 1 in the figure is composed of three line segments "CD", "DE" and "FE" connected in sequence. Figure 2 The model line 2 in the figure is composed of the line segment "AB. Figure 2 The model line 3 in is composed of eight sequentially connected line segments, namely, "GH", "HJ", "JI", "IK", "KL", "LM", "MN" and "EF". Figure 2 The model line 4 in FIG. 1 is composed of the line segment "OP".

[0135] exist Figure 6 In the example, the line segment combination corresponding to model line 1 is configured as group 1, the line segment combination corresponding to model line 2 is configured as group 2, the line segment combination corresponding to model line 3 is configured as group 3, and the line segment combination corresponding to model line 4 is configured as group 4.

[0136] The process of sequentially numbering the model instances of the model instance type to be numbered that are sequentially passed through by any model line to be processed may include the following steps A1 to A3:

[0137] A1. Filter out model instances of the type of the model instances to be numbered from the model instances to be numbered, and obtain filtered model instances.

[0138] A2. Determine the filtered model instance through which the model line to be processed passes according to the position information of the model line to be processed in the view.

[0139] In this step, specifically, each line segment in the line segment combination corresponding to the model line to be processed can be calculated, and the intersection points with the horizontal projection contour of the filtered model instance can be respectively calculated, and the filtered model instance indicated by the intersection point can be used as the filtered model instance passed by the model line to be processed.

[0140] In order to intuitively display the selected model instance through which the model line to be processed passes, this embodiment provides Figure 7 The calculation results shown in the figure are examples. Figure 7 It can be seen that for the model line to be processed composed of "CD", "DF" and "FE", the filtered parking space model instances that the model line to be processed passes through are: parking space model instances that intersect with the "CD", "DF" and "FE" line segments respectively and are marked with numbers. For the model line to be processed composed of the "AB" line segment, the filtered model instances that the model line to be processed passes through are model instances that intersect with the "AB" line segment and are marked with numbers. Model instances that intersect with the "AB" line segment and are not marked are not model instances that need to be numbered.

[0141] A3. Generate a number name for each filtered model instance sequentially passed by the model line to be processed according to the starting point and the end point of the model line to be processed.

[0142] Optionally, the specific implementation of this step may include steps B1 and B2:

[0143] B1. According to the starting point and the end point of the model line to be processed, the order of the selected model instances that the model line to be processed sequentially passes through is used as the sorting of the selected model instances that the model line to be processed passes through.

[0144] In this step, according to the direction of the model line to be processed from the starting point to the end point, the order of the filtered model instances that the model line to be processed passes through first is used as the sorting of the filtered model instances that the model line to be processed passes through.

[0145] In order to intuitively display the results of this step, this embodiment provides schematic diagrams of sorting results shown in Figures 8(a), 8(b), 8(c) and 8(d). Among them, Figure 8(a) is the result of sorting the model instances after screening through the line segment "CD" in group 1, Figure 8(b) is the result of sorting the model instances after screening through the line segment "DF" in group 1, Figure 8(c) is the result of sorting the model instances after screening through the line segment "FE" in group 1, and Figure 8(d) is the result of sorting the model instances after screening through the line segment "AB" in group 2.

[0146] B2. Starting from the target number and increasing in order of number size, generate a number name for each sorted and filtered model instance.

[0147] Optionally, in this step, a number name can be generated for each sorted and filtered model instance in turn according to the number name information, starting from a starting number value and increasing in order of number size.

[0148] For example, if the "prefix" in the numbering rule information is "XX", the number name generated for a parking space can be "XX10 car"

[0149] In this embodiment, the number name of each model instance can also be written into the corresponding property dialog box. For example, in this step, the number name generated for any filtered model instance is "XX10 car", and "XX10 parking space" can be written in the "parking space number" column in the property dialog box.

[0150] Fig. 9 A line numbering device provided in an embodiment of the present application may include: a first display module 901, a receiving module 902, a second display module 903 and a numbering module 904, wherein:

[0151] A first display module 901 is used to display the model instances to be numbered;

[0152] A receiving module 902 is used to receive information about a model line; the model line is obtained by a user drawing a line through the model instance;

[0153] A second display module 903, used to display an interface for setting numbering information; and

[0154] The numbering module 904 is used to sequentially number the model instances that the model line passes through in sequence based on the set numbering information.

[0155] Optionally, the interface includes at least: option information for determining the type of the model instance to be numbered and option information for selecting the model line to be processed; the set numbering information includes: the type of the model instance to be numbered and the model line information to be processed;

[0156] The numbering module 904 is used to sequentially number the model instances that the model line sequentially passes through based on the set numbering information, including:

[0157] The numbering module 904 is specifically configured to sequentially number the model instances of the to-be-numbered model instance type that the to-be-processed model line sequentially passes through.

[0158] Optionally, in the case where there are multiple model lines to be processed and they are selected in batches, the information of the model lines to be processed includes: the order in which the multiple model lines to be processed are selected;

[0159] The numbering module 904 is used to sequentially number the model instances of the model instance type to be numbered that the model line to be processed sequentially passes through, including:

[0160] The numbering module 904 is specifically configured to sequentially number the model instances of the to-be-numbered model instance type that each to-be-processed model line sequentially passes through according to the selected order of the multiple to-be-processed model lines.

[0161] Optionally, the information of the model line to be processed also includes: the starting point, the end point and the position information corresponding to each model line to be processed;

[0162] The numbering module 904 is used to sequentially number the model instances of the model instance type to be numbered that are sequentially passed through by any of the model lines to be processed, including:

[0163] The numbering module 904 is specifically used to filter out model instances of the type of model instances to be numbered from the model instances to be numbered, and obtain filtered model instances; determine the filtered model instances that the model line to be processed passes through based on the position information of the model line to be processed; and generate a number name for each filtered model instance that the model line to be processed passes through sequentially based on the starting point and the end point of the model line to be processed; the numbers in the number names generated successively start from the target number and the numbers increase in order.

[0164] Optionally, the numbering module 904 is used to generate a number name for each filtered model instance that the model line to be processed sequentially passes through according to the starting point and the end point of the model line to be processed, including:

[0165] The numbering module 904 is specifically used to use the order of each filtered model instance sequentially passed by the model line to be processed according to the starting point and the end point of the model line to be processed as the sorting of the filtered model instances passed by the model line to be processed; and to generate a number name for each filtered model instance after sorting in sequence based on the principle of numbering starting from the target number and increasing in order of number size.

[0166] Optionally, the interface further includes: prompt information for setting a numbering rule for a numbering model instance; the numbering rule includes: a numbering direction; the set numbering information further includes: numbering rule information; the numbering rule information includes: numbering direction information; the numbering direction information is a forward direction from a starting point to an end point, or a reverse direction from an end point to a starting point;

[0167] The numbering module 904 is used to sort the filtered model instances that the model line to be processed passes through in sequence according to the starting point and the end point of the model line to be processed, as the sorting of the filtered model instances that the model line to be processed passes through, including:

[0168] The numbering module 904 is specifically used to use the order of the filtered model instances that the to-be-processed model line sequentially passes through in the numbering direction information as the sorting of the filtered model instances that the to-be-processed model line passes through.

[0169] Optionally, the numbering rule information further includes: numbering name information and a starting number value;

[0170] The numbering module 904 is used to generate a number name for each sorted and filtered model instance in order of increasing number size starting from the target number, including:

[0171] The numbering module 904 is specifically used to generate a number name for each sorted and filtered model instance in accordance with the number name information, starting from the starting number value and increasing in order of number size.

[0172] Optionally, the numbering module 904 is used to determine the filtered model instance that the model line to be processed passes through according to the position information of the model line to be processed, including:

[0173] The numbering module 904 is specifically used to calculate the intersection point between the model line to be processed and the horizontal projection contour of the filtered model instance; and use the filtered model instance indicated by the intersection point as the filtered model instance passed by the model line to be processed.

[0174] Optionally, the option information for determining the type of the model instance to be numbered includes: a plurality of preset model instance type items, and a preset option for picking up the type of the model instance to be numbered from the model instances to be numbered;

[0175] The device also includes: an acquisition module, used to acquire the type of the model instance to be numbered;

[0176] The acquisition module is used to acquire the type of the model instance to be numbered, including:

[0177] The acquisition module is specifically used to, upon receiving a selection instruction for the preset multiple model instance type items, acquire the model instance type selected from the preset multiple model instance type items to obtain the model instance type to be numbered; upon receiving a trigger instruction for the preset option, display the model instance to be numbered; receive the model instance selected by the user; and determine the model instance type corresponding to the selected model instance based on a preset correspondence between the model instance and the model instance type to obtain the model instance type to be numbered.

[0178] The line numbering device includes a processor and a memory. The first display module 901, the receiving module 902, the second display module 903 and the numbering module 904 are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

[0179] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the problem of numbering the same model instances separately in the prior art, which is time-consuming, cumbersome, and has a high error rate.

[0180] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the line numbering method is implemented.

[0181] An embodiment of the present invention provides a processor, which is used to run a program, wherein the line numbering method is executed when the program is run.

[0182] An embodiment of the present invention provides a device, such as Fig.10As shown, the device includes at least one processor, at least one memory connected to the processor, and a bus; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the above-mentioned line numbering method. The device in this article can be a server, PC, PAD, mobile phone, etc.

[0183] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:

[0184] Display the model instances to be numbered;

[0185] Receiving information of a model line; the model line is obtained by a user drawing a line through the model instance;

[0186] Displaying an interface for setting numbering information; and

[0187] Based on the set numbering information, the model instances through which the model line passes in sequence are numbered sequentially.

[0188] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0189] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.

[0190] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0191] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0192] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0193] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0194] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

[0195] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0196] The features described in the various embodiments of this specification can be replaced or combined with each other. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referenced to each other.

[0197] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for line numbering, characterized in that: include: Display the model instances to be numbered; Receiving information of a model line; the model line is obtained by a user drawing a line through the model instance; Display the interface for setting number information; as well as Based on the set numbering information, sequentially number the model instances that the model line passes through in sequence; The interface for setting the numbering information is displayed, including at least: option information for determining the type of the model instance to be numbered and option information for selecting the model line to be processed; by receiving a trigger operation of the user on the option information of the model line to be processed, a model line selection interface containing the model lines is displayed; based on the model line selection operation triggered by the user on the model line selection interface, the selection of the model line to be processed is performed; the model line selection operation triggered by the user on the model line selection interface includes at least: a method of selecting one model line at a time and / or a method of framing the model line to be selected; The set numbering information includes: the type of the model instance to be numbered and the model line information to be processed; The step of sequentially numbering the model instances that the model line sequentially passes through based on the set numbering information includes: If there is only one model line to be processed, then sequentially numbering the model instances of the model instance type to be numbered that the model line to be processed sequentially passes through; If there are multiple model lines to be processed and they are selected in batches, the information of the model lines to be processed includes: the order in which the multiple model lines to be processed are selected; then, according to the order in which the multiple model lines to be processed are selected, the model instances of the model instance type to be numbered that each model line to be processed passes through in sequence are sequentially numbered; If there are multiple model lines to be processed and the multiple model lines to be processed are obtained by being framed at one time, they are sorted according to the coordinates of the starting points of the multiple model lines to be processed, and the model instances of the model instance type to be numbered that each model line to be processed passes through are sequentially numbered in the order indicated by the sorting results.

2. The method according to claim 1, characterized in that The information of the model line to be processed also includes: the starting point, the end point and the position information corresponding to each model line to be processed; Sequentially numbering the model instances of the model instance type to be numbered that are sequentially passed through by any of the model lines to be processed includes: Filtering model instances of the type of the model instances to be numbered from the model instances to be numbered to obtain filtered model instances; According to the position information of the model line to be processed, determining the filtered model instance through which the model line to be processed passes; According to the starting point and the end point of the model line to be processed, a number name is generated for each filtered model instance that the model line to be processed passes through sequentially; the numbers in the number names generated successively start from the target number and the numbers increase in order.

3. The method according to claim 2, characterized in that According to the starting point and the end point of the model line to be processed, a number name is generated for each filtered model instance that the model line to be processed sequentially passes through, including: According to the starting point and the end point of the model line to be processed, the order of each filtered model instance sequentially passed by the model line to be processed is used as the sorting of the filtered model instances passed by the model line to be processed; Based on the principle that the numbering starts from the target number and the numbering increases in order, a number name is generated for each sorted and filtered model instance.

4. The method according to claim 3, characterized in that The interface further includes: prompt information for setting a numbering rule for a numbering model instance; the numbering rule includes: a numbering direction; the set numbering information also includes: numbering rule information; the numbering rule information includes: numbering direction information; the numbering direction information is a forward direction from the starting point to the end point, or a reverse direction from the end point to the starting point; The order of the selected model instances that the model line to be processed sequentially passes through according to the starting point and the end point of the model line to be processed is used as the sorting of the selected model instances that the model line to be processed passes through, including: The order of the filtered model instances that the to-be-processed model line sequentially passes through in the numbering direction information is used as the sorting of the filtered model instances that the to-be-processed model line passes through.

5. The method according to claim 4, characterized in that The numbering rule information also includes: numbering name information and starting number value; The method starts from the target number and increases in order of the number size, and generates a number name for each sorted and filtered model instance, including: Based on the principle of starting from the starting number and increasing the number size in sequence, a number name is generated for each sorted and filtered model instance in turn according to the number name information.

6. The method according to claim 2, characterized in that The step of determining, based on the position information of the model line to be processed, the filtered model instance through which the model line to be processed passes comprises: Calculating the intersection point of the model line to be processed and the horizontal projection contour of the screened model instance; The filtered model instance indicated by the intersection point is used as the filtered model instance through which the model line to be processed passes.

7. The method according to claim 1, characterized in that The option information for determining the type of the model instance to be numbered includes: a plurality of preset model instance type items, and a preset option for picking up the type of the model instance to be numbered from the model instance to be numbered; The method for obtaining the type of the model instance to be numbered includes: When receiving a selection instruction for the preset multiple model instance type items, obtaining a model instance type selected from the preset multiple model instance type items to obtain the model instance type to be numbered; When a trigger instruction for the preset option is received, the model instance to be numbered is displayed; the model instance selected by the user is received; based on the preset correspondence between the model instance and the model instance type, the model instance type corresponding to the selected model instance is determined to obtain the model instance type to be numbered.

8. A marking numbering device, characterized in that: include: A first display module, used for displaying the model instances to be numbered; A receiving module, used for receiving information of a model line; the model line is obtained by a user drawing a line through the model instance; A second display module, used to display an interface for setting numbering information; as well as A numbering module, used for sequentially numbering the model instances that the model line passes through in sequence based on the set numbering information; The interface for setting the numbering information is displayed, including at least: option information for determining the type of the model instance to be numbered and option information for selecting the model line to be processed; by receiving a trigger operation of the user on the option information of the model line to be processed, a model line selection interface containing the model lines is displayed; based on the model line selection operation triggered by the user on the model line selection interface, the selection of the model line to be processed is performed; the model line selection operation triggered by the user on the model line selection interface includes at least: a method of selecting one model line at a time and / or a method of framing the model line to be selected; The set numbering information includes: the type of the model instance to be numbered and the model line information to be processed; The numbering module is specifically used for: If there is only one model line to be processed, then sequentially numbering the model instances of the model instance type to be numbered that the model line to be processed sequentially passes through; If there are multiple model lines to be processed and they are selected in batches, the information of the model lines to be processed includes: the order in which the multiple model lines to be processed are selected; then, according to the order in which the multiple model lines to be processed are selected, the model instances of the model instance type to be numbered that each model line to be processed passes through in sequence are sequentially numbered; If there are multiple model lines to be processed and the multiple model lines to be processed are obtained by being framed at one time, they are sorted according to the coordinates of the starting points of the multiple model lines to be processed, and the model instances of the model instance type to be numbered that each model line to be processed passes through are sequentially numbered in the order indicated by the sorting results.

9. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the line numbering method according to any one of claims 1 to 7.

10. A device, characterized in that: The device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the line numbering method as described in any one of claims 1 to 7.