CN111796866A - Method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream - Google Patents

Method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream Download PDF

Info

Publication number
CN111796866A
CN111796866A CN202010648744.XA CN202010648744A CN111796866A CN 111796866 A CN111796866 A CN 111796866A CN 202010648744 A CN202010648744 A CN 202010648744A CN 111796866 A CN111796866 A CN 111796866A
Authority
CN
China
Prior art keywords
information
revit
ansys
structural
acquiring
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
CN202010648744.XA
Other languages
Chinese (zh)
Other versions
CN111796866B (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.)
Chengdu Univeristy of Technology
Original Assignee
Chengdu Univeristy of Technology
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 Chengdu Univeristy of Technology filed Critical Chengdu Univeristy of Technology
Priority to CN202010648744.XA priority Critical patent/CN111796866B/en
Publication of CN111796866A publication Critical patent/CN111796866A/en
Application granted granted Critical
Publication of CN111796866B publication Critical patent/CN111796866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/74Reverse engineering; Extracting design information from source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The invention discloses a method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream, which comprises the following steps: developing an operation interface for exporting the information; building structural columns and frame beams of a frame structure model; acquiring geometric information of structural columns and frame beam members in order; creating a structural panel; sequentially acquiring geometric information of the structural plate members; commands to copy the geometric information flow to Ansys software, automatically generating the model. The method is used for solving the problem that the extracted geometrical information of the Revit frame structure model cannot meet the high requirement of Ansys software on the numbering sequence, so that a body cannot be generated or is in a twisted state, the introduction of the frame model established by the Revit software into the Ansys software is realized, a model is provided for subsequent analysis operation, the operation of repeatedly inputting key point numbers and coordinates in the Ansys software is avoided, and the application of a building information model in the aspect of structural design is enhanced.

Description

