CN112131651B - Intelligent axis creating method based on Revit - Google Patents

Intelligent axis creating method based on Revit Download PDF

Info

Publication number
CN112131651B
CN112131651B CN202011045606.9A CN202011045606A CN112131651B CN 112131651 B CN112131651 B CN 112131651B CN 202011045606 A CN202011045606 A CN 202011045606A CN 112131651 B CN112131651 B CN 112131651B
Authority
CN
China
Prior art keywords
axis
picking
acquiring
creating
layer
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.)
Active
Application number
CN202011045606.9A
Other languages
Chinese (zh)
Other versions
CN112131651A (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.)
Jiantu Intelligent Technology Co ltd
Original Assignee
Jiantu Intelligent Technology 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 Jiantu Intelligent Technology Co ltd filed Critical Jiantu Intelligent Technology Co ltd
Priority to CN202011045606.9A priority Critical patent/CN112131651B/en
Publication of CN112131651A publication Critical patent/CN112131651A/en
Application granted granted Critical
Publication of CN112131651B publication Critical patent/CN112131651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/20Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an intelligent axis creating method based on Revit, which comprises the steps of picking up a marked diagonal line or a picked axis, deleting a picked marked diagonal button, picking up an axis symbol map layer, creating a marked diagonal line, creating an axis, setting the type of an axle network, creating a size mark, designing a dialog box according to an engineering drawing, selecting a drawing address needing to be linked locally according to requirements, and respectively selecting floors needing to be linked, wherein all link drawings of the engineering drawing can be viewed overall, and batch production of the same type of axle networks can be directly picked up from a two-dimensional plane diagram.

Description

