CN111724476A - Dynamo and Python-based rapid modeling method for special-shaped bridge pier - Google Patents

Dynamo and Python-based rapid modeling method for special-shaped bridge pier Download PDF

Info

Publication number
CN111724476A
CN111724476A CN202010601248.9A CN202010601248A CN111724476A CN 111724476 A CN111724476 A CN 111724476A CN 202010601248 A CN202010601248 A CN 202010601248A CN 111724476 A CN111724476 A CN 111724476A
Authority
CN
China
Prior art keywords
special
dynamo
python
bridge pier
pier
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
CN202010601248.9A
Other languages
Chinese (zh)
Other versions
CN111724476B (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.)
Ningbo Municipal Engineering Construction Group Co Ltd
Original Assignee
Ningbo Municipal Engineering Construction 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 Ningbo Municipal Engineering Construction Group Co Ltd filed Critical Ningbo Municipal Engineering Construction Group Co Ltd
Priority to CN202010601248.9A priority Critical patent/CN111724476B/en
Publication of CN111724476A publication Critical patent/CN111724476A/en
Application granted granted Critical
Publication of CN111724476B publication Critical patent/CN111724476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Computing Systems (AREA)
  • Remote Sensing (AREA)
  • Computer Graphics (AREA)
  • Devices For Executing Special Programs (AREA)
  • Numerical Control (AREA)

Abstract

A rapid modeling method for a special-shaped bridge pier based on Dynamo and Python is characterized by comprising the following steps: it comprises the following steps: (1) the method comprises the steps of compiling Python codes by utilizing Python script nodes of Dynamo, wherein the Python codes are obtained by establishing a space rectangular coordinate system according to a special-shaped pier design drawing and expressing a contour curve of the special-shaped pier in the vertical direction by utilizing a piecewise function; (2) assigning values to variables defined in the Python script, and acquiring a plurality of cross section profiles; (3) utilizing the Solid ByLoft node to loft the obtained cross section to create a special-shaped pier entity; (4) and outputting the Dynamo model to Revit by utilizing an import instance ByGeometry node. The method has the advantages of simpler procedure and higher modeling efficiency.

Description

