CN113486424A - Method and model for realizing Revit room modeling and naming labeling based on Dynamo - Google Patents

Method and model for realizing Revit room modeling and naming labeling based on Dynamo Download PDF

Info

Publication number
CN113486424A
CN113486424A CN202110758798.6A CN202110758798A CN113486424A CN 113486424 A CN113486424 A CN 113486424A CN 202110758798 A CN202110758798 A CN 202110758798A CN 113486424 A CN113486424 A CN 113486424A
Authority
CN
China
Prior art keywords
room
naming
character
list data
cad
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.)
Pending
Application number
CN202110758798.6A
Other languages
Chinese (zh)
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.)
China Railway First Engineering Group Co Ltd
Construction and Installation Engineering Co Ltd of China Railway First Engineering Group Co Ltd
Original Assignee
China Railway First Engineering Group Co Ltd
Construction and Installation Engineering Co Ltd of China Railway First Engineering Group 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 China Railway First Engineering Group Co Ltd, Construction and Installation Engineering Co Ltd of China Railway First Engineering Group Co Ltd filed Critical China Railway First Engineering Group Co Ltd
Priority to CN202110758798.6A priority Critical patent/CN113486424A/en
Publication of CN113486424A publication Critical patent/CN113486424A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • 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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/004Annotating, labelling

Landscapes

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

Abstract

The application relates to the technical field of modeling, in particular to a method and a model for realizing Revit room modeling and naming labeling based on Dynamo, comprising the following steps: acquiring a CAD room model and a room mark layer name in the CAD room model; generating a layer list data set based on the CAD room model and the room mark layer name, wherein the layer list data set comprises CAD text data; obtaining room naming characters and three-dimensional coordinates of the room naming characters according to the layer list data set and a preset processing mechanism; selecting the elevation of the CAD room model; and creating a room according to the room naming character, the three-dimensional coordinates of the room naming character and the elevation, and naming the room. By acquiring original design data, carrying out dimension conversion and processing, automatically establishing all rooms on the floor in batches, naming and marking the rooms, the problem of low efficiency caused by manual sequential naming is effectively solved, and the room naming efficiency is improved conveniently.

Description