Intelligent axis creating method based on Revit
Technical Field
The invention relates to the technical field of constructional engineering and computer information technology industries, in particular to an intelligent axis creating method based on Revit.
Background
When a three-dimensional model is drawn according to a CAD two-dimensional drawing of a building, the establishment of an axis is the most important step in the initial step of building the model, and the axis determines the position information of the model and is also a mark line for reference of the whole model.
Revit is used as a software tool for modeling and drawing construction drawings, only single axis drawing is supported, for complex model information, manual operation needs to be drawn one by one, repeated work is more, workload is huge, steps for generating axes are complex when a model is built to be too huge, drawn axes are disordered and out of order, time and labor consumption cost are high, and work efficiency is not improved.
Disclosure of Invention
In order to solve the problem that a complex axis needs to be drawn in the process of building a model and increase the efficiency and accuracy of drawing the axis, the invention provides the following technical scheme.
A Revit-based intelligent axis-creating method, comprising at least the steps of:
1) picking up CAD layer lines in Revit and converting:
(i) pick-up mark diagonal or pick-up axis:
clicking a Button of 'picking up a labeling diagonal', activating a mouse to Click a Click event, selecting PickObject to allow a user to select a labeling diagonal or an axis layer to obtain a Reference, using GeometryElement and GetmeMetryObjectFromReference to obtain Transform matrix data of a drawing, using Id value of GeometryObject to obtain GraphcsStyle, and obtaining layer type and layer name of the layer;
(ii) delete picked callout diagonal Button:
activating a Click event, acquiring a view TEMPLATE by using get _ Parameter (BuiltInParameter. VIEW _ TEMPLATE) of a currently activated view, and displaying a corresponding category by using a set _ Visible attribute according to a selected layer character; removing deleted data by using a Remove attribute in list;
(iii) picking up a shaft symbol number layer:
clicking a 'picking up shaft number' Button to activate a Click event, selecting a shaft number layer by a user through a selection and a PickObject, wherein the implementation steps are the same as 'picking up a marked diagonal line or a picking up axis', deleting the picked-up shaft number layer Button, and implementing the steps are the same as 'deleting the picked-up marked diagonal line Button';
picking up the shaft is similar to the above step;
2) generating and creating:
(i) creating an annotation diagonal:
acquiring Id of a drawing selected by a current user, further acquiring CADLinkType, acquiring a directory address of a current instance and a layer name selected by the user in step 1) according to ModelPathUtils, ConverteModelPathToUserVisiblepath, creating a transaction through Database by using a Teigha component in CAD, and setting a reading attribute by using ReadDwgFile; acquiring all existing block tables through a blockTable attribute, and acquiring an axis line segment according to a block name and a layer name;
converting points of a CAD coordinate system into points of a Revit coordinate system through MillimeterToUnits, converting the points into coordinates by using an obtained Transform matrix and OfPoint according to the obtained linearity, and performing deduplication processing on repeated line segments;
(ii) creating an axis:
acquiring all elevations in the current project by using a FilteredElementCollector filter, sorting the positions of X and Y values of coordinates according to the midpoints of the acquired line segments, judging whether an axis number of an axis is acquired in the step one, matching axes according to the position of the axis number, grouping the axes corresponding to the axis number into groups, creating axes through grid. And Name attribute set axis names;
(iii) setting the type of the shaft network:
the axis Grid created in 1 or 2 is obtained using a filter element collector (doc), of (builtncategory. ost _ Grids), and the GridType existing in the project is obtained: TOP, DOWN, ALL, ARC, No five types; assigning a value to the axis pattern created by the acquired axis;
(iv) size marking creation:
acquiring the created axis Grid by using a Filter element collector (doc), OfCategory (BuiltInCategory. OST _ Grids), and performing OrderByDescripting sequencing processing on the axis through X and Y values to form an axis group;
acquiring all the marking style types existing in the project by using a FilterElementCollector and OfClass (typeof (DimensionType)), judging whether a romanD style dimension marking style already exists, if not, performing type assignment by using Duplicate, and adjusting the style by using a get _ Parameter method of BuiltInParameter;
respectively acquiring the outermost axes as references according to the axis group, collecting the outermost axes into a Reference array, and making a normal vector of a vertical line according to a two-line connecting line;
and (4) creating a label by using a Doc, Create, New dimension method according to the axis data processed by the steps.
Preferably, the step of "size label creation" of get _ Parameter method using BuiltInParameter to adjust the style at least includes:
LINE _ COLOR, DIM _ TEXT _ BACKGROUND, TEXT _ DIST _ TO _ LINE, TEXT _ FONT, TEXT _ SIZE, DIM _ WITNS _ LINE _ CNTRL, TEXT _ WIDTH _ SCALE, DIM _ LEADER _ arrow, DIM _ study _ CENTERLINE _ TICK _ MAR.
Preferably, the step of "axle net type setting" further comprises at least:
set the axis COLOR to "255" for the acquired GridType using get _ Parameter (builtinparameter. grid _ END _ segmentcolor);
GridType obtained using get _ Parameter (builtinparameter. grid _ CENTER _ segmentstyle) sets the axis STYLE to "continuous".
The invention can design a dialog box according to engineering drawings, select the drawing addresses needing to be linked locally according to requirements, and respectively select floors needing to be linked, can totally view all the linking drawings of the engineering drawings, directly pick up batches of shaft networks of the same type from two-dimensional plane graphs, generate the shaft networks in batches, achieve the accuracy and the integrity of the shaft lines, control the progress of the whole engineering, reasonably arrange the working progress, and improve the drawing efficiency.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely below, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides an axis intelligent creating method based on Revit, which comprises the following steps:
picking up and converting the CAD drawing layer lines in Revit, which is a precondition for creating axes, according to the labeling conversion and the axes conversion, two picking up modes are available for picking up the CAD drawing layer lines in Revit, and the implementation steps are as follows by taking the labeling conversion mode as an example.
Step one, picking up a marked diagonal line or a picking axis (if an axis conversion mode is selected, the step is a picking axis, and the specific implementation steps are the same):
clicking a Button of 'picking up a label diagonal', activating a mouse to Click a Click event, selecting PickObject to allow a user to select a label diagonal or an axis layer to obtain a Reference, using GeometryElement and GetmeMetryObjectFromReference to obtain Transform matrix data of a drawing, using Id value of GeometryObject to obtain GraphcsStyle, and obtaining the layer type and the layer name of the layer.
And step two, deleting the picked marked diagonal Button:
activating a Click event, acquiring a view TEMPLATE by using get _ Parameter (BuiltInParameter. VIEW _ TEMPLATE) of a currently activated view, and displaying a corresponding category by using a set _ Visible attribute according to a selected layer character; the deleted data is removed using the Remove attribute in list.
Step three, picking up a shaft symbol number layer:
clicking a 'picking axis number' Button to activate a Click event, selecting an axis number layer by a user through a selection and a pickObject, wherein the implementation steps are the same as 'picking a marked diagonal line or a picking axis', and deleting the picked axis number layer Button to realize the same as 'deleting the picked marked diagonal Button'.
The picking axis follows the above steps.
Step four, creating a labeling diagonal line:
acquiring Id of a drawing selected by a current user, further acquiring CADLinkType, acquiring a directory address of a current instance and a layer name selected by the user according to ModelPathUtils.ConverteModelPathToUserVisiblepath, creating a transaction through Database by using a Teigha component in CAD, and setting a reading attribute by using ReadDwgFile; acquiring all existing block tables through a blockTable attribute, and acquiring an axis line segment according to a block name and a layer name;
converting points of a CAD coordinate system into points of a Revit coordinate system through MillimeterToUnits, converting the points into coordinates by using an obtained Transform matrix and OfPoint according to the obtained linearity, and performing deduplication processing on repeated line segments; acquiring all elevations in the current project by using a FilteredElementCollector filter, judging whether an axis number of an axis symbol is acquired or not, and matching axes according to the position of the axis symbol to enable the axis numbers to be grouped with corresponding axes; create axis from grid, adjust grid and extend vertical range between bottom and top using setvertical extensions property to achieve leveling effect, and set axis Name using Name property.
Step five, an axis is created:
performing position sorting of X and Y values of coordinates according to the middle points of the acquired line segments, judging whether an axis number of an axis character is acquired in the step one, matching axes according to the position of the axis character, grouping the axes corresponding to the axis number, creating the axes according to a data group through grid. And the Name attribute sets the axis Name.
Step six, setting the type of a shaft network:
the axis Grid created in 1 or 2 is obtained using a filter element collector (doc), of (builtncategory. ost _ Grids), and the GridType existing in the project is obtained: TOP, DOWN, ALL, ARC, No five types; set the axis COLOR to "255" for the acquired GridType using get _ Parameter (builtinparameter. grid _ END _ segmentcolor);
GridType obtained using get _ Parameter (builtinparameter. grid _ CENTER _ segmentstyle) sets axis STYLE to "continuous";
and assigning a value to the axis pattern created by the acquired axis.
Step seven, size marking creation:
acquiring the created axis Grid by using a Filter element collector (doc), OfCategory (BuiltInCategory. OST _ Grids), and performing OrderByDescripting sequencing processing on the axis through X and Y values to form an axis group;
obtaining all the annotation STYLE types existing in the project by using a filteredElementCollector and OfClass (typeof (DimensionType)), judging whether a romanD STYLE dimension annotation STYLE already exists, if not, performing type assignment by using Duplicate, and adjusting the STYLEs by using a get _ Parameter method of BuiltInParameter, wherein the STYLEs comprise assignments of values of LINE _ COLOR, DIM _ TEXT _ BACKGROUND, TEXT _ DIST _ TO _ LINE, TEXT _ FONT, TEXT _ ZE, DIM _ WITNS _ LINE _ CNTRL, TEXT _ WIDTH _ SCALE, DIM _ LEADER _ ARROWHEAD, DIM _ STYLE _ CENTERLINE _ TICK _ MAR and the like, so as TO finish the annotation STYLE adjustment;
respectively acquiring the outermost axes as references according to the axis group, collecting the outermost axes into a Reference array, and making a normal vector of a vertical line according to a two-line connecting line;
and (4) creating a label by using a Doc, Create, New dimension method according to the axis data processed by the steps.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (3)