Dynamo and Python-based rapid modeling method for special-shaped bridge pier
Technical Field
The invention relates to the technical field of modeling of special-shaped components, in particular to a Dynamo and Python-based quick modeling method for a special-shaped pier.
Background
The BIM (building Information modeling) technology is a visual digital building model constructed based on an advanced three-dimensional digital design solution, is applied to each stage of bridges, tunnels and building engineering, and can realize rapid modeling, model calculation, drawing output, engineering quantity statistics, collaborative design, digital Information construction, construction simulation and the like. Dynamo is an efficient computer aided design tool in parameterized building design software, and is an open-source plug-in based on an Autodesk Dynamo information management platform. A set of progressive program flow is set at a predefined node connected with a working interface aiming at a certain problem through a computational design method and a visual programming language, and the problem is solved through basic logic of input, processing and output.
At present, the informatization degree of the building industry is still lagged behind, the appearance of visual programming such as Dynamo and the like only promotes and optimizes a modeling means to a certain degree, however, when Dynamo is used to a certain depth, too many nodes can be found, the management is inconvenient, and some functions cannot be realized by using the nodes. Thus, the mere use of Dynamo has in fact presented a number of limitations. Python is a cross-platform computer programming language, is a high-level scripting language combining interpretability, compiling performance, interactivity and object-oriented, can realize the functions of nodes, can introduce a third-party function, greatly improves the convenience of parametric design, and is widely applied to the aspects of Web development, scientific calculation and statistics, artificial intelligence, software development, back-end development, network crawlers and the like. Therefore, the introduction of Python programming into Dynamo makes the program more concise and the modeling efficiency higher, and a rapid modeling method based on Dynamo and Python is not designed for the special-shaped bridge pier at present.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the Dynamo and Python-based abnormal pier rapid modeling method is simpler in program and higher in modeling efficiency.
The technical solution of the invention is as follows: a rapid modeling method for a special-shaped bridge pier based on Dynamo and Python is characterized by comprising the following steps: it comprises the following steps:
(1) the method comprises the steps of compiling Python codes by utilizing Python script nodes of Dynamo, wherein the Python codes are obtained by establishing a space rectangular coordinate system according to a special-shaped pier design drawing, expressing a contour curve of the special-shaped pier in the vertical direction by utilizing a piecewise function and calculating the relative position relation between the contour curves;
(2) inputting related parameters of the special-shaped bridge pier by using the corresponding nodes of Dynamo to assign values to variables defined in the Python script,
simultaneously, according to the profile curves obtained in the step (1) and the relative position relationship between the profile curves, points are taken at equal intervals along the height direction, coordinates of each point on the cross section are obtained, and the points at the same height are connected to obtain a plurality of cross section profiles;
(3) setting out the obtained cross section by using Solid ByLoft nodes in Dynamo to create a special-shaped pier entity;
(4) and outputting the Dynamo model to the Revit by utilizing an import instance ByGeometry node in Dynamo.
After the method is adopted, the invention has the following advantages:
the rapid modeling method of the special-shaped bridge pier based on Dynamo and Python adopts Python script programming to replace a complex operational logic relationship formed by Dynamo nodes aiming at a piecewise function of a contour curve representing the vertical direction of the special-shaped bridge pier, can greatly simplify the program and has higher modeling efficiency, and the Python script is adopted to facilitate the adjustment and control of parameters, almost all the parameters are variable, the parameter modification is more flexible and convenient, and only the relevant parameters of the Python script are changed, not only can realize the batch modeling of the same special-shaped bridge pier and change the related function of the Python script, but also can realize the batch modeling of different types of special-shaped bridge piers, further improves the modeling efficiency, in addition, aiming at other relatively simple operational logic relations, Dynamo nodes are adopted, so that the programming difficulty is low, the operation is more convenient, the visualization is well realized, and the modeling efficiency is further improved.
Preferably, the following steps are further included between the step (2) and the step (3): the cross-sectional profile is processed using the polycurvefill node of Dynamo to obtain an accurate cross-sectional profile. This arrangement can make the established Dynamo model more accurate.
Preferably, the front face and the rear face of the special-shaped pier are planes, a space rectangular coordinate system is established according to a special-shaped pier design drawing, and the method is simplified to establish two plane rectangular coordinate systems on the front face and the rear face of the special-shaped pier. The special-shaped bridge pier with the planar front face and the planar rear face can be simplified into a planar rectangular coordinate system by the aid of the special-shaped bridge pier, so that subsequent procedures are further simplified, and modeling efficiency is further improved.
Preferably, the piecewise function of the contour curve representing the vertical direction of the irregular pier comprises a lower straight line segment and an upper curved line segment. The setting can simplify the piecewise function, further simplify the whole program and improve the modeling efficiency.
Preferably, in the step (2), when points are taken at equal intervals in the height direction according to the already obtained profile curve and the relative position relationship between the profile curves, the interval is an adjustable parameter. This setting can control the model accuracy.
Description of the drawings:
FIG. 1 is an interface of a Python script node according to the present invention;
FIG. 2 is a Python code editing page of the present invention;
FIG. 3 is a parameter input interface according to the present invention;
FIG. 4 is a diagram of the present invention of the operational logic relationship for generating coordinates of points on a cross-section using nodes;
FIG. 5 is a coordinate display of points on a cross-section of the present invention;
FIG. 6 is an interface of a PolyCurve fill node of the present invention;
FIG. 7 is a diagram of the operational logic relationship of the present invention using PolyCurve fill nodes for processing;
FIG. 8 is a rough cross-sectional profile without the PolyCurve fill node process;
FIG. 9 is a precise cross-sectional profile using a PolyCurve fill node process;
FIG. 10 is an interface of Solid ByLoft nodes;
FIG. 11 is a logical relationship diagram of the operations performed by the Solid ByLoft nodes;
fig. 12 is the Dynamo model after lofting;
FIG. 13 is an interface of an import instance ByGeometry node;
fig. 14 is the model output to Revit.
Detailed Description
The invention is further described with reference to the following embodiments in conjunction with the accompanying drawings.
Example (b):
a rapid modeling method for a special-shaped bridge pier based on Dynamo and Python comprises the following steps:
(1) as shown in fig. 1 and fig. 2, Python codes are compiled by using Python script nodes of Dynamo, the Python codes are a space rectangular coordinate system established according to a special-shaped pier design drawing, profile curves in the vertical direction of the special-shaped pier are represented by using a piecewise function, and a relative position relationship between the profile curves is calculated, in this embodiment, front and back surfaces of the special-shaped pier are planes, so the space rectangular coordinate system is established according to the special-shaped pier design drawing, two plane rectangular coordinate systems are simplified to be established on the front and back surfaces of the special-shaped pier, so that 2 outer profile curves on the front and back surfaces can be used for representing outer profiles, since the middle part of the special-shaped pier is concave, 4 inner profile curves on the front and back surfaces are needed to represent inner profiles, wherein the 2 inner profile curves and the 2 outer profile curves on the same plane, the same rectangular coordinate system can be used, although the other 2 inner contour curves are not in the same plane as the 2 outer contour curves on the corresponding side, the other 2 inner contour curves can be obtained by translating the 2 inner contour curves on the same plane as the outer contour curves on the same side, so that an additional plane rectangular coordinate system does not need to be re-established, and therefore 12 contour curves are required in total for a complete special-shaped pier in the embodiment, only two front and rear plane rectangular coordinate systems are adopted, the piecewise function of the contour curves representing the vertical direction of the special-shaped pier comprises a lower straight line segment and an upper curved line segment, the relative position relationship between the calculated contour curves in the embodiment comprises the distance between the two symmetrical outer contour curves on the same plane, the distance between the inner contour curves and the like, the calculated cross-section outer contour distance in the section width and length part, the calculated cross-section inner contour distance, Calculating the transverse length of the cross section, wherein the 3 node frames are all compiled by Python scripts;
(2) as shown in fig. 3, inputting relevant parameters of the special-shaped bridge pier to assign values to variables defined in a Python script by using corresponding nodes of Dynamo, as shown in fig. 3 and 4, simultaneously, according to the profile curve obtained in the step (1) and the relative position relationship between the profile curves, taking points at equal intervals along the height direction, namely, cutting the special-shaped bridge pier at intervals of a horizontal plane to obtain intersection points of the horizontal plane and the profile curve of the bridge pier, namely obtaining coordinates of each point on the cross section, wherein each point on the cross section is shown in fig. 5, connecting the points at the same height to obtain a plurality of cross section profiles, wherein the cross section profiles are rough profiles, the intervals are adjustable parameters, and the accuracy of the models can be controlled;
(3) as shown in fig. 6 and 7, processing the cross-sectional profile by using a PolyCurve filler node of Dynamo to obtain a precise cross-sectional profile, wherein the processing process includes chamfering and data reorganization, and comparing the processed precise cross-sectional profile with the rough cross-sectional profile obtained in step (2), as shown in fig. 8 and 9;
(4) as shown in fig. 10 and 11, lofting the obtained cross section by using the Solid bylot node in Dynamo to create a special-shaped pier entity, wherein the lofted special-shaped pier entity is shown in fig. 12;
(5) as shown in fig. 13, using the importstance ByGeometry node in Dynamo, the Dynamo model is output to Revit, and the model output to Revit is shown in fig. 14.
The rapid modeling method of the special-shaped bridge pier based on Dynamo and Python adopts Python script programming to replace a complex operational logic relationship formed by Dynamo nodes aiming at a piecewise function of a contour curve representing the vertical direction of the special-shaped bridge pier, can greatly simplify the program and has higher modeling efficiency, and the Python script is adopted to facilitate the adjustment and control of parameters, almost all the parameters are variable, the parameter modification is more flexible and convenient, and only the relevant parameters of the Python script are changed, not only can realize the batch modeling of the same special-shaped bridge pier and change the related function of the Python script, but also can realize the batch modeling of different types of special-shaped bridge piers, further improves the modeling efficiency, in addition, aiming at other relatively simple operational logic relations, Dynamo nodes are adopted, so that the programming difficulty is low, the operation is more convenient, the visualization is well realized, and the modeling efficiency is further improved.