Method and model for realizing Revit room modeling and naming labeling based on Dynamo
Technical Field
The application relates to the technical field of modeling, in particular to a method and a model for realizing Revit room modeling and naming labeling based on Dynamo.
Background
The BIM (Building Information model) is used for establishing a Building model by taking relevant Information data of each item of a project as a basis of the model, and simulating real Information of a Building through digital Information. BIM is not only software similar to CAD, but also an engineering management means, and is an important technical tool for realizing fine and information management in the construction industry.
The Revit series software is constructed for BIM, can help architects to design, build and maintain buildings with better quality and higher energy efficiency, and is one of the most widely used software in a BIM system.
Revit needs to click and remark each room after another when building the rooms, and needs to name the name of each room manually, which wastes time and labor and is easy to miss and miss filling, resulting in low efficiency.
Disclosure of Invention
In order to improve the efficiency of room naming, the application provides a method and a model for realizing Revit room modeling and naming labeling based on Dynamo.
In a first aspect, the method for realizing Revit room modeling and naming labeling based on Dynamo adopts the following technical scheme:
a method for realizing Revit room modeling and naming labeling based on Dynamo comprises the following steps:
acquiring a CAD room model and a room mark layer name in the CAD room model;
generating a layer list data set based on the CAD room model and the room mark layer name, wherein the layer list data set comprises CAD text data;
obtaining room naming characters and three-dimensional coordinates of the room naming characters according to the layer list data set and a preset processing mechanism;
acquiring the elevation of the CAD room model;
and creating a room according to the room naming character, the three-dimensional coordinates of the room naming character and the elevation, and naming the room.
By adopting the technical scheme, original design data are obtained, dimension conversion and processing are carried out, all rooms on the floor are automatically established in batches, naming and marking are carried out on the rooms, the problem of low efficiency caused by manual naming in sequence is effectively solved, and therefore room naming efficiency is improved conveniently.
Optionally, the preset processing mechanism includes:
generating two-dimensional list data according to the layer list data set, wherein the two-dimensional list data comprises CAD text data;
extracting CAD character data in the two-dimensional list data to generate one-dimensional list data;
converting the one-dimensional list data into room naming characters.
By adopting the technical scheme, the original design data is subjected to dimensionality conversion to obtain a format meeting the requirements, and finally the room naming character is obtained.
Optionally, the method further includes: and correcting the three-dimensional coordinates of the room naming character based on a preset correction rule.
By adopting the technical scheme, the three-dimensional coordinates of the room naming characters are corrected, and the possibility of overlapping of the room naming characters is effectively reduced.
Optionally, the three-dimensional coordinate of the room naming character is a three-dimensional coordinate of a position point at a lower left corner of the room name corresponding to the one-dimensional list data.
By adopting the technical scheme, each CAD character data corresponds to a room name, when any CAD character data is called, the room name corresponding to the CAD character data is obtained, and the three-dimensional coordinate of the position point at the lower left corner of the room name is obtained, so that the correction of the three-dimensional coordinate of the room name character is facilitated.
Optionally, the preset correction rule includes:
acquiring the number of room naming characters and the length of a single character of the room naming character;
obtaining the center distance of the room naming character according to the number of the room naming characters and the length of a single character;
and obtaining the corrected three-dimensional coordinate according to the three-dimensional coordinate and the center distance of the room naming character.
By adopting the technical scheme, the corrected three-dimensional coordinate is obtained through the three-dimensional coordinate and the center distance of the room naming character, and the possibility of overlapping the room naming characters of a plurality of rooms is effectively reduced.
Optionally, the method for setting the center distance of the room naming character includes:
and obtaining the center distance d of the room naming characters according to the formula d = a/2 × B, wherein a is the number of the room naming characters, and B is the length of a single character.
Optionally, the individual literal length of the room naming character is measured in the software Revit.
By adopting the technical scheme, the accuracy and the measuring speed of the length measurement of the single character are improved conveniently, and further the efficiency of room modeling and naming marking is improved conveniently.
Optionally, obtaining the corrected three-dimensional coordinate according to the three-dimensional coordinate of the room naming character and the center distance includes:
and moving the three-dimensional coordinate of the room naming character along the X axis by the length of the distance of the center to obtain the finally corrected three-dimensional coordinate.
By adopting the technical scheme, the possibility of overlapping the room naming characters under the condition of a plurality of rooms is reduced by correcting the three-dimensional coordinates of the room naming characters, so that the accuracy of room naming labeling is improved.
In a second aspect, the model for implementing Revit room modeling and naming labeling based on Dynamo provided by the present application adopts the following technical scheme:
a model for implementing Revit room modeling and naming labeling based on Dynamo, comprising:
selecting a model node for selecting a CAD room model;
the room layer obtaining node is used for obtaining the room mark layer name of the CAD room model;
the layer list data acquisition node is used for generating a layer list data set according to the CAD room model and the room mark layer name, and the layer list data set comprises CAD text data;
the two-dimensional list generation node is used for generating two-dimensional list data according to the layer list data set, and the two-dimensional list data comprises CAD text data;
the one-dimensional list data generation node is used for extracting CAD data in the two-dimensional list data and generating one-dimensional list data;
the room name generation node is used for converting the one-dimensional list data into room naming characters;
the three-dimensional coordinate acquisition node is used for acquiring the three-dimensional coordinates of the room naming character according to the one-dimensional list data;
the elevation obtaining node is used for obtaining the elevation of the CAD room model;
and the room modeling naming node is used for creating a room according to the room naming character, the three-dimensional coordinates of the room naming character and the elevation and naming the room.
By adopting the technical scheme, original design data are obtained, dimension conversion and processing are carried out, all rooms on the floor are automatically established in batches, naming and marking are carried out on the rooms, the problem of low efficiency caused by manual naming in sequence is effectively solved, and therefore room naming efficiency is improved conveniently.
Optionally, the method further includes:
the room naming character number acquisition node is used for acquiring the number of the room naming characters;
the single font length acquisition node is used for acquiring the single font length of the room named character;
the center distance acquisition node is used for acquiring the center distance of the room named characters according to the number of the room named characters and the length of the single font;
the direction acquisition node is used for acquiring the moving direction of the room naming character;
and the corrected position acquisition node is used for acquiring a corrected three-dimensional coordinate according to the three-dimensional coordinate, the center distance and the moving direction of the room naming character.
By adopting the technical scheme, the number of the room naming characters and the length of a single font are obtained based on the central distance obtaining node, the central distance of the room naming characters is generated, the three-dimensional coordinates of the room naming characters are moved by the length of the central distance along the X axis, the corrected three-dimensional coordinates are obtained, and the possibility of overlapping the room naming characters of a plurality of rooms is effectively reduced.
Drawings
Fig. 1 is a flowchart illustrating a method for implementing Revit room modeling and naming labeling based on Dynamo according to an embodiment of the present application.
Fig. 2 is a structural block diagram illustrating a method for implementing Revit room modeling and naming labeling based on Dynamo according to an embodiment of the present application.
Fig. 3 is a block diagram illustrating a room naming character generation process in a method for implementing Revit room modeling and naming labeling based on Dynamo according to an embodiment of the present application.
FIG. 4 is a flow diagram illustrating a processing mechanism according to one embodiment of the present application.
Fig. 5 is a flowchart illustrating coordinate correction of a room naming character in a method for implementing Revit room modeling and naming labeling based on Dynamo according to an embodiment of the present application.
Fig. 6 is a structural block diagram of a model for implementing Revit room modeling and naming labeling based on Dynamo according to an embodiment of the present application.
Description of reference numerals: 1. selecting a model node; 2. acquiring nodes of the room layer; 3. the layer list data acquisition node; 4. generating nodes by two-dimensional list data; 5. one-dimensional list data generation nodes; 6. a room name generation node; 7. acquiring a node by the elevation; 8. acquiring the number of the room naming characters; 9. a single font length acquisition node; 10. acquiring a node by a three-dimensional coordinate; 11. a central distance acquisition node; 12. a direction acquisition node; 13. correcting the position acquisition node; 14. the room models named nodes.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms related to embodiments of the present application will be described.
Dynamo is a typical tree-structured flow-based visual programming software, the minimum unit of the code is a Node (Node), and different nodes with specific functions are connected according to the needs, so that visual programming is realized. A user inputs (Input) data on a left connecting line of the nodes, the operation of the node function is carried out, and then an (Output) structure is Output from the right of the nodes, the nodes are connected in sequence and logically, and finally a complete script is formed; the API of Revit can be called by a user, and the user can realize operations such as rapid modeling, parameterization and batch processing of model information in Revit.
Revit, which is a component dedicated to the Building Information Model (BIM), provides tools that support building design, MEP engineering design, and structural engineering, and can help architects design, build, and maintain buildings of better quality and higher energy efficiency.
And a Select Model Element node for acquiring family members of Revit.
String node, which is a character String node, inputs letters or characters.
Fromlayers node, through link DWG file input and specified layer name input, outputs CAD text data and formulates layer keywords.
And the Watch node checks the input data content.
Flatten nodes, reduce the data dimension by one level.
And inputting CAD text data by using a CADTextdata textvalue node, and acquiring a character string corresponding to the CAD text data.
And inputting CAD text data by using a CADTextData.
And (4) obtaining a level by using the Levels.
Bylocation node, creates and names rooms by hierarchy, location and name.
Length node, obtaining the length of the character string.
The single word size node, which is a character string node, can directly input numbers.
The Code Block node is a Code node, allows a node for directly writing a DesignScript Code, and can directly input numbers, character strings, lists, function commands and the like.
Vector. xaxis node, X axis vector.
Geometry. transform node, moving in vector by geometry, direction, distance and copying the input object.
The elevation is used for representing the height of each part of the building and is divided into absolute elevation and relative elevation according to different selected reference surfaces; the relative elevation takes the height of the main ground of the first floor in the building as zero as a starting point, and the calculated elevation becomes the relative elevation.
And (3) flattening, namely flattening an array, namely, changing the array nested with one or more arrays into an array.
The embodiment of the application discloses a method for realizing Revit room modeling and naming labeling based on Dynamo.
As shown in fig. 1, as an embodiment of the room modeling and naming labeling method, the method comprises the following steps:
and S1, acquiring the CAD room model and the room mark layer name in the CAD room model.
In combination with fig. 2, Revit is imported, a Select Model Element node in Dynamo is used to Select a CAD file linked by Revit, a CAD room Model is obtained, and a String node in Dynamo is used to obtain a room mark layer name in the CAD room Model.
In addition, before the CAD file is selected, the CAD drawing in the CAD file needs to be cleaned, redundant lines or characters except the room model in the CAD drawing are deleted, a layer is established independently for the room name in the CAD drawing, and the room layer are named.
S2, generating a layer list data set based on the room model and the room mark layer names, wherein the layer list data set comprises CAD text data, and the CAD text data correspond to the room names in the CAD drawing one to one.
An input interface of a CATTextdata fromLayers node in Dynamo is respectively connected with an output interface of a Select Model Element node and an output interface of a String node, and is used for acquiring a CAD room Model and a room mark layer name and outputting a layer list data set. For example: and if the room mark layer name is SPACE, the layer list data set comprises data of all rooms with the layer names SPACE in the room model.
In addition, as shown in fig. 3, two-dimensional structure data is nested in the layer list data set. The two-dimensional structure data includes a CATTextData [ ] [ ] List, the CATTextData [ ] [ ] List includes a 0 List and a 1 List, the 0 List includes CAD text data corresponding to the room names in the CAD drawing one to one, and the 1 List includes layerKeys.
And S3, obtaining room naming characters and three-dimensional coordinates of the room naming characters according to the layer list data set and a preset processing mechanism.
As an embodiment of the processing mechanism, as shown in fig. 4, the preset processing mechanism specifically includes:
s31, generating two-dimensional list data according to the layer list data set, wherein the two-dimensional list data comprise CAD text data;
specifically, as shown in fig. 3, an input interface of a Watch node in Dynamo is connected with an output interface of a cadtextdata. The two-dimensional List data comprises 0 List, and the 0 List comprises CAD text data which are in one-to-one correspondence with the room names in the CAD drawing.
S32, extracting CAD character data in the two-dimensional list data to generate one-dimensional list data;
as shown in fig. 3, an input interface of a list.flat node in Dynamo is connected to an output interface of a Watch node to obtain two-dimensional list data, and the two-dimensional list data is leveled, that is, CAD text data in the two-dimensional list data is extracted to generate one-dimensional list data, where the one-dimensional list data only includes one layer of arrays, that is, CAD text data corresponding to room names in a CAD drawing one to one.
And S33, converting the one-dimensional list data into room naming characters.
As shown in fig. 3, by connecting an input interface of a cadtextdata.textvalue node in Dynamo with an output interface of a list.flatten node, one-dimensional list data is obtained, and the one-dimensional list data is converted into a room name character, i.e., a room name.
In addition, the method for acquiring the three-dimensional coordinates of the room naming character comprises the following steps: the method comprises the steps of connecting an input interface of a CATTextdata. origin point node in Dynamo with an output interface of a List. Flatten node, obtaining one-dimensional list data, and obtaining a three-dimensional coordinate of a position point at the lower left corner of a room name corresponding to CAD text data based on the one-dimensional list data. For example, if the CAD text data corresponds to a room name "office" in the CAD room model, the three-dimensional coordinates of the position point at the lower left corner of the "office" word are obtained.
And S4, selecting the elevation of the CAD room model.
Specifically, the elevation of the CAD room model is selected through level nodes in Dynamo.
And S5, creating a room according to the room naming character, the three-dimensional coordinates of the room naming character and the elevation, and naming the room.
The method comprises the steps of respectively connecting an input interface of a room.ByLocation node in Dynamo with an output interface of a CADTextdata.TextValue node, an output interface of a level node and an output interface of a CADTextdata.originPoint node, obtaining three-dimensional coordinates of room naming characters, elevations and room naming characters, and creating and naming a room under the operation of the function of the room.ByLocation node.
As another embodiment of the room modeling and naming labeling method, the method further comprises the following steps: and correcting the three-dimensional coordinates of the room naming character based on a preset correction rule.
As an embodiment of the correction rule, as shown in fig. 5, the preset correction rule specifically includes: the method comprises the steps of obtaining the number of room naming characters and the length of a single character of the room naming characters, obtaining the center distance of the room naming characters according to the number of the room naming characters and the length of the single character, and obtaining a corrected three-dimensional coordinate according to the three-dimensional coordinate and the center distance of the room naming characters.
Specifically, the room naming characters are obtained by connecting an input interface of a string.length node in Dynamo with an output interface of a CATTextdata.TextValue node, and the number of the room naming characters is output under the functional operation of the string.length node; the single literal length of the room naming character is obtained through a single word size node in Dynamo, and the single literal length is measured in software Revit.
The method comprises the steps of respectively connecting an input interface of a Code Block node in Dynamo with an output interface of a string.Length node and an output interface of a single word size node to obtain the number of room naming characters and the length of a single word, and outputting the center distance of the room naming characters under the functional operation of the Code Block node.
As an embodiment of the method for acquiring the center distance, the method for acquiring the center distance of the room naming character includes: and obtaining the center distance d of the room naming characters according to the formula d = a/2 × B, wherein a is the number of the room naming characters, and B is the length of a single character. For example, the room name character is "office", a is 3, if B is 220mm, d =3/2 × 220mm =330mm, i.e. d is the lateral distance between the lower left corner position point of "office" and the center point of "office".
The direction of movement of the room naming character is obtained by the vector. xaxis node in Dynamo and is moved to the right.
An input interface of a geometry transfer node in Dynamo is respectively connected with an output interface of a vector XAxis node, an output interface of a Code Block node and an output interface of a CADTextdata origin node, the center distance and direction of a room naming character and the three-dimensional coordinate of the room naming character are obtained, and the three-dimensional coordinate of the room naming character is obtained by moving the length of the center distance along the X axis based on the functional operation of the geometry transfer node, so that the finally corrected three-dimensional coordinate is obtained.
The method comprises the steps of respectively connecting an input interface of a room.Bylocation node in Dynamo with an output interface of a CADTextdata.TextValue node, an output interface of a Levels node and an output interface of a geometry.Translate node, obtaining room naming characters, elevations and corrected three-dimensional coordinates, and creating and naming a room under the functional operation of the room.Bylocation node.
As another embodiment of the room modeling and naming labeling method, after a room is created and named by using the functional operation of the room.bylocation node in Dynamo, the room is uniformly labeled by using software Revit and a color filling legend is set up.
As a technical solution of the present application, a key point to be protected is to select a proper functional node according to a target requirement logical relationship and establish an effective connection therebetween to form a method for modeling and naming a label of a room that can implement a target function, and in particular, Dynamo software and a plurality of built-in functional nodes thereof are not used as objects to be solved and protected by the present application.
Based on the method for realizing the Revit room modeling and naming labeling based on Dynamo, the embodiment of the application also discloses a model for realizing the Revit room modeling and naming labeling based on Dynamo.
As shown in fig. 5, a model for implementing Revit room modeling and naming labeling based on Dynamo includes:
selecting a model node 1 for selecting a CAD room model;
the room layer obtaining node 2 is used for obtaining the room mark layer name of the CAD room model;
the layer list data acquisition node 3 is used for generating a layer list data set according to the CAD room model and the room mark layer name, and the layer list data set comprises CAD character data;
the two-dimensional list data generation node 4 is used for generating two-dimensional list data according to the layer list data set, and the two-dimensional list data comprises CAD text data;
the one-dimensional list data generation node 5 is used for extracting CAD character data in the two-dimensional list data and generating one-dimensional list data;
a room name generation node 6 for converting the one-dimensional list data into room naming characters;
the elevation obtaining node 7 is used for obtaining the elevation of the CAD room model;
the room naming character number obtaining node 8 is used for obtaining the number of the room naming characters;
a single font length obtaining node 9, configured to obtain a single font length of the room named character;
a three-dimensional coordinate acquisition node 10, configured to acquire three-dimensional coordinates of the room naming character according to the one-dimensional list data;
the center distance obtaining node 11 is used for obtaining the center distance of the room naming characters according to the number of the room naming characters and the length of the single font;
the direction obtaining node 12 is used for obtaining the moving direction of the room naming character;
the corrected position acquisition node 13 obtains a corrected three-dimensional coordinate according to the three-dimensional coordinate, the center distance, and the moving direction of the one-dimensional list data;
and the room modeling naming node 14 is used for creating a room according to the corrected three-dimensional coordinates, elevation and room naming characters and naming the room.
The implementation principle of the embodiment is as follows:
importing Revit, selecting a CAD file linked by the Revit through a selection model node 1, obtaining a CAD room model, obtaining a room mark layer name of the CAD room model through a room layer obtaining node 2, obtaining the CAD room model and the room mark layer name according to a layer list data obtaining node 3, and generating a layer list data set, wherein the layer list data set comprises CAD character data which are in one-to-one correspondence with the room names in the CAD file.
The two-dimensional list data generation node 4 acquires CAD character data in the layer list data set, and performs leveling on the layer list data set to obtain two-dimensional list data; the one-dimensional list data generation node 5 obtains the two-dimensional list data, and the two-dimensional list data is leveled, namely CAD character data in the two-dimensional list data are extracted to generate the one-dimensional list data, and finally the one-dimensional list data are converted into room naming characters through the room name generation node 6.
Acquiring room naming characters through a room naming character number acquisition node 8, and outputting the number of the room naming characters; the single font length of the room naming character measured by the software Revit is acquired by the single font length acquisition node 9, and the center distance of the room naming character is acquired by the center distance acquisition node 11 based on the number of the room naming characters and the single font length.
Acquiring one-dimensional list data through a three-dimensional coordinate acquisition node 10, acquiring a room name corresponding to CAD text data based on the one-dimensional list data, and acquiring a three-dimensional coordinate of a position point at the lower left corner of the room name; the direction in which the room naming character needs to move is obtained through the direction obtaining node 12, and finally the three-dimensional coordinate, the direction and the center distance are obtained through the corrected position obtaining node 13, so that the corrected three-dimensional coordinate is obtained.
And acquiring the elevation of the CAD room model through the elevation acquisition node 7, and finally acquiring the corrected three-dimensional coordinate, the elevation and the room naming character through the room modeling naming node 14 to create a room and name the room.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (10)