1. A Revit-based intelligent axis-creating method, comprising at least the steps of:
(1) picking up CAD layer lines in Revit and converting:
(1.1) picking up the marked diagonal or picking axis:
clicking a Button of 'picking up a labeling diagonal', activating a mouse to Click a Click event, selecting PickObject to allow a user to select a labeling diagonal or an axis layer to obtain a Reference, using GeometryElement and GetmeMetryObjectFromReference to obtain Transform matrix data of a drawing, using Id value of GeometryObject to obtain GraphcsStyle, and obtaining layer type and layer name of the layer;
(1.2) delete the picked labeled diagonal Button:
activating a Click event, acquiring a view TEMPLATE by using get _ Parameter (BuiltInParameter. VIEW _ TEMPLATE) of a currently activated view, and displaying a corresponding category by using a set _ Visible attribute according to a selected layer character; removing deleted data by using a Remove attribute in list;
(1.3) picking up a shaft symbol number layer:
clicking a 'picking up shaft number' Button to activate a Click event, selecting a shaft number layer by a user through a selection and a PickObject, wherein the implementation steps are the same as 'picking up a marked diagonal line or a picking up axis', deleting the picked-up shaft number layer Button, and implementing the steps are the same as 'deleting the picked-up marked diagonal line Button';
picking up the shaft is similar to the above step;
(2) generating and creating:
(2.1) creating annotation diagonals:
acquiring Id of a drawing selected by a current user, further acquiring CADLinkType, acquiring a directory address of a current instance and a layer name selected by the user in the step (1) according to ModelPathUtils.ConverteModelPathToUserVisiblepath, creating a transaction through Database by using a Teigha component in CAD, and setting a reading attribute by using ReadDwgFile; acquiring all existing block tables through a blockTable attribute, and acquiring an axis line segment according to a block name and a layer name;
converting points of a CAD coordinate system into points of a Revit coordinate system through MillimeterToUnits, converting the points into coordinates by using an obtained Transform matrix and OfPoint according to the obtained linearity, and performing deduplication processing on repeated line segments;
(2.2) creating an axis:
acquiring all elevations in the current project by using a FilteredElementCollector filter, carrying out position sorting of X and Y values of coordinates according to the midpoints of the acquired line segments, judging whether an axis number of an axis is acquired in the step (1), matching axes according to the position of the axis number, grouping the axes corresponding to the axis number, creating the axes through grid. And Name attribute set axis names;
(2.3) setting the type of the shaft screen:
obtaining the axis Grid created in step (2.1) or (2.2) using a filter element collector (doc), of which Grid is OST Grids, obtaining the Grid type existing in the project: TOP, DOWN, ALL, ARC, No five types; assigning a value to the axis pattern created by the acquired axis;
(2.4) size label creation:
acquiring the created axis Grid by using a Filter element collector (doc), OfCategory (BuiltInCategory. OST _ Grids), and performing OrderByDescripting sequencing processing on the axis through X and Y values to form an axis group;
acquiring all the marking style types existing in the project by using a FilterElementCollector and OfClass (typeof (DimensionType)), judging whether a romanD style dimension marking style already exists, if not, performing type assignment by using Duplicate, and adjusting the style by using a get _ Parameter method of BuiltInParameter;
respectively acquiring the outermost axes as references according to the axis group, collecting the outermost axes into a Reference array, and making a normal vector of a vertical line according to a two-line connecting line;
and (4) creating a label by using a Doc, Create, New dimension method according to the axis data processed by the steps.
2. The Revit-based smart create axis method of claim 1, wherein the step "dimensioning creation" of the get _ Parameter method using builtinpparameter for style adjustment includes at least:
LINE _ COLOR, DIM _ TEXT _ BACKGROUND, TEXT _ DIST _ TO _ LINE, TEXT _ FONT, TEXT _ SIZE, DIM _ WITNS _ LINE _ CNTRL, TEXT _ WIDTH _ SCALE, DIM _ LEADER _ arrow, DIM _ study _ CENTERLINE _ TICK _ MAR.
3. The Revit-based smart create axis method of claim 1, wherein the step "axicon-type setup" further comprises at least:
set the axis COLOR to "255" for the acquired GridType using get _ Parameter (builtinparameter. grid _ END _ segmentcolor);
GridType obtained using get _ Parameter (builtinparameter. grid _ CENTER _ segmentstyle) sets the axis STYLE to "continuous".
CN202011045606.9A 2020-09-29 2020-09-29 Intelligent axis creating method based on Revit Active CN112131651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011045606.9A CN112131651B (en) 2020-09-29 2020-09-29 Intelligent axis creating method based on Revit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011045606.9A CN112131651B (en) 2020-09-29 2020-09-29 Intelligent axis creating method based on Revit

