CN106874610A - A kind of sloping core earth and rockfill dam modeling method based on VB and CATIA - Google Patents
A kind of sloping core earth and rockfill dam modeling method based on VB and CATIA Download PDFInfo
- Publication number
- CN106874610A CN106874610A CN201710106292.0A CN201710106292A CN106874610A CN 106874610 A CN106874610 A CN 106874610A CN 201710106292 A CN201710106292 A CN 201710106292A CN 106874610 A CN106874610 A CN 106874610A
- Authority
- CN
- China
- Prior art keywords
- dam
- catia
- command
- axis
- modeling method
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000013461 design Methods 0.000 claims abstract description 36
- 239000011435 rock Substances 0.000 claims description 20
- 238000011144 upstream manufacturing Methods 0.000 claims description 8
- 239000007787 solid Substances 0.000 claims description 6
- 238000003032 molecular docking Methods 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 10
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 abstract description 8
- 238000012800 visualization Methods 0.000 abstract description 4
- 238000011960 computer-aided design Methods 0.000 description 7
- 238000010276 construction Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000005457 optimization Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000012937 correction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 102100032282 26S proteasome non-ATPase regulatory subunit 14 Human genes 0.000 description 2
- 101000590281 Homo sapiens 26S proteasome non-ATPase regulatory subunit 14 Proteins 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003252 repetitive effect Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000000844 transformation Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010921 in-depth analysis Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000011229 interlayer Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/23—Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Architecture (AREA)
- Civil Engineering (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Road Paving Structures (AREA)
Abstract
Description
技术领域technical field
本发明涉及水利工程的计算机辅助设计技术领域,特别是一种基于VB(VisualBasic)和CATIA的斜心墙土石坝建模方法。The invention relates to the technical field of computer-aided design of water conservancy projects, in particular to a modeling method for earth-rock dams with oblique core walls based on VB (Visual Basic) and CATIA.
背景技术Background technique
在世界上第一台计算机问世后,计算机技术以惊人的速度发展,计算机辅助设计(CAD)技术已深入应用到相关领域,传统尺规作图也基本退出历史舞台。在计算机技术日臻成熟的今天,二维CAD技术在水利行业工程中也得到了广泛应用。目前的设计模式高度成熟,具有完备的制图规范,且各对象不包含模型信息、对象之间不存在逻辑关系,故设计方法简单,但其直观性和纠错能力差、编辑修改复杂繁琐。After the world's first computer came out, computer technology developed at an astonishing speed. Computer-aided design (CAD) technology has been deeply applied to related fields, and traditional drawing with rulers and compasses has basically withdrawn from the stage of history. Today, with the maturity of computer technology, two-dimensional CAD technology has also been widely used in water conservancy industry engineering. The current design pattern is highly mature, has complete drawing specifications, and each object does not contain model information, and there is no logical relationship between objects, so the design method is simple, but its intuition and error correction ability are poor, and editing and modification are complicated and cumbersome.
随着数字化的发展,基于三维的CAD技术开始得到应用,三维设计的集成化、智能化、可视化、网络化、并行化等优势得以展现,是技术进步的必然趋势。目前国内外流行的三维设计软件有很多,CATIA是在市场上有较为影响力的一款。CATIA是法国达索公司开发的一款集CAD/CAE/CAM于一体的BIM(建筑信息模型)软件,具有强大的实体建模和曲面建模功能,可通过参数化建模实现所有对象的建立与修改。该软件目前正广泛应用于航空航天、汽车制造、造船、机械制造等众多行业和领域。由于缺乏普遍适用的统一规范和水利工程具有唯一性及复杂性,三维设计方法的应用依旧呈现出一种较为落后的状态,CATIA在水利行业的运用也尚未得到普及。With the development of digitalization, 3D-based CAD technology has begun to be applied, and the advantages of 3D design such as integration, intelligence, visualization, networking, and parallelization have been displayed, which is an inevitable trend of technological progress. At present, there are many popular 3D design software at home and abroad, and CATIA is a relatively influential one in the market. CATIA is a BIM (Building Information Modeling) software integrating CAD/CAE/CAM developed by Dassault, France. It has powerful solid modeling and surface modeling functions, and can realize the establishment of all objects through parametric modeling. with modification. The software is currently being widely used in aerospace, automobile manufacturing, shipbuilding, machinery manufacturing and many other industries and fields. Due to the lack of universally applicable unified norms and the uniqueness and complexity of water conservancy projects, the application of 3D design methods is still in a relatively backward state, and the application of CATIA in the water conservancy industry has not yet been popularized.
水利工程坝址处的地质条件复杂,不易勘察清楚,在初步设计阶段的设计方案不一定为最佳方案。在施工过程中,随着施工的深入,地质条件进一步明了,潜在的软弱夹层或低强度岩基才会暴露出来。故由于地址条件的不确定性,建筑物的结构形式和尺寸及坝轴线位置等参数都有调整的可能性。由于水利工程的复杂性,在施工过程中各结构之间的局部矛盾也时有发生。这些问题在传统的二维设计模式下将产生较大工程量,不利于提升设计效率。因此传统设计模式的表现方式抽象,纠错能力低下,极大限制了设计效率的提升。The geological conditions at the dam site of hydraulic projects are complex and difficult to investigate clearly. The design scheme in the preliminary design stage may not be the best scheme. During the construction process, as the construction progresses and the geological conditions become clearer, potential weak interlayers or low-strength rock foundations will be exposed. Therefore, due to the uncertainty of the site conditions, parameters such as the structural form and size of the building and the position of the dam axis have the possibility of adjustment. Due to the complexity of water conservancy projects, local contradictions among various structures also occur from time to time during the construction process. These problems will generate a large amount of engineering in the traditional two-dimensional design mode, which is not conducive to improving design efficiency. Therefore, the traditional design pattern has an abstract expression method and low error correction ability, which greatly limits the improvement of design efficiency.
发明内容Contents of the invention
本发明所要解决的技术问题是克服现有技术的不足而提供一种基于VB和CATIA的斜心墙土石坝建模方法,基于VB和CATIA的信息化建模方法,利用了软件的二次开发、参数化及三维可视化特性,提高水利工程的设计效率。The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a VB and CATIA-based modeling method for oblique core wall earth-rock dams, based on the VB and CATIA information modeling method, utilizing the secondary development of software , parametric and 3D visualization features, improve the design efficiency of water conservancy projects.
本发明为解决上述技术问题采用以下技术方案:The present invention adopts the following technical solutions for solving the problems of the technologies described above:
根据本发明提出的一种基于VB和CATIA的土石坝信息化建模方法,包括以下步骤:A kind of earth-rock dam information modeling method based on VB and CATIA proposed according to the present invention comprises the following steps:
步骤一、基于已有的地形地质资料建立三维地形模型;Step 1. Establishing a three-dimensional terrain model based on existing topographic and geological data;
步骤二、关联VB与CATIA,用于实现VB与CATIA的参数对接,保证VB能够识别CATIA的关键字和VB中的代码能在CATIA中执行;Step 2, associating VB and CATIA, used to realize the parameter docking of VB and CATIA, to ensure that VB can recognize the keywords of CATIA and the code in VB can be executed in CATIA;
步骤三、在VB中设计包含位置控制参数和形状控制参数的VB界面,位置控制参数和形状控制参数将通过VB界面的文本框输入;所述位置控制参数为坝轴线端点坐标;Step 3, design the VB interface that comprises position control parameter and shape control parameter in VB, position control parameter and shape control parameter will be input by the text box of VB interface; Described position control parameter is the dam axis end point coordinate;
步骤四、编写代码,根据坝轴线端点坐标创建坝轴线;Step 4. Write the code to create the dam axis according to the coordinates of the end points of the dam axis;
步骤五、在VB中基于步骤四中建立的坝轴线实现坝体剖面的草图编辑和实体拉伸,并基于步骤一中建立的三维地形模型实现布尔命令,并引用VB界面的文本框中的参数,完成坝体的建模。Step 5. In VB, based on the dam axis established in Step 4, realize the sketch editing and entity stretching of the dam body section, and realize the Boolean command based on the 3D terrain model established in Step 1, and refer to the parameters in the text box of the VB interface , to complete the modeling of the dam body.
作为本发明所述的一种基于VB和CATIA的土石坝信息化建模方法进一步优化方案,所述步骤一具体如下:根据已有地形图提取等高线的坐标点,然后将所有的坐标点导入CATIA并拟合成曲面,以该曲面为限制生成三维地形模型。As a further optimization scheme of an earth-rock dam information modeling method based on VB and CATIA described in the present invention, the step one is specifically as follows: extract the coordinate points of the contour line according to the existing topographic map, and then convert all the coordinate points Import CATIA and fit it into a surface, and use the surface as a limit to generate a 3D terrain model.
作为本发明所述的一种基于VB和CATIA的土石坝信息化建模方法进一步优化方案,所述步骤四具体如下:根据步骤三中的坝轴线端点坐标,在VB代码编写窗口中通过Set命令获取CATIA中的三维地形模型,通过AddNewPointCoord命令创建坝轴线端点坐标的相应点,通过AddNewLinePtPt命令创建坝轴线。As a further optimization scheme of an earth-rock dam information modeling method based on VB and CATIA according to the present invention, the step four is specifically as follows: according to the coordinates of the dam axis end points in the step three, in the VB code writing window, pass the Set command Get the 3D terrain model in CATIA, create the corresponding point of the coordinates of the end point of the dam axis through the AddNewPointCoord command, and create the dam axis through the AddNewLinePtPt command.
作为本发明所述的一种基于VB和CATIA的土石坝信息化建模方法进一步优化方案,所述步骤五具体如下:通过Set命令获取CATIA中的三维地形模型和坝轴线,并基于坝轴线创建一与坝轴线垂直的平面,通过Set reference命令获取该平面并将其作为参考平面,通过CreatePoint命令和CreateLine命令在该参考平面上绘制坝体各部分的二维草图,通过constraint命令使用步骤三中的形状控制参数对二维草图的轮廓尺寸进行约束,使坝壳、心墙和棱体排水的尺寸与所述步骤三中的形状控制参数一致,通过pad命令对二维草图进行拉伸形成实体,最后用布尔命令减去该实体与步骤一中的三维地形模型的重合部分,完成坝体设计。As a further optimization scheme of an earth-rock dam information modeling method based on VB and CATIA according to the present invention, the step five is specifically as follows: Obtain the three-dimensional terrain model and dam axis in CATIA through the Set command, and create based on the dam axis A plane perpendicular to the axis of the dam. Use the Set reference command to obtain the plane and use it as a reference plane. Use the CreatePoint command and CreateLine command to draw a 2D sketch of each part of the dam body on the reference plane. Use the constraint command to use step 3 The shape control parameters of the two-dimensional sketch are constrained to the outline size, so that the dimensions of the dam shell, core wall and prism drainage are consistent with the shape control parameters in step 3, and the two-dimensional sketch is stretched to form a solid by pad command , and finally use the Boolean command to subtract the overlapping part of the entity and the 3D terrain model in step 1 to complete the design of the dam.
作为本发明所述的一种基于VB和CATIA的土石坝信息化建模方法进一步优化方案,所述形状控制参数包括各坝顶高程和宽度、马道顶部高程和宽度、坝体上下游坡度以及心墙顶部高程和上下游坡度;所述马道顶部高程和宽度包括排水棱体的顶部高程和宽度,所述坝体上下游坡度包括排水棱体的坡度。As a further optimization scheme of an earth-rock dam information modeling method based on VB and CATIA according to the present invention, the shape control parameters include the elevation and width of each dam crest, the elevation and width of the top of the horseway, the upstream and downstream slopes of the dam body, and the center Wall top elevation and upstream and downstream slopes; the top elevation and width of the horseway include the top elevation and width of the drainage prism, and the upstream and downstream slopes of the dam body include the slope of the drainage prism.
本发明采用以上技术方案与现有技术相比,具有以下技术效果:Compared with the prior art, the present invention adopts the above technical scheme and has the following technical effects:
(1)本发明改变了传统二维建模的直观性不足的问题,通过三维模型,将设计对象更富有立体感地展示出来;解决了利用二维的CAD技术制图时,因必要的反复修改导致大量重复工作的问题;在设计理念和方式上改变了传统的设计模式,从信息化的角度使设计效率得到根本的提升,使设计成果更加准确;对本建模方法建立的模型进行更深层次的利用,可产生更高的效率效益;(1) The present invention has changed the problem of lack of intuition in traditional two-dimensional modeling. Through the three-dimensional model, the design object is displayed in a more three-dimensional sense; it solves the need for repeated revisions when using two-dimensional CAD technology Problems that lead to a lot of repetitive work; the traditional design pattern has been changed in terms of design concepts and methods, and the design efficiency has been fundamentally improved from the perspective of informatization, making the design results more accurate; the model established by this modeling method has been carried out in a deeper level. Utilization can produce higher efficiency benefits;
(2)本发明以CATIA的三维建模功能为核心,将设计对象以直观的三维模型呈现,使模型清晰直观,更加方便设计者阐述自己的设计理念;基于CATIA的进程外程序调用接口,通过VB语言对CATIA进行二次开发,形成了一种模型参数易修改,模型生成自动化的信息化建模方式,减少了重复工作,提高了设计质量;(2) The present invention takes the three-dimensional modeling function of CATIA as the core, and presents the design object as an intuitive three-dimensional model, so that the model is clear and intuitive, and it is more convenient for the designer to explain his design concept; based on the CATIA-based out-of-process program call interface, through Secondary development of CATIA with VB language forms an informational modeling method with easy modification of model parameters and automatic model generation, which reduces repetitive work and improves design quality;
(3)本发明所述的一种基于VB和CATIA的土石坝信息化建模方法,不仅适用于土石坝,也适用于诸如重力坝、拱坝、支墩坝等基本坝型;同时,基于本发明所建立的模型也可进一步进行填筑量计算、有限元分析及生成二维工程图等工作;总之,由于本发明基于信息化的建模理念具有很好的普适性,可应用于多种坝型,甚至各种水工结构,所建立的模型不仅仅局限于结构展示,也可基于该模型进行深层次的分析,在水利行业具有很好的应用前景。(3) The VB and CATIA-based information modeling method for earth-rock dams described in the present invention is not only applicable to earth-rock dams, but also to basic dam types such as gravity dams, arch dams, and buttress dams; meanwhile, based on The model established by the present invention can also be further used for calculation of filling volume, finite element analysis, and generation of two-dimensional engineering drawings; Various dam types, and even various hydraulic structures, the established models are not limited to structural display, but also can be used for in-depth analysis based on the model, which has a good application prospect in the water conservancy industry.
附图说明Description of drawings
图1为本发明的方法流程图;Fig. 1 is method flowchart of the present invention;
图2为本发明的VB界面图;Fig. 2 is the VB interface figure of the present invention;
图3为本发明的坝体三维模型图;Fig. 3 is the three-dimensional model figure of dam body of the present invention;
图4为本发明的整体模型布置图。Fig. 4 is an overall model layout diagram of the present invention.
附图中的标记解释为:1为坝轴线,2为坝壳,3为心墙,4为排水棱体,5为三维地形模型。The symbols in the drawings are interpreted as: 1 is the dam axis, 2 is the dam shell, 3 is the core wall, 4 is the drainage prism, and 5 is the three-dimensional terrain model.
具体实施方式detailed description
下面结合附图对本发明的技术方案做进一步的详细说明:Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail:
本发明的保护范围并不仅仅局限于本实施方式的描述。The protection scope of the present invention is not limited only to the description of this embodiment.
一种基于VB和CATIA的土石坝信息化建模方法,如图1所示流程,具体步骤如下:A VB and CATIA-based information modeling method for earth-rock dams, as shown in Figure 1, the specific steps are as follows:
步骤一、基于已有的地形地质资料建立如图4所示的三维地形模型5:Step 1. Establish a three-dimensional terrain model 5 as shown in FIG. 4 based on the existing topographic and geological data:
根据已有地形图提取等高线的坐标点,然后将所有坐标点导入CATIA并拟合成曲面,以该曲面为限制生成三维地形模型。Extract the coordinate points of the contour line according to the existing topographic map, then import all the coordinate points into CATIA and fit them into a surface, and use the surface as a limit to generate a 3D terrain model.
步骤二、关联VB与CATIA:Step 2. Associate VB and CATIA:
在VB中根据需要引用相关的CATIA库文件,并通过代码关联VB与CATIA,实现VB与CATIA的参数对接,保证在后续的二次开发中VB能识别CATIA的关键字和VB中的代码能在CATIA中执行。关联代码如下:Reference the relevant CATIA library files in VB as needed, and associate VB and CATIA through codes to realize the parameter connection between VB and CATIA, so as to ensure that VB can recognize CATIA keywords and codes in VB in the subsequent secondary development. Executed in CATIA. The associated code is as follows:
Dim catia As ObjectDim catia As Object
On Error Resume NextOn Error Resume Next
Set catia = GetObject(, "catia.application")Set catia = GetObject(, "catia. application")
If Err.Number <> 0 ThenIf Err.Number <> 0 Then
Set catia = CreateObject("catia.application") Set catia = CreateObject("catia. application")
catia.Visible = True catia.Visible = True
End IfEnd If
On Error GoTo 0On Error GoTo 0
步骤三、在VB中设计包含位置控制参数和形状控制参数的如图2所示的VB界面:Step 3, design the VB interface shown in Figure 2 that includes position control parameters and shape control parameters in VB:
位置控制参数为坝轴线端点坐标;形状控制参数包括坝顶高程和宽度、马道顶部高程和宽度、坝体上下游坡度以及心墙顶部高程和上下游坡度;马道顶部高程和宽度包括排水棱体的顶部高程和宽度,坝体上下游坡度包括排水棱体的坡度。The position control parameters are the coordinates of the endpoints of the dam axis; the shape control parameters include the elevation and width of the dam crest, the elevation and width of the top of the horseway, the upstream and downstream slopes of the dam body, and the top elevation and upstream and downstream slope of the core wall; the top elevation and width of the horseway include the height and width of the drainage prism The top elevation and width, the upstream and downstream slopes of the dam body include the slope of the drainage prism.
以上参数将通过VB界面的文本框输入,保证二次开发中的参数可变性。此外,再设置命令控件保证命令调用的完整性。The above parameters will be entered through the text box of the VB interface to ensure the variability of the parameters in the secondary development. In addition, set the command control to ensure the integrity of the command call.
步骤四、编写代码,根据坝轴线端点坐标创建坝轴线1:Step 4. Write the code to create the dam axis 1 according to the coordinates of the end points of the dam axis:
根据步骤三中的坝轴线端点坐标,在VB代码编写窗口中通过“Set”命令获取CATIA中的已有对象——三维地形模型,通过“AddNewPointCoord”命令创建坝轴线端点坐标的相应点,通过“AddNewLinePtPt”命令创建坝轴线,完成创建坝轴线的二次开发过程。其中,由于VB与CATIA的连接,VB中的代码能在CATIA中执行。部分关键代码如下:According to the coordinates of the end point of the dam axis in step 3, in the VB code writing window, use the "Set" command to obtain the existing object in CATIA—the 3D terrain model, and use the "AddNewPointCoord" command to create the corresponding point of the dam axis end coordinates. AddNewLinePtPt" command to create the dam axis, and complete the secondary development process of creating the dam axis. Among them, due to the connection between VB and CATIA, the code in VB can be executed in CATIA. Some key codes are as follows:
‘使用Open打开地形的三维模型所在的完整路径后,再获取Part对象'Use Open to open the complete path of the 3D model of the terrain, and then get the Part object
Set partDocument1 = catia.Documents.Open(“完整文件路径”)Set partDocument1 = catia.Documents.Open("full file path")
Set part1 = partDocument1.PartSet part1 = partDocument1. Part
……………………
‘以VB中的坝轴线端点坐标创建两个点 'Create two points with the coordinates of the end point of the dam axis in VB
Set hybridShapePointCoord1 = hybridShapeFactory1.AddNewPointCoord(Val(X1.Text), Val(Y1.Text), Val(Z1.Text))Set hybridShapePointCoord1 = hybridShapeFactory1.AddNewPointCoord(Val(X1.Text), Val(Y1.Text), Val(Z1.Text))
……………………
Set hybridShapePointCoord2 = Set hybridShapePointCoord2 =
hybridShapeFactory1.AddNewPointCoord(Val(X2.Text), Val(Y2.Text), Val(Z2.Text))hybridShapeFactory1.AddNewPointCoord(Val(X2.Text), Val(Y2.Text), Val(Z2.Text))
……………………
‘将创建的两个点连成线,即坝轴线'Connect the two points created into a line, that is, the axis of the dam
Set hybridShapeLinePtPt1 = hybridShapeFactory1.AddNewLinePtPt(reference1, reference2) Set hybridShapeLinePtPt1 = hybridShapeFactory1. AddNewLinePtPt(reference1, reference2)
……………………
步骤五、在VB中基于步骤四中建立的坝轴线实现坝体剖面的草图编辑和实体拉伸,并基于步骤一中建立的三维地形模型实现布尔命令,并引用VB界面文本框中的形状控制参数,完成如图3所示的坝体三维模型设计:Step 5. In VB, based on the dam axis established in Step 4, realize the sketch editing and entity stretching of the dam body section, and implement Boolean commands based on the 3D terrain model established in Step 1, and refer to the shape control in the text box of the VB interface parameters, complete the 3D model design of the dam body as shown in Figure 3:
本部分的代码主要由坝壳2、心墙3及棱体排水4三部分组成,三部分的代码编写思路类似。即在VB中通过Set命令获取CATIA中的已有对象——三维地形模型和坝轴线,并基于坝轴线创建一与坝轴线垂直的平面,然后在VB中通过Set reference获取该平面作为参考平面,通过CreatePoint和CreateLine命令在该参考平面上绘制坝体各部分的二维草图,通过constraint命令使用步骤三中的形状控制参数对二维草图的轮廓尺寸进行约束,使坝壳、心墙和棱体排水的尺寸和所述步骤三中的形状控制参数一致,,再用pad命令对二维草图进行拉伸形成实体,最后用布尔命令减去该实体与三维地形模型的重合部分,完成坝体设计。其中,由于VB与CATIA的连接,VB中的代码能在CATIA中执行。部分关键代码如下:The code of this part is mainly composed of three parts: dam shell 2, core wall 3 and prism drainage 4. The code writing ideas of the three parts are similar. That is, the existing objects in CATIA—the 3D terrain model and the dam axis are obtained through the Set command in VB, and a plane perpendicular to the dam axis is created based on the dam axis, and then the plane is obtained as a reference plane through Set reference in VB, Use the CreatePoint and CreateLine commands to draw the 2D sketches of each part of the dam body on the reference plane, and use the constraint command to use the shape control parameters in step 3 to constrain the outline size of the 2D sketches, so that the dam shell, core wall and prism The size of the drainage is consistent with the shape control parameters in the third step, and then use the pad command to stretch the 2D sketch to form a solid, and finally use the Boolean command to subtract the overlapping part of the solid and the 3D terrain model to complete the design of the dam . Among them, due to the connection between VB and CATIA, the code in VB can be executed in CATIA. Some key codes are as follows:
‘创建一个垂直于坝轴线的工作平面,用于创建草图 'Create a work plane perpendicular to the axis of the dam, used to create the sketch
Set reference2 = hybridShapes2.Item("Plane.4")Set reference2 = hybridShapes2.Item("Plane.4")
……………………
‘通过创建点和线来绘制草图'Sketch by creating points and lines
Set point2D1 = factory2D1.CreatePoint(-632.476, 2825#)Set point2D1 = factory2D1.CreatePoint(-632.476, 2825#)
Set line2D14 = factory2D1.CreateLine(-719.976, 2790#, -632.476, 2825#)Set line2D14 = factory2D1.CreateLine(-719.976, 2790#, -632.476, 2825#)
……………………
‘用VB界面中对应的文本框参数对草图进行约束'Use the corresponding text box parameters in the VB interface to constrain the sketch
Set reference15 = part1.CreateReferenceFromObject(point2D10)Set reference15 = part1.CreateReferenceFromObject(point2D10)
Set reference16 = part1.CreateReferenceFromObject(point2D11)Set reference16 = part1.CreateReferenceFromObject(point2D11)
Set reference17 = part1.CreateReferenceFromObject(line2D1)Set reference17 = part1.CreateReferenceFromObject(line2D1)
Set constraint7 = constraints1.AddTriEltCst(catCstTypeDistance,reference15, reference16, reference17)Set constraint7 = constraints1. AddTriEltCst(catCstTypeDistance, reference15, reference16, reference17)
constraint7.Mode = catCstModeDrivingDimensionconstraint7.Mode = catCstModeDrivingDimension
Set Length1 = constraint7.DimensionSet Length1 = constraint7. Dimension
Length1.Value = m(2) * (h(1) - Val(h_base))Length1.Value = m(2) * (h(1) - Val(h_base))
‘使用凸台命令拉伸'Extrude using the Boss command
………………………………
Set shapeFactory1 = part1.ShapeFactorySet shapeFactory1 = part1.ShapeFactory
Set pad1 = shapeFactory1.AddNewPad(sketch1, 235#)Set pad1 = shapeFactory1. AddNewPad(sketch1, 235#)
Set limit1 = pad1.SecondLimitSet limit1 = pad1. SecondLimit
Set length19 = limit1.DimensionSet length19 = limit1. Dimension
length19.Value = 300#length19. Value = 300#
………………………………
因此,将CATIA的三维建模功能引入到水利工程中显得有一定的必要性,不仅能有效解决二维图的直观性问题,也能利用其强大的纠错能力大幅度提升设计效率。同时,基于VB可对CATIA进行二次开发的特性,可进一步将所有参数在VB界面中体现,可实现在参数化建模中模型参数的清晰呈现且易于修改。Therefore, it is necessary to introduce the 3D modeling function of CATIA into hydraulic engineering, which can not only effectively solve the intuitive problem of 2D drawing, but also greatly improve the design efficiency by using its powerful error correction ability. At the same time, based on the characteristics of secondary development of CATIA based on VB, all parameters can be further reflected in the VB interface, which can realize the clear presentation and easy modification of model parameters in parametric modeling.
从普遍意义上来讲,本发明涉及的建模方法,适用于水利工程中的所有基础坝型。特别地,本专利针对斜心墙土石坝进行说明。土石坝是目前世界坝工建设工程中应用最为广泛和发展最快的一种坝型,在经济和施工方面较其他坝型由较大优势。斜心墙土石坝是土石坝的一种,其斜墙与坝壳之间的施工干扰较心墙坝小,但抗震性及对不均匀沉降的适应性不足。在设计和建坝过程中,填筑量是应着重关注的部分,但在传统的设计模式下的计算过程复杂、结果粗糙,基于本专利建立的模型进行体积测量,可有效解决此问题。此外,基于本发明建立的模型可与有限元软件结合,实现功能互补,也可利用三维模型出二维工程图,进一步产生更高的设计效率。Generally speaking, the modeling method involved in the present invention is applicable to all foundation dam types in hydraulic engineering. In particular, this patent describes an earth-rock dam with inclined core walls. Earth-rock dam is currently the most widely used and fastest-growing dam type in dam construction projects in the world. It has greater advantages in economy and construction than other dam types. An earth-rock dam with inclined core wall is a kind of earth-rock dam. The construction interference between the inclined wall and the dam shell is smaller than that of the core wall dam, but its seismic resistance and adaptability to uneven settlement are insufficient. In the process of design and dam construction, the amount of filling should be paid attention to. However, in the traditional design mode, the calculation process is complicated and the result is rough. The volume measurement based on the model established in this patent can effectively solve this problem. In addition, the model established based on the present invention can be combined with finite element software to achieve functional complementarity, and the three-dimensional model can also be used to generate two-dimensional engineering drawings, further generating higher design efficiency.
基于VB和CATIA的信息化建模方法,利用了软件的二次开发、参数化及三维可视化特性,可避免目前水利工程设计模式的缺点,提高效率。并且,基于本专利建立的模型还可进行进一步的分析计算。因此,将这种信息化建模方式引入到水利工程中,是有意义的。The information modeling method based on VB and CATIA utilizes the secondary development, parameterization and three-dimensional visualization characteristics of the software, which can avoid the shortcomings of the current hydraulic engineering design mode and improve efficiency. Moreover, further analysis and calculation can be performed based on the model established in this patent. Therefore, it is meaningful to introduce this information modeling method into hydraulic engineering.
以上详细描述了本发明的优选实施方式,但是,本发明并不限于上述实施方式中的具体细节,在本发明的技术构思范围内,可以对本发明的技术方案进行多种等同变换,这些等同变换均属于本发明的保护范围。The preferred embodiments of the present invention have been described in detail above, but the present invention is not limited to the specific details in the above embodiments. Within the scope of the technical concept of the present invention, various equivalent transformations can be carried out to the technical solutions of the present invention. These equivalent transformations All belong to the protection scope of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710106292.0A CN106874610A (en) | 2017-02-27 | 2017-02-27 | A kind of sloping core earth and rockfill dam modeling method based on VB and CATIA |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710106292.0A CN106874610A (en) | 2017-02-27 | 2017-02-27 | A kind of sloping core earth and rockfill dam modeling method based on VB and CATIA |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106874610A true CN106874610A (en) | 2017-06-20 |
Family
ID=59167870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710106292.0A Pending CN106874610A (en) | 2017-02-27 | 2017-02-27 | A kind of sloping core earth and rockfill dam modeling method based on VB and CATIA |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106874610A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657290A (en) * | 2018-11-28 | 2019-04-19 | 中国电建集团贵阳勘测设计研究院有限公司 | Core wall dam design method based on CATIA and Excel |
CN109859317A (en) * | 2019-02-17 | 2019-06-07 | 四川汶马高速公路有限责任公司 | A kind of 3DGIS relief model fast modeling method based on CASS and CATIA |
CN110188423A (en) * | 2019-05-16 | 2019-08-30 | 广西交通设计集团有限公司 | A kind of linear engineering structure fast B IM modeling method based on FEM meshing |
CN110287559A (en) * | 2019-06-13 | 2019-09-27 | 水电水利规划设计总院 | A method for mining planning of soil material field based on multi-dimensional information model |
CN110984078A (en) * | 2019-12-12 | 2020-04-10 | 中国电建集团中南勘测设计研究院有限公司 | Method for calculating dam crest superelevation of core earth-rock dam |
CN111339607A (en) * | 2020-02-28 | 2020-06-26 | 北京航空航天大学 | D-shaped girder blade modeling method and system |
CN111950067A (en) * | 2020-08-31 | 2020-11-17 | 天津大学 | BIM-based earth and rockfill dam construction progress dynamic visual simulation method |
CN115146363B (en) * | 2022-07-26 | 2023-04-18 | 中铁长江交通设计集团有限公司 | Civil 3D-based damming structure and construction drawing creation method |
CN116863091A (en) * | 2023-06-30 | 2023-10-10 | 中水珠江规划勘测设计有限公司 | Method and device for creating three-dimensional model of earth-rock dam and extracting engineering quantity |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657510A (en) * | 2015-03-19 | 2015-05-27 | 中铁二局第五工程有限公司 | Method and device for realizing rapid steel truss arch bridge modeling by utilizing BIM |
CN105335553A (en) * | 2015-09-30 | 2016-02-17 | 郑州大学 | Lightweight class three-dimensional simulation teaching platform construction method |
-
2017
- 2017-02-27 CN CN201710106292.0A patent/CN106874610A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657510A (en) * | 2015-03-19 | 2015-05-27 | 中铁二局第五工程有限公司 | Method and device for realizing rapid steel truss arch bridge modeling by utilizing BIM |
CN105335553A (en) * | 2015-09-30 | 2016-02-17 | 郑州大学 | Lightweight class three-dimensional simulation teaching platform construction method |
Non-Patent Citations (2)
Title |
---|
钟登华 等: "基于CATIA 的心墙堆石坝施工动态仿真", 《天津大学学报(自然科学与工程技术版)》 * |
陈振艺: "用VB对Catia软件进行简单的二次开发", 《轮胎工业》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657290A (en) * | 2018-11-28 | 2019-04-19 | 中国电建集团贵阳勘测设计研究院有限公司 | Core wall dam design method based on CATIA and Excel |
CN109859317A (en) * | 2019-02-17 | 2019-06-07 | 四川汶马高速公路有限责任公司 | A kind of 3DGIS relief model fast modeling method based on CASS and CATIA |
CN109859317B (en) * | 2019-02-17 | 2022-08-16 | 四川汶马高速公路有限责任公司 | 3DGIS terrain model rapid modeling method based on CASS and CATIA |
CN110188423B (en) * | 2019-05-16 | 2022-08-09 | 广西交通设计集团有限公司 | Linear engineering structure rapid BIM modeling method based on finite element meshing |
CN110188423A (en) * | 2019-05-16 | 2019-08-30 | 广西交通设计集团有限公司 | A kind of linear engineering structure fast B IM modeling method based on FEM meshing |
CN110287559A (en) * | 2019-06-13 | 2019-09-27 | 水电水利规划设计总院 | A method for mining planning of soil material field based on multi-dimensional information model |
CN110287559B (en) * | 2019-06-13 | 2023-04-07 | 水电水利规划设计总院 | Multi-dimensional information model-based earth stock ground mining planning method |
CN110984078A (en) * | 2019-12-12 | 2020-04-10 | 中国电建集团中南勘测设计研究院有限公司 | Method for calculating dam crest superelevation of core earth-rock dam |
CN111339607B (en) * | 2020-02-28 | 2022-03-01 | 北京航空航天大学 | A D-shaped girder blade modeling method and system |
CN111339607A (en) * | 2020-02-28 | 2020-06-26 | 北京航空航天大学 | D-shaped girder blade modeling method and system |
CN111950067A (en) * | 2020-08-31 | 2020-11-17 | 天津大学 | BIM-based earth and rockfill dam construction progress dynamic visual simulation method |
CN111950067B (en) * | 2020-08-31 | 2022-09-30 | 天津大学 | BIM-based earth and rockfill dam construction progress dynamic visual simulation method |
CN115146363B (en) * | 2022-07-26 | 2023-04-18 | 中铁长江交通设计集团有限公司 | Civil 3D-based damming structure and construction drawing creation method |
CN116863091A (en) * | 2023-06-30 | 2023-10-10 | 中水珠江规划勘测设计有限公司 | Method and device for creating three-dimensional model of earth-rock dam and extracting engineering quantity |
CN116863091B (en) * | 2023-06-30 | 2024-01-19 | 中水珠江规划勘测设计有限公司 | Method and device for creating three-dimensional model of earth-rock dam and extracting engineering quantity |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106874610A (en) | A kind of sloping core earth and rockfill dam modeling method based on VB and CATIA | |
CN110580376B (en) | Revit and Dynamo-based pile foundation model creation method | |
CN107562833B (en) | Contour-based 3D Discrete Element Numerical Modeling Method for Complex Terrain | |
CN111950051B (en) | BIM-based 3D geological modeling and construction application method based on geological body model | |
US9171400B2 (en) | Creating a surface from a plurality of 3D curves | |
CN111950046B (en) | Drilling data model construction method based on BIM | |
CN110189409B (en) | PLAXIS-based rapid true three-dimensional geological modeling method and system | |
CN113094784B (en) | Adjacent complex underground engineering parametric modeling method based on building information model | |
CN111597610B (en) | Method for realizing rapid modeling of nonstandard parts in BIM design of cement plant by utilizing Dynamo | |
CN109918760B (en) | Revit interoperability-based steel bar modeling method | |
CN111914338B (en) | Method for establishing BIM model of parameterized tunnel open cut tunnel lining structure | |
CN106528942A (en) | Data visualization method based on neutron transport characteristic line theory | |
CN106441221A (en) | Method for treating surveying and mapping cross section based on secondary development of AutoCAD | |
CN112150582B (en) | An Approximate Expression Method of Geological Profiles for Multimodal Data | |
CN112288844A (en) | BIM-based three-dimensional engineering curve automatic fitting method | |
CN115841022B (en) | A data processing method and related equipment based on face rockfill dam | |
CN111445569A (en) | Sedimentary geological evolution dynamic simulation method | |
US8676546B2 (en) | Grading method utilizing flow grade solution | |
CN117333630A (en) | A local implicit incremental update and automatic reconstruction method for 3D geological models | |
CN113076571B (en) | A three-dimensional clothing real-time simulation editing method and system | |
KR102281933B1 (en) | PDMS Apparatus for Designing Offshore Plant and 3 Dimensional modeling method using PDMS | |
CN116628831B (en) | Space geometric figure rapid modeling and volume difference calculation method | |
CN117671182A (en) | Improved three-dimensional geological modeling method based on Kriging interpolation | |
CN109800518B (en) | Three-dimensional CAD model rapid establishing method | |
Xu | Design of Three-Dimensional Model of Trans-regional Water Transport Device for Water Conservancy Projects Based on Cloud |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170620 |