1. A method for realizing Revit room modeling and naming labeling based on Dynamo is characterized by comprising the following steps:
acquiring a CAD room model and a room mark layer name in the CAD room model;
generating a layer list data set based on the CAD room model and the room mark layer name, wherein the layer list data set comprises CAD text data;
obtaining room naming characters and three-dimensional coordinates of the room naming characters according to the layer list data set and a preset processing mechanism;
selecting the elevation of the CAD room model;
and creating a room according to the room naming character, the three-dimensional coordinates of the room naming character and the elevation, and naming the room.
2. The Dynamo-based method for realizing Revit room modeling and naming labeling according to claim 1, wherein the preset processing mechanism comprises:
generating two-dimensional list data according to the layer list data set, wherein the two-dimensional list data comprises CAD text data;
extracting CAD character data in the two-dimensional list data to generate one-dimensional list data;
converting the one-dimensional list data into room naming characters.
3. The method for realizing Revit room modeling and naming labeling based on Dynamo as claimed in claim 1 or 2, further comprising: and correcting the three-dimensional coordinates of the room naming character based on a preset correction rule.
4. The Dynamo-based method for Revit room modeling and naming labeling according to claim 3, wherein the three-dimensional coordinates of the room naming character are the three-dimensional coordinates of the position point at the lower left corner of the room name corresponding to the one-dimensional list data.
5. The Dynamo-based method for Revit room modeling and naming labeling according to claim 4, wherein the preset correction rules comprise:
acquiring the number of room naming characters and the length of a single character of the room naming character;
obtaining the center distance of the room naming character according to the number of the room naming characters and the length of a single character;
and obtaining the corrected three-dimensional coordinate according to the three-dimensional coordinate and the center distance of the room naming character.
6. The method for realizing Revit room modeling and naming labeling based on Dynamo as claimed in claim 5, wherein the method for setting the center distance of the room naming character comprises:
and obtaining the center distance d of the room naming characters according to the formula d = a/2 × B, wherein a is the number of the room naming characters, and B is the length of a single character.
7. The Dynamo-based method for Revit room modeling and naming labeling as claimed in claim 5, wherein: the individual literal length of the room naming character is measured in the software Revit.
8. The method for realizing Revit room modeling and naming labeling based on Dynamo as claimed in claim 5, wherein obtaining corrected three-dimensional coordinates according to the three-dimensional coordinates and center distance of the room naming character comprises:
and moving the three-dimensional coordinate of the room naming character along the X axis by the length of the distance of the center to obtain the finally corrected three-dimensional coordinate.
9. A model for realizing Revit room modeling and naming labeling based on Dynamo, which is characterized by comprising the following components:
selecting a model node for selecting a CAD room model;
the room layer obtaining node is used for obtaining the room mark layer name of the CAD room model;
the layer list data acquisition node is used for generating a layer list data set according to the CAD room model and the room mark layer name, and the layer list data set comprises CAD text data;
the two-dimensional list data generation node is used for generating two-dimensional list data according to the layer list data set, and the two-dimensional list data comprises CAD text data;
the one-dimensional list data generation node is used for extracting CAD data in the two-dimensional list data and generating one-dimensional list data;
the room name generation node is used for converting the one-dimensional list data into room naming characters;
the three-dimensional coordinate acquisition node is used for acquiring the three-dimensional coordinates of the room naming character according to the one-dimensional list data;
the elevation obtaining node is used for obtaining the elevation of the CAD room model;
and the room modeling naming node is used for creating a room according to the room naming character, the three-dimensional coordinates of the room naming character and the elevation and naming the room.
10. The Dynamo-based model for Revit room modeling and naming labeling as claimed in claim 9, further comprising:
the room naming character number acquisition node is used for acquiring the number of the room naming characters;
the single font length acquisition node is used for acquiring the single font length of the room named character;
the center distance acquisition node is used for acquiring the center distance of the room named characters according to the number of the room named characters and the length of the single font;
the direction acquisition node is used for acquiring the moving direction of the room naming character;
and the corrected position acquisition node is used for acquiring a corrected three-dimensional coordinate according to the three-dimensional coordinate, the center distance and the moving direction of the room naming character.
CN202110758798.6A 2021-07-05 2021-07-05 Method and model for realizing Revit room modeling and naming labeling based on Dynamo Pending CN113486424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110758798.6A CN113486424A (en) 2021-07-05 2021-07-05 Method and model for realizing Revit room modeling and naming labeling based on Dynamo

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110758798.6A CN113486424A (en) 2021-07-05 2021-07-05 Method and model for realizing Revit room modeling and naming labeling based on Dynamo