Claims (5)

1. A rapid modeling method for a special-shaped bridge pier based on Dynamo and Python is characterized by comprising the following steps: it comprises the following steps:
(1) the method comprises the steps of compiling Python codes by utilizing Python script nodes of Dynamo, wherein the Python codes are obtained by establishing a space rectangular coordinate system according to a special-shaped pier design drawing, expressing a contour curve of the special-shaped pier in the vertical direction by utilizing a piecewise function and calculating the relative position relation between the contour curves;
(2) inputting relevant parameters of the special-shaped bridge pier to assign values to variables defined in the Python script by using corresponding nodes of Dynamo, and meanwhile, according to the profile curve obtained in the step (1) and the relative position relation between the profile curves, taking points at equal intervals in the height direction, obtaining coordinates of each point on the cross section, and connecting the points at the same height to obtain a plurality of cross section profiles;
(3) setting out the obtained cross section by using Solid ByLoft nodes in Dynamo to create a special-shaped pier entity;
(4) and outputting the Dynamo model to the Revit by utilizing an import instance ByGeometry node in Dynamo.
2. The Dynamo and Python-based special-shaped bridge pier rapid modeling method according to claim 1, wherein the method comprises the following steps: the method also comprises the following steps between the step (2) and the step (3): the cross-sectional profile is processed using the PolyCurve fill node of Dynamo to obtain an accurate cross-sectional profile.
3. The Dynamo and Python-based special-shaped bridge pier rapid modeling method according to claim 1, wherein the method comprises the following steps: the front face and the rear face of the special-shaped bridge pier are planes, a space rectangular coordinate system is established according to a special-shaped bridge pier design drawing, and the space rectangular coordinate system is simplified to be established in the front face and the rear face of the special-shaped bridge pier.
4. The Dynamo and Python-based special-shaped bridge pier rapid modeling method according to claim 1, wherein the method comprises the following steps: the piecewise function of the contour curve representing the vertical direction of the irregular pier comprises a lower straight line segment and an upper curved line segment.
5. The Dynamo and Python-based special-shaped bridge pier rapid modeling method according to claim 1, wherein the method comprises the following steps: in the step (2), when points are taken at equal intervals in the height direction according to the obtained profile curves and the relative position relationship between the profile curves, the intervals are adjustable parameters.
CN202010601248.9A 2020-06-29 2020-06-29 Dynamo and Python-based rapid modeling method for special-shaped bridge pier Active CN111724476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010601248.9A CN111724476B (en) 2020-06-29 2020-06-29 Dynamo and Python-based rapid modeling method for special-shaped bridge pier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010601248.9A CN111724476B (en) 2020-06-29 2020-06-29 Dynamo and Python-based rapid modeling method for special-shaped bridge pier