Method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream
Technical Field
The invention relates to the technical field of building information and building design, in particular to a method for acquiring frame structure information based on Revit secondary development combined with Ansys command streams.
Background
With the development of building model informatization (BIM), the combined application of a three-dimensional model and a two-dimensional drawing in actual engineering realizes the application of civil engineering drawing inspection, electromechanical pipeline collision, technical scheme review, integrated information system and the like in the whole life cycle of buildings such as a design stage, a construction stage, an operation stage and the like, and changes the traditional building industry.
At present, the most widely applied BIM modeling software for a structural component system is Revit software which provides various component families, and a user can also construct a family library for different structural types in a parameterization mode to avoid repeated modeling. On the other hand, the software provides an API interface for users to perform secondary development, such as: a series of interactive windows can be modeled quickly, and automatic arrangement is realized at accurate positions; various information of the model is extracted and applied in the aspect of information application, and the information is transmitted between different software, so that different applications are carried out.
However, because of the great difference in modeling modes between different software, software differences need to be considered comprehensively in the information derivation process, for example, when the Revit software performs a frame structure including beam-column plate members, automatic calculation is performed at the joints of the members, and if geometric information is not obtained in order in a certain mode, the command of the Ansys software for generating a body by using the point number cannot be met, so that a series of problems that the body cannot be generated or is in a distorted state, and the like, are caused.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method for acquiring the frame structure information based on Revit secondary development and Ansys command stream, so that the frame model established by Revit is completely imported into Ansys software.
In order to realize the purpose, the technical scheme adopted by the invention is as follows:
a method for acquiring frame structure information based on Revit secondary development and Ansys command stream is provided, and the frame structure comprises structural columns, frame beams and structural plate members. The method comprises the following steps:
s1: an operation interface for developing information export for the geometric model information export system;
s2: building structural columns and frame beams of a frame structure model;
s3: acquiring geometrical information of the structural column and the frame beam member in order, namely eight vertex coordinates, and outputting a K command for generating a key point and a V command for generating a body to a pop-up window according to an APDL command stream requirement of Ansys software;
s4: creating a structural panel;
s5: sequentially acquiring geometric information of the structural plate member, namely eight vertex coordinates; outputting a 'K' command for generating a key point and a 'V' command for generating a body to a pop-up window according to the APDL command stream requirement of the Ansys software;
s6: the commands of the geometric information flow into the Ansys software, and the model is automatically generated.
Further, in step S1, the specific steps of developing an information export operation interface in the Revit top toolbar are as follows:
s11: creating a tab of an APDL command stream of the Revit model generating Ansys software;
s12: creating a geometric model information panel;
s13: two buttons are created in the panel, the Text attributes of the buttons are respectively 'column, beam member' and 'structural plate', the name attribute of the program set is given to the specific position of the class library item, so that a user can complete the class library item after clicking the button, and the information export function is realized.
Further, in step S2, the specific steps of creating the structural columns and the frame beams of the frame structure model are as follows:
and establishing a project in Revit software, establishing elevation according to a frame structure design scheme, loading a 'concrete-rectangular-column' family and a 'concrete-rectangular beam' family, and establishing an example at a corresponding position.
Further, the specific steps of step S3 are as follows:
s31: filtering structural columns and frame beam members in the project into different sets;
s32: traversing the set to obtain a base class of the geometric information, namely a geometric object;
s33: for the geometric information of the structural column, firstly acquiring four points and heights on the bottom surface, and then instantiating points on the top surface; acquiring two surfaces of a top surface and a bottom surface to acquire points for the geometric information of the frame beam;
s34: and traversing to obtain the point information, generating string fields in an APDL command stream form, and transmitting the string fields into the instantiated WPF window so as to copy the WPF window by a user.
Further, the specific step of step S4 is: the Revit project continues to create structural panels that are a family of systems that do not need to be loaded.
Further, the step S5 specifically includes: similar to the acquisition and output of the geometric information of the column and the beam, the description is omitted, and it should be noted that all the surfaces can be directly acquired and the points can be acquired without acquiring the top surface and the bottom surface, and then the repeated points are moved out of the point set.
Further, the step S6 specifically includes: clicking a button in the created panel, popping up a window, clicking a copy button on the window to copy the text, and entering Ansys software for modeling.
Compared with the prior art, the invention has the advantages that:
application of BIM model information is achieved by using an Application Programming Interface (API) provided by Revit software for opening users, and when extracting model geometric information, in order to avoid the written algorithm from being influenced by a modeling mode and a Revit own segmentation algorithm, the program is enabled to have operation errors, which is not adopted by other developers at present: the method comprises the steps of extracting coordinates at the joint of the components to perform a comparison algorithm, achieving component re-cutting, adopting four steps of creating a column and beam structural component, acquiring and copying geometric information of the column and the beam, entering Ansys modeling, creating a structural plate, acquiring and copying geometric information of the structural plate, and entering Ansys modeling, and effectively achieving the purposes that after the extraction of the geometric information and the input of an APDL command stream, the components are not distorted and cannot be generated due to the numbering problem. The invention gets through the 'bridge' between the geometrical Information output of the Revit software and the geometrical Information input of the Ansys software, and embodies the meaning behind the BIM (building Information modeling): namely building information creation and application.
Drawings
FIG. 1 is a view of the present invention showing the division of structural columns, frame beams, and structural panels;
FIG. 2 is a diagram of an information export operation interface based on Revit software development in an embodiment of the present invention;
FIG. 3 is a diagram of a model built in Revit software in an embodiment of the present invention;
FIG. 4 is a sequence diagram of structure column point numbers obtained in the embodiment of the present invention;
FIG. 5 is a point number sequence diagram of a frame beam acquired in an embodiment of the present invention;
FIG. 6 is a diagram of a window pop-up by clicking the "post, beam member" button in an embodiment of the present invention;
FIG. 7 is a diagram of a complete framework structure model built in Revit software in an embodiment of the present invention;
fig. 8 is a structural model diagram generated by pasting an output command stream in Ansys software according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail by referring to the following examples.
As shown in fig. 1, if a frame structure sequentially built by a structural column, a frame beam, and a structural plate performs an operation between components at a node, and the structural plate divides the structural column and the frame beam, so that geometric information of the column and the plate components is traversed to obtain points on a division plane, and in order to obtain geometric information of each component formed by eight points per se and meet a high requirement of Ansys software on a numbering sequence, a method for obtaining frame structure information based on Revit secondary development in combination with an Ansys command stream is provided, which includes the following steps:
(1) an operation interface for developing information export for the geometric model information export system;
the method comprises the steps of carrying out Revit secondary development by adopting C # language and Visual Studio2019 software, firstly creating a class library item, quoting RevitAPI.dll and RevitAPI.dll dynamic link libraries, creating an option card named as APDL (android package) command stream of Ansys generated by a Revit model by adopting a CreateRibbonTab command, creating a panel named as geometric model information by adopting a CreateRibbonPanel command, instantiating two buttons by adopting a new PushButtonData, wherein Text display attributes of the buttons are respectively 'column, beam member and structural plate', endowing a program set name attribute to a specific position of the class library item, and completing the class library item after a user clicks the button to realize an information export function; the completed operational interface is shown in FIG. 2;
(2) building structural columns and frame beams of a frame structure model;
establishing a project in Revit software, establishing an elevation according to a frame structure design scheme, loading a 'concrete-rectangular-column' family and a 'concrete-rectangular beam' family, and establishing an example at a corresponding position, wherein the frame structure established in the embodiment is shown in FIG. 3;
(3) acquiring geometrical information of the structural column and the frame beam member in order, namely eight vertex coordinates, and outputting a K command for generating a key point and a V command for generating a body to a popup window according to APDL command stream requirements;
further filtering structural columns and frame beam members in the project into different sets, and traversing the sets to obtain a base class of the geometric information, namely a geometric object;
Figure BDA0002574123280000061
for the geometric information of the structural column, four points and heights on the bottom surface are obtained, and then points of the top surface are instantiated;
Figure BDA0002574123280000062
the order of the point numbers acquired in this manner is shown in fig. 4.
For the geometric information of the frame beam, two surfaces of the top surface and the bottom surface are acquired to acquire points.
Figure BDA0002574123280000071
The point numbering sequence of the frame beam acquired in this way is as shown in fig. 5;
clicking the APDL command stream window of the 'column, beam member' button to pop up 'generating structural column, frame beam' is shown in FIG. 6;
(4) creating a structural panel, the complete frame structure being as shown in figure 7;
(5) sequentially acquiring geometric information of the structural plate member, namely eight vertex coordinates; outputting a 'K' command for generating a key point and a 'V' command for generating a body to a popup window according to the requirement of an APDL command stream;
(6) copying the command stream of the window display into Ansys software, and generating a model as shown in FIG. 8;
it will be appreciated by those of ordinary skill in the art that the examples described herein are intended to assist the reader in understanding the manner in which the invention is practiced, and it is to be understood that the scope of the invention is not limited to such specifically recited statements and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.