Publications (2)

Publication Number Publication Date
CN112131651A CN112131651A (en) 2020-12-25
CN112131651B true CN112131651B (en) 2022-03-08

Family

ID=73844412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011045606.9A Active CN112131651B (en) 2020-09-29 2020-09-29 Intelligent axis creating method based on Revit

Country Status (1)

Country Link
CN (1) CN112131651B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112800503B (en) * 2021-01-26 2022-09-06 嘉博联合设计股份有限公司 Method and system for converting CAD drawing derived by Revit into standardized drawing
CN113468683B (en) * 2021-06-18 2022-05-06 中国能源建设集团天津电力建设有限公司 Pipeline axonometric diagram dimension marking and exporting method based on Revit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680578A (en) * 2015-02-13 2015-06-03 上海同筑信息科技有限公司 BIM-based axis labeling method and system
CN109960895A (en) * 2019-04-11 2019-07-02 华夏天信(北京)智能低碳技术研究院有限公司 Revit preprocess method based on BIM model

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680578A (en) * 2015-02-13 2015-06-03 上海同筑信息科技有限公司 BIM-based axis labeling method and system
CN109960895A (en) * 2019-04-11 2019-07-02 华夏天信(北京)智能低碳技术研究院有限公司 Revit preprocess method based on BIM model

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Revit 软件在建筑施工图绘制中的应用与研究;孙煜;《土木建筑工程信息技术》;20180831(第4期);正文第71-75页 *
Revit-Based Automation Modeling for Intermediate Railway Station;Bashar Abdal Noor等;《IEEE》;20171231;正文第162-166页 *
Revit如何使用导入CAD绘制轴网?;百度经验;《百度经验https://jingyan.baidu.com/article/f96699bbf5a192894f3c1b78.html》;20171111;全文 *
基于CAD 图纸的BIM 模型轴网生成方法研究;马成等;《土木建筑工程信息技术》;20160229;正文第43-47页 *

