Dynamo-based method for quickly coding component sequence through user-defined path

The Dynamo visual programming plug-in is used to calculate the distance between components and model lines and create a sorting table, which solves the problem of inconvenient component coding in the existing technology, enables rapid custom path coding, and improves construction efficiency.

CN118568822APending Publication Date: 2024-08-30CHINA CONSTR EIGHTH ENG DIV CORP LTD ZHEJIANG CONSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410615687.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing technology cannot conveniently perform custom coding of component construction sequences, resulting in a waste of time and manpower during the construction process. There is a lack of effective custom path coding plug-ins on the market.

Method used

Dynamo visual programming plug-in is used, and the spline curve generation point module and point generation curve module are used to calculate the distance between the component and the model line, create a sorting table, and realize the custom path to quickly encode the component sequence.

Benefits of technology

Calculate component distances by customizing model line paths, and use Dynamo's table properties to sort components, realizing fast and convenient custom path coding to meet the complex needs of the construction site.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568822A
    Figure CN118568822A
Patent Text Reader

Abstract

The invention discloses a method for quickly coding a component sequence based on a Dynamo user-defined path. The method comprises the following steps: determining a construction sequence and a naming requirement of a component to be coded; in Revit software, drawing a to-be-coded component, and drawing a user-defined coding path by using a spline curve; in the Dynamo, a spline curve is selected, and the spline curve is generated into the Dynamo by using a curve generation point module and a point generation curve module; selecting all to-be-coded components, acquiring positions of all to-be-coded components, and acquiring closest points from a spline curve in Dynamo to all to-be-coded components and distances between the closest points and the closest points; creating a sequence table for sequencing all the to-be-coded components by taking the distance as a keyword; and performing total number extraction on the selected to-be-coded components, creating coding contents, setting the coding contents into the to-be-coded components of the sequence table by setting primitive parameters, and generating the created coding contents in the to-be-coded components. The method solves the problem that an existing model component construction sequence coding method cannot conveniently carry out self-defined coding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of building modeling, and in particular to a method for quickly encoding a component sequence based on a custom path of Dynamo. Background Art

[0002] At present, in actual construction, it is usually necessary to encode the construction sequence of model components in Revit (Revit is the name of a series of software from Autodesk). There are currently two methods for encoding the construction sequence of components:

[0003] 1. Arrange special personnel to manually encode the components in sequence;

[0004] 2. Collect existing plug-ins on the market and encode them.

[0005] These two methods are commonly used in the current construction process where BIM (Building Information Modeling) workers encode components. However, the number and functions of quick-coding plug-ins on the market are relatively limited, and they are actually unable to quickly and conveniently meet the complex needs of the actual site.

[0006] In the actual construction process, the construction sequence of components is usually controlled by a variety of factors and is not necessarily regular. In addition, there is no plug-in on the market that can customize path coding. Therefore, whether it is manual coding or relying on external plug-ins, it has the disadvantages of being time-consuming and labor-intensive, and it is impossible to perform customized coding easily and quickly. Summary of the invention

[0007] In order to overcome the defects of the prior art, a method for quickly encoding component sequence based on a custom path of Dynamo is provided to solve the problem that the existing model component construction sequence coding method cannot conveniently perform custom coding.

[0008] To achieve the above object, a method for quickly encoding component sequence based on a custom path of Dynamo is provided, comprising the following steps:

[0009] Determine the construction sequence and naming requirements of the components to be coded;

[0010] In the Revit software, draw the component to be encoded, and use a spline curve to draw a custom encoding path;

[0011] In the Dynamo visual programming plug-in, the spline curve is selected, and the spline curve is generated into the Dynamo visual programming plug-in by using a curve generation point module and a point generation curve module;

[0012] In the Dynamo visual programming plug-in, all the components to be encoded are selected, the positions of all the components to be encoded are obtained, and the nearest points from the spline curve in the Dynamo visual programming plug-in to all the components to be encoded and their distances are obtained;