Publications (2)

Publication Number Publication Date
CN111724476A true CN111724476A (en) 2020-09-29
CN111724476B CN111724476B (en) 2023-11-17

Family

ID=72569309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010601248.9A Active CN111724476B (en) 2020-06-29 2020-06-29 Dynamo and Python-based rapid modeling method for special-shaped bridge pier

Country Status (1)

Country Link
CN (1) CN111724476B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031931A (en) * 2021-03-04 2021-06-25 嘉兴丰鸟科技有限公司 Python security extension method based on script cross compilation
CN113051651A (en) * 2021-04-02 2021-06-29 西安建筑科技大学 Materialization expression method of steel bar broken material node information
CN113470178A (en) * 2020-12-15 2021-10-01 北京构力科技有限公司 Method for generating three-dimensional building model, electronic device and storage medium
CN114357576A (en) * 2021-12-24 2022-04-15 宁波市政工程建设集团股份有限公司 Revit and Dynamo variable-section bridge railing column-based creating method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040838A1 (en) * 2016-08-29 2018-03-08 广州地铁设计研究院有限公司 Modeling and designing method for elevated structure bim model
CN108304631A (en) * 2018-01-22 2018-07-20 北京市公路桥梁建设集团锐诚工程试验检测有限公司 A kind of BIM parameterization design methods of bridge superstructure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040838A1 (en) * 2016-08-29 2018-03-08 广州地铁设计研究院有限公司 Modeling and designing method for elevated structure bim model
CN108304631A (en) * 2018-01-22 2018-07-20 北京市公路桥梁建设集团锐诚工程试验检测有限公司 A kind of BIM parameterization design methods of bridge superstructure

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李庶安 等: "Dynamo在桥梁缓和曲线段建模应用研究", 公路交通科技(应用技术版), no. 04 *
杜一丛;王亮;: "基于BIM参数化在桥梁工程设计阶段应用初探", 建筑结构, no. 2 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470178A (en) * 2020-12-15 2021-10-01 北京构力科技有限公司 Method for generating three-dimensional building model, electronic device and storage medium
CN113031931A (en) * 2021-03-04 2021-06-25 嘉兴丰鸟科技有限公司 Python security extension method based on script cross compilation
CN113051651A (en) * 2021-04-02 2021-06-29 西安建筑科技大学 Materialization expression method of steel bar broken material node information
CN114357576A (en) * 2021-12-24 2022-04-15 宁波市政工程建设集团股份有限公司 Revit and Dynamo variable-section bridge railing column-based creating method
CN114357576B (en) * 2021-12-24 2024-04-26 宁波市政工程建设集团股份有限公司 Method for creating variable cross-section bridge Liang Langan upright post based on Revit and Dynamo