Publications (1)

Publication Number Publication Date
CN113486424A true CN113486424A (en) 2021-10-08

Family

ID=77940071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110758798.6A Pending CN113486424A (en) 2021-07-05 2021-07-05 Method and model for realizing Revit room modeling and naming labeling based on Dynamo

Country Status (1)

Country Link
CN (1) CN113486424A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114549776A (en) * 2022-01-27 2022-05-27 中建五局装饰幕墙有限公司 Rectangular family batch placement method based on Dynamo and Revit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114549776A (en) * 2022-01-27 2022-05-27 中建五局装饰幕墙有限公司 Rectangular family batch placement method based on Dynamo and Revit
CN114549776B (en) * 2022-01-27 2023-03-07 中建五局装饰幕墙有限公司 Rectangular family batch placement method based on Dynamo and Revit

Similar Documents

Publication Publication Date Title
KR0156270B1 (en) Apparatus for preparing map data with regional properties
CN113779670B (en) Method and system for realizing dual-control modeling of Revit pile foundation based on Dynamo
CN110516015B (en) Method for manufacturing geographical PDF map based on map graphic data and DLG
CN102521878A (en) Programmable three-dimensional human body modeling and human body measurement system and method thereof
CN105205864A (en) Multi-source-data-based automatic modeling method and system of three-dimension model of geological structural surface
CN114049462B (en) Three-dimensional model monomer method and device
CN110347764A (en) A kind of ecological space data integration method
CN113569308A (en) Safety monitoring forward three-dimensional design symbolization drawing method based on 3DE platform
CN113486424A (en) Method and model for realizing Revit room modeling and naming labeling based on Dynamo
CN108711356A (en) Geography target and symbol figure method for registering in vectorial geographical PDF cartographies
CN108898679B (en) Automatic labeling method for serial numbers of parts
CN113486429B (en) Automatic construction method of space intersection structure based on interpolation algorithm
CN107517366A (en) Projector's image information method for automatic measurement based on RGBD
CN112560231A (en) Runoff site spatial position correction method based on GIS
TWI313420B (en) A system and method for inputting point-cloud
CN110689614B (en) Electronic map-based equipment information collection method, medium, equipment and system
Arayici et al. Modeling 3D scanned data to visualize the built environment
Garagnani Semantic Building Information Modeling and high definition surveys for Cultural Heritage sites
Ma et al. An automated framework for generating synthetic point clouds from as-built BIM with semantic annotation for scan-to-BIM
CN103345769A (en) Full-path remote-sensing image thematic charting method
CN112541954B (en) Method for intelligently producing poster according to graphic features
CN103745071A (en) Data processing method and device for labeled product manufacturing information
JP3535597B2 (en) Graphic processing unit
JP2003150144A (en) Intelligent font having information on order of strokes or the like, preparing method and plotting method for the same
Farrow et al. Digital Photogrammetry-Options and Opportunities

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