[0013] Using distance as a keyword, create a sequential table for sorting all the components to be encoded;

[0014] The total number of the selected components to be encoded is extracted, and the encoded content is created. The encoded content is set to the components to be encoded in the sequential table by setting primitive parameters, and the created encoded content is generated in the components to be encoded.

[0015] The beneficial effect of the present invention lies in that the method of quickly encoding the component order based on the custom path of Dynamo of the present invention uses a custom model line as the encoding sequence path, calculates the distance between the model line and the component through the node command in the Dynamo visual programming, and then uses the characteristics of the table in Dynamo to sort the components with the distance as the keyword, so that the encoding can be performed according to the path of the custom model line to quickly encode the component order according to the custom path. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0017] Figure 1 A schematic diagram of Revit model components and custom model lines according to an embodiment of the present invention.

[0018] Figure 2 A schematic diagram of a Dynamo visual programming node according to an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] Reference Figure 1 and Figure 2 As shown, the present invention provides a method for quickly encoding component sequence based on a custom path of Dynamo, comprising the following steps:

[0022] S1. Determine the construction sequence and naming requirements of the components to be coded.

[0023] Specifically, according to external requirements, the construction sequence and naming requirements of the components to be coded are defined.

[0024] S2. In Revit software, draw the components to be encoded and use spline curves to draw a custom encoding path.

[0025] See also Figure 1 As shown, open the Revit software, draw the component 1 to be coded that needs to enter the construction sequence, then use the spline curve 2 to draw a custom coding path, and use the built-in Dynamo visual programming plug-in for programming.

[0026] S3. In the Dynamo visual programming plug-in, select the spline curve, and use the curve generation point module and the point generation curve module to generate the spline curve into the Dynamo visual programming plug-in.

[0027] In Dynamo, select the drawn spline curve, and use the curve to point module and the point to curve module to generate the spline curve in Revit into Dynamo.

[0028] S4. In the Dynamo visual programming plug-in, select all components to be encoded, obtain the positions of all components to be encoded, and obtain the closest points of the spline curves in the Dynamo visual programming plug-in to all components to be encoded and their distances.

[0029] In Dynamo, select all components to be encoded, obtain the positions of all components, and obtain the closest point of the spline curve to the component to be encoded and their distance.

[0030] S5. Using distance as a keyword, create a sequential table to sort all components to be encoded.

[0031] S6. Extract the total number of the selected components to be encoded, create encoding content, set the encoding content to the components to be encoded in the sequence table by setting primitive parameters, and generate the created encoding content in the components to be encoded.

[0032] The method for quickly encoding component order based on custom paths in Dynamo of the present invention uses a custom model line as the encoding sequence path, calculates the distance between the model line and the component through the node command in Dynamo visual programming, and then uses the characteristics of the table in Dynamo to sort the components with distance as the keyword, so that the encoding can be performed according to the path of the custom model line to quickly encode the component order of the custom path.

[0033] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.

Claims

1. A method for quickly encoding component sequence based on a custom path in Dynamo, characterized in that: The following steps are involved: Determine the construction sequence and naming requirements of the components to be coded; In the Revit software, draw the component to be encoded, and use a spline curve to draw a custom encoding path; In the Dynamo visual programming plug-in, the spline curve is selected, and the spline curve is generated into the Dynamo visual programming plug-in by using a curve generation point module and a point generation curve module; In the Dynamo visual programming plug-in, all the components to be encoded are selected, the positions of all the components to be encoded are obtained, and the nearest points from the spline curve in the Dynamo visual programming plug-in to all the components to be encoded and their distances are obtained; Using distance as a keyword, create a sequential table for sorting all the components to be encoded; The total number of the selected components to be encoded is extracted, and the encoded content is created. The encoded content is set to the components to be encoded in the sequential table by setting primitive parameters, and the created encoded content is generated in the components to be encoded.