Claims (7)

1. A method for acquiring framework structure information based on Revit secondary development combined with Ansys command stream is characterized in that: the frame structure comprises structural columns, frame beams and structural plate members; the method comprises the following steps:
s1: an operation interface for developing information export for the geometric model information export system;
s2: building structural columns and frame beams of a frame structure model;
s3: acquiring geometrical information of the structural column and the frame beam member in order, namely eight vertex coordinates, and outputting a K command for generating a key point and a V command for generating a body to a pop-up window according to an APDL command stream requirement of Ansys software;
s4: creating a structural panel;
s5: sequentially acquiring geometric information of the structural plate member, namely eight vertex coordinates; outputting a 'K' command for generating a key point and a 'V' command for generating a body to a pop-up window according to the APDL command stream requirement of the Ansys software;
s6: commands of what information flow to Ansys software, and the model is automatically generated.
2. The method of claim 1, wherein the method for acquiring the framework structure information based on Revit secondary development combined with Ansys command stream is characterized in that: in step S1, the specific steps of developing an information export operation interface in the Revit top toolbar are as follows:
s11: creating a tab of an APDL command stream of the Revit model generating Ansys software;
s12: creating a geometric model information panel;
s13: two buttons are created in the panel, the Text attributes of the buttons are respectively 'column, beam member' and 'structural plate', the name attribute of the program set is given to the specific position of the class library item, so that a user can complete the class library item after clicking the button, and the information export function is realized.
3. The method of claim 2, wherein the method for acquiring the framework structure information based on Revit secondary development combined with Ansys command stream comprises: the specific steps of step S2 are as follows:
and establishing a project in Revit software, establishing elevation according to a frame structure design scheme, loading a 'concrete-rectangular-column' family and a 'concrete-rectangular beam' family, and establishing an example at a corresponding position.
4. The method of claim 3, wherein the method for obtaining the framework structure information based on Revit second development combined with Ansys command stream comprises: the specific steps of step S3 are as follows:
s31: filtering structural columns and frame beam members in the project into different sets;
s32: traversing the set to obtain a base class of the geometric information, namely a geometric object;
s33: for the geometric information of the structural column, firstly acquiring four points and heights on the bottom surface, and then instantiating points on the top surface; acquiring two surfaces of a top surface and a bottom surface to acquire points for the geometric information of the frame beam;
s34: and traversing to obtain the point information, generating string fields in an APDL command stream form, and transmitting the string fields into the instantiated WPF window so as to copy the WPF window by a user.
5. The method of claim 4, wherein the method for acquiring the framework structure information based on Revit second development combined with Ansys command stream comprises: the specific steps of step S4 are: the Revit project continues to create structural panels that are a family of systems that do not need to be loaded.
6. The method of claim 5, wherein the method for obtaining the framework structure information based on Revit second development combined with Ansys command stream comprises: the step S5 includes the following steps: similar to the acquisition and output of the geometric information of the column and the beam, the description is omitted, and it should be noted that all the surfaces can be directly acquired and the points can be acquired without acquiring the top surface and the bottom surface, and then the repeated points are moved out of the point set.
7. The method of claim 6, wherein the method for obtaining the framework structure information based on Revit second development combined with Ansys command stream comprises: the step S6 includes the following steps: clicking a button in the created panel, popping up a window, clicking a copy button on the window to copy the text, and entering Ansys software for modeling.
CN202010648744.XA 2020-07-08 2020-07-08 Method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream Active CN111796866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010648744.XA CN111796866B (en) 2020-07-08 2020-07-08 Method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010648744.XA CN111796866B (en) 2020-07-08 2020-07-08 Method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream

Publications (2)

Publication Number Publication Date
CN111796866A true CN111796866A (en) 2020-10-20
CN111796866B CN111796866B (en) 2021-10-08

Family

ID=72810399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010648744.XA Active CN111796866B (en) 2020-07-08 2020-07-08 Method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream

Country Status (1)

Country Link
CN (1) CN111796866B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860701A (en) * 2021-03-01 2021-05-28 成都理工大学 Non-modal frame data transmission system and method based on Revit
CN114595610A (en) * 2022-03-11 2022-06-07 成都理工大学 Method for creating tunnel finite element model based on Revit secondary development and Ansys command stream

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072181A1 (en) * 2010-09-22 2012-03-22 Behzad Imani Method and apparatus for optimizing hvac systems in buildings
US20130024836A1 (en) * 2010-11-22 2013-01-24 Jason Adam Koerner Interactive Graphical Construction of Parametric Components of Typical Cross Section Frameworks
CN104281729A (en) * 2014-07-02 2015-01-14 哈尔滨工业大学 BIM (building information model) method for digital processing and manufacturing of steel structure buildings
CN107818227A (en) * 2017-11-17 2018-03-20 厦门大学 A kind of bridge machinery approaches to IM and system based on BIM
WO2018156636A1 (en) * 2017-02-22 2018-08-30 View, Inc. Seismic event detection system
CN110175356A (en) * 2019-04-22 2019-08-27 中冶南方工程技术有限公司 A kind of rapid Modeling and Design method of beam bridge based on Revit secondary development
CN111335186A (en) * 2020-03-05 2020-06-26 青岛理工大学 Safety monitoring and early warning method and system for swivel bridge, storage medium and early warning platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072181A1 (en) * 2010-09-22 2012-03-22 Behzad Imani Method and apparatus for optimizing hvac systems in buildings
US20130024836A1 (en) * 2010-11-22 2013-01-24 Jason Adam Koerner Interactive Graphical Construction of Parametric Components of Typical Cross Section Frameworks
CN104281729A (en) * 2014-07-02 2015-01-14 哈尔滨工业大学 BIM (building information model) method for digital processing and manufacturing of steel structure buildings
WO2018156636A1 (en) * 2017-02-22 2018-08-30 View, Inc. Seismic event detection system
US20200003918A1 (en) * 2017-02-22 2020-01-02 View, Inc. Seismic event detection system
CN107818227A (en) * 2017-11-17 2018-03-20 厦门大学 A kind of bridge machinery approaches to IM and system based on BIM
CN110175356A (en) * 2019-04-22 2019-08-27 中冶南方工程技术有限公司 A kind of rapid Modeling and Design method of beam bridge based on Revit secondary development
CN111335186A (en) * 2020-03-05 2020-06-26 青岛理工大学 Safety monitoring and early warning method and system for swivel bridge, storage medium and early warning platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘仕茂: "BIM技术在某连续刚构梁桥结构设计中的应用研究", 《中国优秀博硕士学位论文全文数据库(硕士)工程科技Ⅱ辑》 *
张晓丽: "ANSYS软件二次开发技术的应用", 《重庆工学院学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860701A (en) * 2021-03-01 2021-05-28 成都理工大学 Non-modal frame data transmission system and method based on Revit
CN112860701B (en) * 2021-03-01 2023-06-30 成都理工大学 System and method for modeless frame data transmission based on Revit
CN114595610A (en) * 2022-03-11 2022-06-07 成都理工大学 Method for creating tunnel finite element model based on Revit secondary development and Ansys command stream
CN114595610B (en) * 2022-03-11 2023-06-20 成都理工大学 Method for creating tunnel finite element model based on Revit secondary development and Ansys command stream

Also Published As

Publication number Publication date
CN111796866B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US10937211B2 (en) Automated parametrization of floor-plan sketches for multi-objective building optimization tasks
US5161211A (en) Method and system of specification processing
CN111796866B (en) Method for acquiring frame structure information based on Revit secondary development combined with Ansys command stream
US9189377B1 (en) Automation testing using descriptive maps
Ying et al. Generating second-level space boundaries from large-scale IFC-compliant building information models using multiple geometry representations
Eastman et al. Introducing a new methodology to develop the information delivery manual for AEC projects
CN113392462B (en) Sewage pipe network rapid modeling method based on Revit secondary development
KR20140073748A (en) Featured based modeling system and method of traditional korean-style house
US20230315925A1 (en) Library-based connections design automation
CN114430823A (en) Software knowledge capturing method, device and system
US11698998B2 (en) Computer aided design (CAD) model connection propagation
EP0692112B1 (en) Dynamic browser system
US11327471B2 (en) Building and tracking of an automation engineering environment
Koskinen et al. Model processing tools in UML
Yip et al. Graphical user interfaces validation: a problem analysis and a strategy to solution
Mattern et al. Concepts for formal modeling and management of building design options
Wahyuni et al. Augmented reality as a media for Reog Ponorogo art figure introduction
Khattra et al. Assessment of buiding information modeling for structural analysis domain
Quintero Botero Evaluation of interoperability in construction programs using the IFC 4
Singi et al. Model-based approach for automated test case generation from visual requirement specifications
Andrews et al. NASA MSFC Use of Physical Mockups in Virtual Reality
TW533362B (en) Method for integrating bill of material with computer software
Zelenko et al. Built environment prototyping for design-value
Liu et al. Construction of Semantic Model for GUI of Mobile Applications Using Deep Learning
de Paulo An interactive real-time physics software for structural analysis of space trusses

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