Also Published As

Publication number Publication date
CN111724476B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN111724476A (en) Dynamo and Python-based rapid modeling method for special-shaped bridge pier
CN111063030B (en) Dynamo-based BIM parameterized modeling method and device
CN112560154B (en) Highway tunnel engineering BIM model dynamic creation method based on Unity platform
CN109800536A (en) One kind parameterizing tunnel model fast modeling method based on Revit and Dynamo
CN110362887A (en) A kind of fast modeling method based on Revit
CN108520138B (en) Block discrete element model generation method based on progressive finite element mesh and segmentation method
CN111274632A (en) Construction method of BIM (building information modeling) parameterized modeling platform for highway engineering
CN111310278A (en) Ship automatic modeling method based on simulation
CN104392013A (en) Integrated modeling and calculating system and method for substation-project cable trench on basis of CAD (Computer-Aided Design)
CN110188423A (en) A kind of linear engineering structure fast B IM modeling method based on FEM meshing
CN114065357A (en) Revit-based segment assembly bridge modeling method and system
CN112785707B (en) BIM-based three-dimensional geological automatic modeling method
CN110990923A (en) Rapid engineering calculation method, system and medium for hyperbolic arch dam of water conservancy and hydropower engineering
CN107145643A (en) The intelligent design system and design method of a kind of metal plate sculpture type face steelframe
CN117745968A (en) Method and system for creating geological model
CN117708943A (en) BIM-based tunnel generation method and tunnel deepening system
CN113487737A (en) Reverse modeling preassembly method based on BIM and holographic visual point cloud fusion
CN108763767B (en) VR engine-oriented large-data-volume IGS industrial model POLYGON conversion method
CN111985014A (en) Modeling method and system based on standard atlas
CN116226970A (en) Method for establishing slope BIM model based on 3DEXPERIENCE platform
CN114202642A (en) Method and device for filling oversized holes in three-dimensional triangulation network model
CN114352290A (en) Tunnel construction guiding method, platform, system and operation method
Dimitrov et al. Specific opportunities through CAD systems for profiling a real involute curves of a spur gear
CN107256004A (en) Product processing method and device
CN113779684B (en) Revit-based roadbed slope lattice beam construction model construction method

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