Also Published As

Publication number Publication date
CN112131651A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN112131651B (en) Intelligent axis creating method based on Revit
CN109408897A (en) The conversion method and system identified based on PDMS to AutoCAD drawing size marking
CN106910140B (en) SVG format-based power system wiring diagram network topology analysis method
CN112270406A (en) Neural information visualization method of brain-like computer operating system
CN107679276A (en) Generation method, device and the electronic equipment of electric power system tide wiring diagram
CN112598373B (en) Automatic batch generation method after intelligent land parcel processing and net area calculation
CN112287773A (en) Primary wiring diagram primitive identification method based on convolutional neural network
CN104615366B (en) A kind of gesture interaction method towards many equipment
CN107862112A (en) Element material programming count and method for drafting suitable for AutoCAD floor plans
CN109739909A (en) A kind of methods of exhibiting and system fast implementing data visualization chart based on label
CN102509314A (en) Quick generating method for sunlight greenhouse construction drawing
CN113486429B (en) Automatic construction method of space intersection structure based on interpolation algorithm
JP5937038B2 (en) Topology diagram creation method and creation program
CN114398071A (en) Control logic configuration implementation method and system of control system
CN101908215A (en) Spatial data fusing method
CN111241779B (en) Method for designing irregular parallel lines based on Cadence design software
CN116452756A (en) Three-dimensional scene local automatic generation method, device, equipment and storage medium
CN107515979A (en) A kind of processing method and processing system to high-volume part model data
CN112241411B (en) Spreadsheet structured identification and extraction method based on CAD basic elements
CN108629138A (en) Equip method for building up, equipment knowledge base and the product data management system of maneuver library
CN107240150A (en) A kind of three-dimensional tube numeral dissolves drawing method
CN100419674C (en) Report forms generating system and method
CN112487124A (en) Method for converting dot-shaped elements in CorelDraw map into SuperMap by using VBA
CN107632998A (en) A kind of multidimensional data visualization method based on human figure
CN108170987A (en) The automatic hooking method of PBS structures based on BIM technology

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