CN113436331A - Modeling method and device based on Dynamo - Google Patents

Modeling method and device based on Dynamo Download PDF

Info

Publication number
CN113436331A
CN113436331A CN202110727777.8A CN202110727777A CN113436331A CN 113436331 A CN113436331 A CN 113436331A CN 202110727777 A CN202110727777 A CN 202110727777A CN 113436331 A CN113436331 A CN 113436331A
Authority
CN
China
Prior art keywords
component
models
preset
dimensional space
dynamo
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110727777.8A
Other languages
Chinese (zh)
Other versions
CN113436331B (en
Inventor
杨磊
肖迪
张海波
乔青波
李朝松
朱冠宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Lini Construction Third Development And Construction Co ltd
Original Assignee
Beijing Lini Construction Third Development And Construction Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lini Construction Third Development And Construction Co ltd filed Critical Beijing Lini Construction Third Development And Construction Co ltd
Priority to CN202110727777.8A priority Critical patent/CN113436331B/en
Publication of CN113436331A publication Critical patent/CN113436331A/en
Application granted granted Critical
Publication of CN113436331B publication Critical patent/CN113436331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Evolutionary Computation (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application relates to a modeling method and a device based on Dynamo, belonging to the technical field of constructional engineering, wherein Dynamo is utilized to respectively extract preset plane coordinates (X, Y) and preset rotation angle parameters of each component from a parameter table, and the parameter table at least comprises a plurality of groups of preset plane coordinates (X, Y) and preset rotation angle parameters corresponding to each component; determining three-dimensional coordinates (X, Y, Z) of each member in a pre-constructed first three-dimensional space based on preset planar coordinates (X, Y); placing a pre-built parametric family of components in a second three-dimensional space of Revit to generate initial component models in batches based on the three-dimensional coordinates (X, Y, Z) of each component, wherein the orientation of each initial component model is the same; and based on the preset rotation angle parameter of each component, rotating each initial component model around an axis parallel to the Z axis in the second three-dimensional space of Revit to generate component models in batches. The method and the device have the effect of creating the component models in batches.

Description

Modeling method and device based on Dynamo
Technical Field
The application relates to the technical field of constructional engineering, in particular to a modeling method and device based on Dynamo.
Background
Building Information Modeling (BIM) technology is a datamation tool applied to engineering design, construction and management. Currently, along with the rapid development of the BIM technology in the field of public buildings, Revit is widely applied as one of modeling software in the BIM system of the construction industry.
Dynamo is a program development platform and is often used for assisting Revit in secondary development. And establishing a parameterized BIM model in Revit, and simultaneously, carrying out operations such as model interaction, parameter data interaction and the like by Dynamo through programming and Revit to realize the creation, analysis and management of the component model.
At present, when a large number of component models are created, especially irregular component models, the required working time is long, the efficiency is low, for example, in the aspect of creating the seat models, because the number of seats in a venue is large, the seats are distributed at different positions of different steps, the design orientation of each seat is different, and the functional module carried by the Revit is large in workload and high in error rate in the irregular seat model creation, so that the design requirements are difficult to meet.
Disclosure of Invention
In order to create component models in batches, the application provides a modeling method and device based on Dynamo.
In a first aspect, the present application provides a modeling method based on Dynamo, which adopts the following technical scheme:
a Dynamo-based modeling method, comprising:
respectively extracting preset plane coordinates (X, Y) and preset rotation angle parameters of each component from a parameter table by using Dynamo, wherein the parameter table at least comprises a plurality of groups of preset plane coordinates (X, Y) and preset rotation angle parameters corresponding to each component;
determining three-dimensional coordinates (X, Y, Z) of each member in a first three-dimensional space previously constructed, based on the preset planar coordinates (X, Y);
placing a pre-built parametric family of components in a second three-dimensional space of Revit to generate initial component models in batches based on the three-dimensional coordinates (X, Y, Z) of each component, wherein each initial component model is oriented identically;
based on the preset rotation angle parameter of each component, batch-generating component models by rotating each initial component model around an axis parallel to the Z-axis in the second three-dimensional space of Revit.
By adopting the technical scheme, the batch modeling is carried out based on space coordinates, namely the preset plane coordinates and the three-dimensional coordinates by utilizing a mode of interaction between Dynamo visual programming and the Revit model, so that the method is quicker, meanwhile, the position of the component is controlled based on the preset rotation angle parameter, the requirements of different directions of the component model are met, the accuracy is high, and the design intention is better met, so that the technical problem that the current irregular and repeated three-dimensional modeling is difficult is solved, and the modeling efficiency is improved; in addition, the model is driven by data, the component model is convenient to update, the original Dynamo visualization program is operated again only by changing or replacing the space coordinate and the preset rotation angle parameter, the model can be automatically changed, the subsequent modification of the component model and the data is convenient, and the rapid application of the BIM technology in the operation and maintenance stage is further promoted.
Preferably, the extracting the preset plane coordinates (X, Y) and the preset rotation angle parameter of each component from the parameter table by using Dynamo comprises:
extracting and processing the preset plane coordinates (X, Y) and the preset rotation angle parameter from the parameter table by using a data.
Preferably, the determining three-dimensional coordinates (X, Y, Z) of each member in a pre-constructed first three-dimensional space based on the preset planar coordinates (X, Y) includes:
converting all preset plane coordinates (X, Y) into points;
projecting and mapping all the points to a preset surface of a specified model in the first three-dimensional space along a preset direction, wherein the Z coordinate value of the intersection of the preset surface and the points is the Z coordinate value of the component corresponding to the points;
and the Z coordinate value of the component and the corresponding preset plane coordinate (X, Y) form a three-dimensional coordinate (X, Y, Z).
By adopting the technical scheme, the preset plane coordinate is transformed into the point and then projected and mapped to the preset plane, so that the required accurate Z coordinate value can be obtained, and the accurate three-dimensional coordinate can be obtained.
Preferably, said placing a pre-built parametric family of components in a second three-dimensional space of Revit to generate a batch of initial component models based on said three-dimensional coordinates (X, Y, Z) of each component comprises:
ByPoint nodes in Dynamo are used to place parameterized families of the pre-built component at each three-dimensional coordinate in the second three-dimensional space.
By adopting the technical scheme, the parameterized families can be placed in batches by utilizing the three-dimensional coordinates of the components, so that the batch creation of component models is convenient to realize, the workload is reduced, and the efficiency is effectively improved.
Preferably, the batch generation of the component models by rotating each initial component model around an axis parallel to the Z-axis in the second three-dimensional space of Revit based on the preset rotation angle parameter of each component includes:
setrotation node, in a second three-dimensional space of Revit, batch-generating component models by rotating each initial component model about an axis parallel to the Z-axis by its corresponding preset rotation angle parameter.
Preferably, after the batch generation of the component models by rotating each initial component model around an axis parallel to the Z-axis in the second three-dimensional space of Revit based on the preset rotation angle parameter of each component, the method further includes:
dividing component models with the same Z coordinate value into the same group of models by utilizing Dynamo, numbering different groups of models, and numbering each group of models differently;
and assigning the numbering result to the attribute parameters of the corresponding component model in the second three-dimensional space.
Preferably, the dividing, by using Dynamo, the component models having the same Z coordinate value into the same group of models, numbering different groups of models, includes:
dividing the component models with the same Z coordinate value into the same group of models by using a point.Z node and a List.GroupByKey node;
using List, SortByKey nodes to arrange each group of models in sequence from small to large or from large to small according to Z coordinate values;
using List.count node to obtain the number of all models in the same group;
based on the number of the same group model, using a Code Block node to create a digital sequence required by a group number;
converting the sequence Object of the number sequence required by the group number into a corresponding character String by using String from Object nodes;
the assigning the numbering result to the attribute parameter of the corresponding component model in the second three-dimensional space includes:
and assigning the group number to the attribute parameter of the corresponding component model according to the arrangement sequence of the Z coordinate values of each group of models from small to large or from large to small by using an element.
Through adopting above-mentioned technical scheme, compare in manual adding group number, establish the mode of group number more convenient and fast through Z coordinate value size automation, efficient and the accuracy is better.
Preferably, after the batch generation of the component models by rotating each initial component model around an axis parallel to the Z-axis in the second three-dimensional space of Revit based on the preset rotation angle parameter of each component, the method further includes:
numbering component models with different X coordinate values in each group of models by using Dynamo;
and assigning the numbering result to the attribute parameters of the corresponding component model in the second three-dimensional space.
Preferably, the numbering of the component models with different X-coordinate values by using Dynamo in each set of models includes:
arranging all component models in sequence from small to large or from large to small according to X coordinate values of the component models by using a point.X node and a List.SortByfunction node;
respectively acquiring the number of component models in each group of models by using List.count nodes;
based on the number of the X coordinate values, creating a number sequence required by the component number by using a Code Block node;
converting a sequence Object of the number sequence required by the component number into a corresponding character String by using a String from Object node;
the assigning the numbering result to the attribute parameter of the corresponding component model in the second three-dimensional space includes:
and assigning the component number to the attribute parameters of the corresponding component model according to the arrangement sequence of the X coordinate values of all the component models in each group of models from small to large or from large to small by using an element.
Through adopting above-mentioned technical scheme, compare in manual adding the component number, the mode of creating the component number through X coordinate value size is convenient and fast more, and efficient and accuracy is better.
In a second aspect, the present application provides a modeling apparatus based on Dynamo, which adopts the following technical solution:
a Dynamo-based modeling apparatus, comprising:
the device comprises an extraction module, a parameter table and a control module, wherein the extraction module is used for extracting preset plane coordinates (X, Y) and preset rotation angle parameters of each component from the parameter table by using Dynamo, and the parameter table at least comprises a plurality of groups of preset plane coordinates (X, Y) and preset rotation angle parameters corresponding to each component;
a determination module for determining three-dimensional coordinates (X, Y, Z) of each component in a first three-dimensional space previously constructed, based on said preset planar coordinates (X, Y);
a first generation module for batch generating initial component models by placing a pre-built parametric family of components in a second three-dimensional space of Revit based on the three-dimensional coordinates (X, Y, Z) of each component, wherein each initial component model is oriented identically; and the number of the first and second groups,
a second generation module for batch generating the component models by rotating each initial component model around an axis parallel to the Z-axis in a second three-dimensional space of Revit based on the preset rotation angle parameter of each component.
By adopting the technical scheme, the batch modeling is carried out based on space coordinates, namely the preset plane coordinates and the three-dimensional coordinates by utilizing a mode of interaction between Dynamo visual programming and the Revit model, so that the method is quicker, meanwhile, the position of the component is controlled based on the preset rotation angle parameter, the requirements of different directions of the component model are met, the accuracy is high, and the design intention is better met, so that the technical problem that the current irregular and repeated three-dimensional modeling is difficult is solved, and the modeling efficiency is improved; in addition, the model is driven by data, the component model is convenient to update, the original Dynamo visualization program is operated again only by changing or replacing the space coordinate and the preset rotation angle parameter, the model can be automatically changed, the subsequent modification of the component model and the data is convenient, and the rapid application of the BIM technology in the operation and maintenance stage is further promoted.
Drawings
Fig. 1 is a schematic flow chart of a Dynamo-based modeling method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a parameter table according to an embodiment of the present application.
Fig. 3 is a schematic diagram of mapping a point projection to a predetermined surface of a given model according to an embodiment of the present application.
Fig. 4 is a schematic diagram of an embodiment of the present application after placing a parameterized family.
FIG. 5 is a schematic view of an initial seat model of an embodiment of the present application after rotation.
Fig. 6 is a flowchart illustrating an automatic encoding method for a component model according to an embodiment of the present application.
FIG. 7 is a diagram illustrating an automatically encoded component model according to an embodiment of the present application.
Fig. 8 is a block diagram of a Dynamo-based modeling apparatus according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
The present embodiment is only for explaining the present application, and it is not limited to the present application, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present application.
The method mentioned in the present application can be used for batch creation of component models of seats, sofas and tables and for automatic coding of components, and the method of the present application is explained below by taking seats in a venue as an example, but this is not a reason for limiting the types of components of the present application.
This embodiment provides a modeling method based on Dynamo, and as shown in fig. 1, the main flow of the method is described as follows (steps S101 to S104):
step S101: and extracting the preset plane coordinates (X, Y) and the preset rotation angle parameter of each component from a parameter table by using Dynamo, wherein the parameter table at least comprises a plurality of groups of preset plane coordinates (X, Y) and preset rotation angle parameters corresponding to each component.
In this embodiment, the parameter table may be a table file manufactured according to a design drawing. As shown in fig. 2, the parameter table includes preset plane coordinates and preset rotation angle parameters of each seat, wherein the preset plane coordinates include an X coordinate value and a Y coordinate value.
In Dynamo, a File Path node is used for browsing an opened parameter table, and then a File From Path node is used for converting a Path File, namely the parameter table, into a File object; and finally, three Code Block nodes are used, wherein one Code Block node extracts an X coordinate value in the parameter table, one Code Block node extracts a Y coordinate value in the parameter table, and the other Code Block node extracts a preset rotation angle parameter in the parameter table.
Step S102: three-dimensional coordinates (X, Y, Z) of each member are determined in a first three-dimensional space previously constructed based on preset planar coordinates (X, Y).
Converting the preset plane coordinates into points by using point.
The first three-dimensional space is a pre-established three-dimensional space in Dynamo, the designated model is a structure model pre-established in Revit, the structure model is a step model, the step model is introduced into the first three-dimensional space through a model mutual introduction function between Dynamo and Revit, and the preset surface is a tread of the step model.
As shown in fig. 3, all the points are projected and mapped onto the tread corresponding to the step model, the Z coordinate value at the intersection of the tread and the point is the Z coordinate value of the seat corresponding to the point, a third three-dimensional coordinate point of the seat, namely the Z coordinate value, is obtained, the Z coordinate value of the seat and the corresponding preset plane coordinate form a three-dimensional coordinate, and the three-dimensional coordinate includes an X coordinate value, a Y coordinate value and a Z coordinate value.
Step S103: initial component models are batch generated by placing a pre-built parametric family of components in a second three-dimensional space of Revit based on the three-dimensional coordinates (X, Y, Z) of each component, wherein each initial component model is oriented the same.
In this embodiment, after acquiring the three-dimensional coordinates, a parameterized family of seats is placed in each three-dimensional coordinate in the second three-dimensional space using a family origin point node in Dynamo, so as to generate initial seat models in batch oriented to the same initial component model, that is, initial seat model, and the generated initial seat models are as shown in fig. 4.
Wherein the second three-dimensional space is a three-dimensional space pre-created in Revit, and the parameterized family is a parameterized seat family pre-created in Revit.
Step S104: and based on the preset rotation angle parameter of each component, rotating each initial component model around an axis parallel to the Z axis in the second three-dimensional space of Revit to generate component models in batches.
In this embodiment, using the family instruction node, each initial seat model is rotated in the second three-dimensional space of Revit according to its corresponding preset rotation angle parameter about an axis parallel to the Z-axis, which may be the central axis of each initial seat model itself. After each initial seat model is rotated around the central axis of the initial seat model according to the corresponding preset rotation angle parameter, the seat models are generated in batches, and the generated seat models are as shown in fig. 5.
Further, after seat models are generated in batch, the seat models with the same Z coordinate value are divided into the same group of models by utilizing Dynamo, the models are numbered for different groups of models, and the number of each group of models is different; in each group of models, numbering seat models with different X coordinate values; and respectively assigning the numbering results numbering different groups of models and the numbering results numbering seat models with different X coordinate values to the attribute parameters of the corresponding seat models in the second three-dimensional space.
Specifically, as shown in fig. 6, in Dynamo, All the seat model Family classes are identified and acquired by using All Elements of Family Type nodes, the element.getlocation node is used to acquire the three-dimensional coordinates of All the seat models with the same Family class, and the point.x node and the list.sortbyfunction node are used to sort All the seat models according to their X-coordinate values from small to large or from large to small, in this embodiment, a manner of sorting the X-coordinate values from small to large is adopted.
The sorted three-dimensional coordinates are obtained by combining and using a List.ALLlndiceOf node and a List.GetItemAtIndex node, then seat models with the same Z coordinate value are divided into models in the same group through a Point.Z node and a List.GroupByKey node, the principle is that step models have treads with different heights, whether the seats are on the treads with the same height is distinguished according to the fact that whether the Z coordinate values are the same, and the seat models with the treads with the same height are divided into models in the same group.
After the seat model has been divided up,
and (3) creating a group number, namely the row number of the seat model, for each group of models, and assigning the row number to the attribute parameters of the corresponding seat model:
(1) using list.
(2) Using List.count nodes to obtain the number of all models in the same group, namely the total row number of the seat models;
(3) based on the total number of rows of the seat model, another Code Block node is used to create the number sequence required for the group number, e.g., 5 total rows, the number sequences required for the group number are 1, 2, 3, 4, and 5;
(4) converting the sequence Object of the number sequence required by the group number into a corresponding character String by using String from Object nodes, wherein the length of the character String is self-defined according to requirements, for example, the length of the corresponding character String is 01, 02, 03, 04 and 05 respectively;
(5) and assigning the group number to the attribute parameter of the corresponding seat model according to the arrangement sequence of the Z coordinate values of each group of models from small to large by using element.
As shown in fig. 7, clicking on one of the seat models in the second three-dimensional space can view the attribute parameters of the seat model in its attribute table, including the number of rows.
Creating a member number, namely a seat number of the seat model, for each seat model, and assigning the seat number to the attribute parameters of the corresponding seat model:
(1) using another List.count node to obtain the number of the seat models in each group of models, namely the number of the seats in each row;
(2) based on the number of seats in each row, another Code Block node is used to create the number sequence required for the component number, for example, where the number of seats in a row is 20, the number sequence required for the component number is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20;
(3) converting the sequence Object of the number sequence required by the component number into a corresponding character String using another String from Object node, wherein the length of the character String is defined by itself as required, for example, the corresponding character strings are 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 and 20;
(4) and assigning the component numbers to the attribute parameters of the corresponding seat models according to the arrangement sequence of the X coordinate values of all the seat models in each group of models from small to large by using another element.
As shown in fig. 7, clicking on one of the seat models in the second three-dimensional space can view the attribute parameters of the seat model in its attribute table, which also includes the seat number. The seat number of each seat model body can be displayed, specifically, by using a revit family function, when a parameterized seat family is created, model character parameters related to the seat number are set, initial values are set for the model character parameters, the seat number is expressed in a model character mode, then the model character parameters are related to a project, and the initial values of the related model character parameters are changed in a Dynamo assignment mode, so that the seat number on the seat model body is changed.
In addition, the stadium is divided into a plurality of areas, and each subarea seat has an independent building subarea code, a building floor code and a component type code according to a coding rule. The building partition codes are formed by coding according to different partitions, the building floor codes are formed by coding according to the floor numbers of buildings in the venue, and the component type codes are formed by coding according to the types of the seats.
For the seat models belonging to the same zone, the building zone code, the building floor code and the component type code are the same.
Respectively integrating the row number, the seat number, the building partition code, the building floor code and the component type code of each seat model by using string.join nodes, then creating element.setparameterbynamide nodes again, and assigning the integrated row number, the seat number, the building partition code, the building floor code and the component type code to the attribute parameters of the corresponding seat model through the element.setparameterbynamide nodes to obtain the complete code of the seat model.
As shown in fig. 7, clicking on one of the seat models in the second three-dimensional space can view the attribute parameters of the seat model in its attribute table, which further includes a building partition code, a building floor code, and a component type code.
In terms of seat code information entry, since each seat has only one code corresponding thereto, if manual addition of a code is performed for each seat in Revit, the workload is enormous, the efficiency is low, and the rework rate is high. By the automatic coding method, coding efficiency can be greatly improved, workload is reduced, and coding accuracy is high.
In order to better implement the above method, the embodiment of the present application further provides a Dynamo-based modeling apparatus, which may be specifically integrated in a computer device, such as a terminal or a server, where the terminal may include, but is not limited to, a mobile phone, a tablet computer, or a desktop computer.
Fig. 8 is a block diagram of a structure of a Dynamo-based modeling apparatus according to an embodiment of the present disclosure, and as shown in fig. 8, the Dynamo-based modeling apparatus mainly includes:
an extracting module 201, configured to extract preset plane coordinates (X, Y) and preset rotation angle parameters of each component from a parameter table by using Dynamo, where the parameter table at least includes multiple sets of preset plane coordinates (X, Y) and preset rotation angle parameters corresponding to each component;
a determining module 202 for determining three-dimensional coordinates (X, Y, Z) of each member in a first three-dimensional space previously constructed, based on preset planar coordinates (X, Y);
a first generation module 203 for batch-generating initial component models by placing a pre-constructed parametric family of components in a second three-dimensional space of Revit based on the three-dimensional coordinates (X, Y, Z) of each component, wherein each initial component model is oriented identically; and the number of the first and second groups,
a second generating module 204, configured to generate the component models in batch by rotating each initial component model around an axis parallel to the Z-axis in a second three-dimensional space of Revit based on the preset rotation angle parameter of each component.
Various changes and specific examples in the method provided by the above embodiment are also applicable to the Dynamo-based modeling apparatus of the present embodiment, and a person skilled in the art can clearly know the implementation method of the Dynamo-based modeling apparatus in the present embodiment through the foregoing detailed description of the Dynamo-based modeling method, and for the sake of brevity of the description, details are not described here again.
In order to better execute the program of the method, the embodiment of the present application further provides a computer device, as shown in fig. 9, the computer device 300 includes a memory 301 and a processor 302.
The computer device 300 may be implemented in various forms including devices such as a cell phone, a tablet computer, a palm top computer, a laptop computer, and a desktop computer.
The memory 301 may be used to store, among other things, instructions, programs, code sets, or instruction sets. The memory 301 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as extracting preset plane coordinates in a parameter table, etc.), instructions for implementing the Dynamo-based modeling method provided by the above-described embodiments, and the like; the storage data area may store data and the like involved in the Dynamo-based modeling method provided in the above-described embodiment.
Processor 302 may include one or more processing cores. The processor 302 may invoke the data stored in the memory 301 by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 301 to perform the various functions of the present application and to process the data. The Processor 302 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the functions of the processor 302 may be other devices, and the embodiments of the present application are not limited thereto.
An embodiment of the present application provides a computer-readable storage medium, including: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The computer-readable storage medium stores a computer program that can be loaded by a processor and executes the Dynamo-based modeling method of the above-described embodiments.
The specific embodiments are merely illustrative and not restrictive, and various modifications that do not materially contribute to the embodiments may be made by those skilled in the art after reading this specification as required, but are protected by patent laws within the scope of the claims of this application.

Claims (10)

1. A Dynamo-based modeling method, comprising:
respectively extracting preset plane coordinates (X, Y) and preset rotation angle parameters of each component from a parameter table by using Dynamo, wherein the parameter table at least comprises a plurality of groups of preset plane coordinates (X, Y) and preset rotation angle parameters corresponding to each component;
determining three-dimensional coordinates (X, Y, Z) of each member in a first three-dimensional space previously constructed, based on the preset planar coordinates (X, Y);
placing a pre-built parametric family of components in a second three-dimensional space of Revit to generate initial component models in batches based on the three-dimensional coordinates (X, Y, Z) of each component, wherein each initial component model is oriented identically;
based on the preset rotation angle parameter of each component, batch-generating component models by rotating each initial component model around an axis parallel to the Z-axis in the second three-dimensional space of Revit.
2. The method of claim 1, wherein the extracting the preset planar coordinates (X, Y) and the preset rotation angle parameter of each component from the parameter table respectively by using Dynamo comprises:
extracting and processing the preset plane coordinates (X, Y) and the preset rotation angle parameter from the parameter table by using a data.
3. The method according to claim 1, wherein said determining three-dimensional coordinates (X, Y, Z) of each component in a first three-dimensional space previously constructed, based on said preset planar coordinates (X, Y), comprises:
converting all preset plane coordinates (X, Y) into points;
projecting and mapping all the points to a preset surface of a specified model in the first three-dimensional space along a preset direction, wherein the Z coordinate value of the intersection of the preset surface and the points is the Z coordinate value of the component corresponding to the points;
and the Z coordinate value of the component and the corresponding preset plane coordinate (X, Y) form a three-dimensional coordinate (X, Y, Z).
4. The method of claim 1, wherein said placing a parameterized family of pre-constructed components in a second three-dimensional space of Revit to generate a batch of initial component models based on the three-dimensional coordinates (X, Y, Z) of each component comprises:
ByPoint nodes in Dynamo are used to place parameterized families of the pre-built component at each three-dimensional coordinate in the second three-dimensional space.
5. The method according to any one of claims 1 to 4, wherein the batch generating of component models by rotating each initial component model about an axis parallel to the Z-axis in the second three-dimensional space of Revit based on the preset rotation angle parameter of each component comprises:
setrotation node, in a second three-dimensional space of Revit, batch-generating component models by rotating each initial component model about an axis parallel to the Z-axis by its corresponding preset rotation angle parameter.
6. The method of claim 1, wherein the batch generating component models by rotating each initial component model about an axis parallel to the Z-axis in the second three-dimensional space of Revit based on the preset rotation angle parameter for each component further comprises:
dividing component models with the same Z coordinate value into the same group of models by utilizing Dynamo, numbering different groups of models, and numbering each group of models differently;
and assigning the numbering result to the attribute parameters of the corresponding component model in the second three-dimensional space.
7. The method of claim 6,
the component models with the same Z coordinate value are divided into the same group of models by utilizing Dynamo, and the models are numbered for different groups of models, and the method comprises the following steps:
dividing the component models with the same Z coordinate value into the same group of models by using a point.Z node and a List.GroupByKey node;
using List, SortByKey nodes to arrange each group of models in sequence from small to large or from large to small according to Z coordinate values;
using List.count node to obtain the number of all models in the same group;
based on the number of the same group model, using a Code Block node to create a digital sequence required by a group number;
converting the sequence Object of the number sequence required by the group number into a corresponding character String by using String from Object nodes;
the assigning the numbering result to the attribute parameter of the corresponding component model in the second three-dimensional space includes:
and assigning the group number to the attribute parameter of the corresponding component model according to the arrangement sequence of the Z coordinate values of each group of models from small to large or from large to small by using an element.
8. The method of claim 6, wherein the batch generating component models by rotating each initial component model about an axis parallel to the Z-axis in the second three-dimensional space of Revit based on the preset rotation angle parameter for each component further comprises:
numbering component models with different X coordinate values in each group of models by using Dynamo;
and assigning the numbering result to the attribute parameters of the corresponding component model in the second three-dimensional space.
9. The method of claim 8,
in each group of models, numbering component models with different X coordinate values by using Dynamo, wherein the numbering comprises the following steps:
arranging all component models in sequence from small to large or from large to small according to X coordinate values of the component models by using a point.X node and a List.SortByfunction node;
respectively acquiring the number of component models in each group of models by using List.count nodes;
based on the number of the X coordinate values, creating a number sequence required by the component number by using a Code Block node;
converting a sequence Object of the number sequence required by the component number into a corresponding character String by using a String from Object node;
the assigning the numbering result to the attribute parameter of the corresponding component model in the second three-dimensional space includes:
and assigning the component number to the attribute parameters of the corresponding component model according to the arrangement sequence of the X coordinate values of all the component models in each group of models from small to large or from large to small by using an element.
10. A Dynamo-based modeling apparatus, comprising:
the device comprises an extraction module, a parameter table and a control module, wherein the extraction module is used for extracting preset plane coordinates (X, Y) and preset rotation angle parameters of each component from the parameter table by using Dynamo, and the parameter table at least comprises a plurality of groups of preset plane coordinates (X, Y) and preset rotation angle parameters corresponding to each component;
a determination module for determining three-dimensional coordinates (X, Y, Z) of each component in a first three-dimensional space previously constructed, based on said preset planar coordinates (X, Y);
a first generation module for batch generating initial component models by placing a pre-built parametric family of components in a second three-dimensional space of Revit based on the three-dimensional coordinates (X, Y, Z) of each component, wherein each initial component model is oriented identically; and the number of the first and second groups,
a second generation module for batch generating the component models by rotating each initial component model around an axis parallel to the Z-axis in a second three-dimensional space of Revit based on the preset rotation angle parameter of each component.
CN202110727777.8A 2021-06-29 2021-06-29 Modeling method and device based on Dynamo Active CN113436331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110727777.8A CN113436331B (en) 2021-06-29 2021-06-29 Modeling method and device based on Dynamo

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110727777.8A CN113436331B (en) 2021-06-29 2021-06-29 Modeling method and device based on Dynamo

Publications (2)

Publication Number Publication Date
CN113436331A true CN113436331A (en) 2021-09-24
CN113436331B CN113436331B (en) 2022-07-08

Family

ID=77757680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110727777.8A Active CN113436331B (en) 2021-06-29 2021-06-29 Modeling method and device based on Dynamo

Country Status (1)

Country Link
CN (1) CN113436331B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113822992A (en) * 2021-11-23 2021-12-21 山东捷瑞数字科技股份有限公司 Method for batch inversion of model normals
CN115953564A (en) * 2023-03-10 2023-04-11 北京建工四建工程建设有限公司 Component ordered marking method based on dynamo
CN116911688A (en) * 2023-07-28 2023-10-20 深圳大学 Automatic processing method and system for green building information
CN117216836A (en) * 2023-08-24 2023-12-12 中国电建集团成都勘测设计研究院有限公司 Dynamo-based gate equipment batch modeling method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190251209A1 (en) * 2018-02-09 2019-08-15 Guangzhou University Method for Automatic Modeling of an Architecture Based on an Architectural Drawing
CN110580376A (en) * 2019-07-30 2019-12-17 浙江大学 revit and Dynamo-based pile foundation model creation method
CN111611675A (en) * 2020-01-09 2020-09-01 中南建筑设计院股份有限公司 Rapid modeling method based on Revit and Dynamo parameterized grid structure model
CN112651061A (en) * 2019-10-12 2021-04-13 南京林业大学 Method for establishing BIM (building information modeling) model of multi-span bridge superstructure by using Dynamo

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190251209A1 (en) * 2018-02-09 2019-08-15 Guangzhou University Method for Automatic Modeling of an Architecture Based on an Architectural Drawing
CN110580376A (en) * 2019-07-30 2019-12-17 浙江大学 revit and Dynamo-based pile foundation model creation method
CN112651061A (en) * 2019-10-12 2021-04-13 南京林业大学 Method for establishing BIM (building information modeling) model of multi-span bridge superstructure by using Dynamo
CN111611675A (en) * 2020-01-09 2020-09-01 中南建筑设计院股份有限公司 Rapid modeling method based on Revit and Dynamo parameterized grid structure model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
室内BIM: "如何用revit排座位?revit+dynamo方法更灵活!(下)", 《HTTP://WWW.TUITUISOFT.COM/BIM/18471.HTML》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113822992A (en) * 2021-11-23 2021-12-21 山东捷瑞数字科技股份有限公司 Method for batch inversion of model normals
CN113822992B (en) * 2021-11-23 2022-03-01 山东捷瑞数字科技股份有限公司 Method for batch inversion of model normals
CN115953564A (en) * 2023-03-10 2023-04-11 北京建工四建工程建设有限公司 Component ordered marking method based on dynamo
CN115953564B (en) * 2023-03-10 2023-06-02 北京建工四建工程建设有限公司 Component ordered marking method based on dynamo
CN116911688A (en) * 2023-07-28 2023-10-20 深圳大学 Automatic processing method and system for green building information
CN116911688B (en) * 2023-07-28 2024-04-16 深圳大学 Automatic processing method and system for green building information
CN117216836A (en) * 2023-08-24 2023-12-12 中国电建集团成都勘测设计研究院有限公司 Dynamo-based gate equipment batch modeling method
CN117216836B (en) * 2023-08-24 2024-05-07 中国电建集团成都勘测设计研究院有限公司 Dynamo-based gate equipment batch modeling method

Also Published As

Publication number Publication date
CN113436331B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN113436331B (en) Modeling method and device based on Dynamo
US9581992B2 (en) Method and apparatus for a cutting process automatic generation tool of CAM
KR102055955B1 (en) Geometrical elements transformed by rigid motions
US20190303512A1 (en) Digital design tools for building construction
KR101925640B1 (en) Designing a three-dimensional modeled assembly of objects in a three-dimensional scene
US8872820B2 (en) System and method for splitting faces on a solid model
CN109683858B (en) Data processing method and device
TWI512513B (en) Method and non-transitory computer readable medium for editing or creating a schematic, and system for creating a schematic
US7908579B2 (en) Method and mechanism for extraction and recognition of polygons in an IC design
CN117725767B (en) Automatic generation method, plug-in, system, terminal and medium for parameterized component model
US10621288B2 (en) Interoperable hierarchical model for conducting multiuser CAx operations
CN113779670A (en) Method and system for achieving double-control modeling of Revit pile foundation based on Dynamo
CN105144007B (en) System and method for performing undo and redo operations during machining simulation
Kerbl et al. Interactive disassembly planning for complex objects
CN111339640A (en) Automatic building parking space number creation method based on Revit plug-in Dynamo
CN110414142A (en) The parametric modeling method of concentrator
CN115997213A (en) Machine learning based generation of constraints for Computer Aided Design (CAD) components
US10558770B1 (en) Finite element based direct modeling
CN117371091A (en) Parameterized deep modeling method, device, equipment and medium for steel structure net rack
CN104504206B (en) A kind of 2.5D drags addition and the method for sequence
US10838400B2 (en) Toolpath generation by demonstration for computer aided manufacturing
CN107393019B (en) Particle-based cloth simulation method and device
US20110307224A1 (en) System and Method for Machine Engine Modeling
Zhao A variant approach to constructing and managing virtual manufacturing environments
Arunkumar et al. A system for extracting product features from CAD models–a STEP approach

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant