CN109978970A - A kind of underground engineering Automatic Drawing method based on AutoCAD - Google Patents

A kind of underground engineering Automatic Drawing method based on AutoCAD Download PDF

Info

Publication number
CN109978970A
CN109978970A CN201910232245.XA CN201910232245A CN109978970A CN 109978970 A CN109978970 A CN 109978970A CN 201910232245 A CN201910232245 A CN 201910232245A CN 109978970 A CN109978970 A CN 109978970A
Authority
CN
China
Prior art keywords
underground
engineering
autocad
software
common template
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.)
Withdrawn
Application number
CN201910232245.XA
Other languages
Chinese (zh)
Inventor
陈定超
于洋
赵祥岍
朱思宇
滕帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xuzhou University of Technology
Original Assignee
Xuzhou University 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 Xuzhou University of Technology filed Critical Xuzhou University of Technology
Priority to CN201910232245.XA priority Critical patent/CN109978970A/en
Publication of CN109978970A publication Critical patent/CN109978970A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of then the underground engineering Automatic Drawing method based on AutoCAD is finely divided each major class again by being divided into five major class to various underground engineerings;A common template figure is arranged to each big type after completing classification;According to the difference condition between small type each in the major class, determine the variable parameter number of required setting on the common template, and each variable parameter is corresponded using English alphabet respectively, then English alphabet is labeled on common template, forms parameter type engineering drawing;Visual Basic software is connect with AutoCAD software by software interface, when being drawn, corresponding underground engineering major class is selected by the operation interface of Visual Basic software, and each variable parameter occurrence of the type is filled in text box, specific value part each at this time does not correspond to the English alphabet of each variable parameter, finally according to each occurrence to the assignment of each variable parameter, drawing process of the Visual Basic software control AutoCAD software after drawing interface is automatically performed assignment.

Description

A kind of underground engineering Automatic Drawing method based on AutoCAD
Technical field
The present invention relates to a kind of Automatic Drawing method, specifically a kind of underground engineering Automatic Drawing side based on AutoCAD Method.
Background technique
Visual Basic is a kind of general object-based programming language, powerful, and can compared with The application program of exploitation mass height, friendly interface in short time.
AutoCAD nowadays has become field of engineering technology institute indispensable one as a kind of professional cartography software A important drawing tool.And since current China starts to greatly develop underground engineering, wherein Tunnel Engineering be in underground engineering most One of common form.
Tunnel Engineering needs to draw in process of construction a large amount of tunnel figures, these tunnel figures are mainly by engineering technology people at present It is slow to will lead to project progress if drawing personnel are less by AutoCAD manual drawing, this mode inefficiency by member; In order to guarantee project progress, it is therefore desirable to which more drawing personnel consume biggish human resources.It is many in practice process Although it is different that tunnel belongs to same kind tunnel size, structure is very similar, and the size of each class formation It is also proportional.Therefore how to be drawn using computer controlled automatic AutoCAD software, and greatly improve drawing effect Rate reduces engineering time, is the research direction of the industry.
Summary of the invention
In view of the above existing problems in the prior art, the present invention provides a kind of underground engineerings based on AutoCAD to draw automatically Drawing method, it is only necessary to which staff inputs parameter, can make AutoCAD software Automatic Drawing, to effectively improve drawing efficiency, contracts Subtract engineering time.
To achieve the goals above, the technical solution adopted by the present invention is that: a kind of underground engineering based on AutoCAD is automatic Drawing practice, specific steps are as follows:
A, it establishes underground engineering classification: underground engineering is divided into underground pipe gallery, Tunnel Engineering, underground structure, plumbing Engineering and underground storage totally five class, wherein underground pipe gallery includes: main line piping lane, branch line piping lane, cable piping lane;Tunnel Engineering packet It includes: Rectangular Tunnel, horse-shoe tunnel, circular tunnel;Underground structure includes: that market place builet below the ground, underground parking, underground are quick Road, underground square;Water supply and sewage work include: water engineering, drainage system;Underground storage includes: underground water storage library, underground energy Library, underground waste vault, underground food storage;
B, it determines the construction drawing common template of each classification: one is selected respectively to the step A five class underground engineerings divided Common template of the construction drawing as such;
C, determine every class common template for drawing parametric variable number: according to same type underground engineering difference feelings Condition is used for the parametric variable number of drawing to the common template setting of the type, is respectively completed the setting of five class underground engineerings;Institute Stating parametric variable includes length, width, height, arc radius, depth of drainage ditch;
D, according to determining variable parameter number rendering parameter formula engineering drawing: based on common template, using different English Text mother stock does not replace each variable parameter, and according to part dimension ratio each in common template, is represented respectively with English alphabet Point coordinate, part dimension;Each of AutoCAD drawing command can be represented in Visual Basic with program language Come;According to the Prototype drawing that above-mentioned English alphabet indicates, the technique of painting of Prototype drawing is showed in Visual Basic with code;
E, establish automated drafting system platform: establishing software interface, (interface is general-purpose interface, due to general in engineering AutoCAD version is numerous, therefore interface needs to be compatible with all kinds of version AutoCAD softwares), by Visual Basic software with The connection of AutoCAD software quotes AutoCAD component in Visual Basic, specific name is as automated drafting system platform "AutoCAD20XX Type Library";Using Visual Basic as compiler, using AutoCAD as drawing interface, by The type of underground engineering and each variable ginseng of the type common template are drawn needed for the operation pages input of Visual Basic Several occurrence, so that AutoCAD software transfers corresponding common template according to the type of input in drawing interface, and according to defeated The occurrence of each variable parameter of the common template entered, is adjusted the structure of common template, finally in drawing interface Automatically required engineering drawing is drawn out.
Further, Visual Basic software passes through programming and has using AutoCAD software in the step E ActiveX Automation module, to carry out drawing control, detailed process to AutoCAD software are as follows: in Visual Lower engineering type option and the corresponding variable parameter text box of every class underground engineering are configured in the operation interface of Basic software, Engineering type is selectively descended by operation interface and inputs each variable parameter of the type, and Visual Basic software is logical at this time The drawing object in GetObject function and CreateObject function control ActiveXAutomation module is crossed, is realized The Automatic Drawing process of the drawing interface of AutoCAD software (enables each English respectively in Visual Basic software code Letter is equal to the content of text in a text box;User in text box by inputting corresponding variable parameter, and system is certainly It is dynamic that number in each text box is replaced into corresponding English alphabet, and make the English alphabet in Prototype drawing all by corresponding number Word replaces, and the engineering drawing of required size is precisely drawn out in the interface AutoCAD).
Further, the GetObject function is used to access the ActiveX object in file, and the object is assigned to Object variable;The CreateObject function is for creating and returning a reference to ActiveX object.
Further, version number is not added in the ProglD that the GetObject function or CreateObject function use, It can be such that above-mentioned function is not influenced by AutoCAD version, to realize the control generalization to different AutoCAD versions.
Compared with prior art, the present invention combines mode with AutoCAD software using Visual Basic software, passes through Five major class are first divided into various underground engineerings, then each major class is finely divided again;Each big type is set after completing classification Set a common template figure;According to the difference condition between small type each in the major class, set needed for determining on the common template Fixed variable parameter number, and each variable parameter is corresponded using English alphabet respectively, then English alphabet is labeled in On common template, parameter type engineering drawing is formed;Visual Basic software is connect with AutoCAD software by software interface, When being drawn, corresponding underground engineering major class is selected by the operation interface of Visual Basic software, and in text box In fill in each variable parameter occurrence of the type, specific value part each at this time does not correspond to the English words of each variable parameter Mother, finally according to each occurrence to the assignment of each variable parameter, Visual Basic software control AutoCAD software is being drawn Figure interface is automatically performed the drawing process after assignment.
Detailed description of the invention
Fig. 1 is automatic drawing process figure of the invention;
Fig. 2 is the common template figure of branch line style piping lane in the embodiment of the present invention;
Fig. 3 is that drafting figure automatically after variable parameter is determined in the embodiment of the present invention;
Fig. 4 is the parameter type engineering drawing of Rectangular Tunnel in the embodiment of the present invention.
Specific embodiment
The present invention will be further described below.
As shown in Figure 1, specific steps of the invention are as follows:
A, it establishes underground engineering classification: underground engineering is divided into underground pipe gallery, Tunnel Engineering, underground structure, plumbing Engineering and underground storage totally five class, wherein underground pipe gallery includes: main line piping lane, branch line piping lane, cable piping lane;Tunnel Engineering packet It includes: Rectangular Tunnel, horse-shoe tunnel, circular tunnel;Underground structure includes: that market place builet below the ground, underground parking, underground are quick Road, underground square;Water supply and sewage work include: water engineering, drainage system;Underground storage includes: underground water storage library, underground energy Library, underground waste vault, underground food storage;
B, it determines the construction drawing common template of each classification: one is selected respectively to the step A five class underground engineerings divided Common template of the construction drawing as such;It is illustrated in figure 2 the common template of branch line style piping lane;
C, determine every class common template for drawing parametric variable number: according to same type underground engineering difference feelings Condition is used for the parametric variable number of drawing to the common template setting of the type, is respectively completed the setting of five class underground engineerings;Institute Stating parametric variable includes length, width, height, arc radius, depth of drainage ditch;
D, according to determining variable parameter number rendering parameter formula engineering drawing: based on common template, using different English Text mother stock does not replace each variable parameter, and according to part dimension ratio each in common template, is represented respectively with English alphabet Point coordinate, part dimension;Each of AutoCAD drawing command can be represented in Visual Basic with program language Come;According to the Prototype drawing that above-mentioned English alphabet indicates, the technique of painting of Prototype drawing is showed in Visual Basic with code;
E, establish automated drafting system platform: establishing software interface, (interface is general-purpose interface, due to general in engineering AutoCAD version is numerous, therefore interface needs to be compatible with all kinds of version AutoCAD softwares), by Visual Basic software with The connection of AutoCAD software quotes AutoCAD component in Visual Basic, specific name is as automated drafting system platform "AutoCAD 20XX Type Library";Using Visual Basic as compiler, using AutoCAD as drawing interface, by The type of underground engineering and each variable ginseng of the type common template are drawn needed for the operation pages input of Visual Basic Several occurrence, so that AutoCAD software transfers corresponding common template according to the type of input in drawing interface, and according to defeated The occurrence of each variable parameter of the common template entered, is adjusted the structure of common template, finally in drawing interface Automatically required engineering drawing is drawn out.
Further, Visual Basic software passes through programming and has using AutoCAD software in the step E ActiveX Automation module, to carry out drawing control, detailed process to AutoCAD software are as follows: in Visual Lower engineering type option and the corresponding variable parameter text box of every class underground engineering are configured in the operation interface of Basic software, Engineering type is selectively descended by operation interface and inputs each variable parameter of the type, and Visual Basic software is logical at this time The drawing object in GetObject function and CreateObject function control ActiveXAutomation module is crossed, is realized The Automatic Drawing process of the drawing interface of AutoCAD software (enables each English respectively in Visual Basic software code Letter is equal to the content of text in a text box;User in text box by inputting corresponding variable parameter, and system is certainly It is dynamic that number in each text box is replaced into corresponding English alphabet, and make the English alphabet in Prototype drawing all by corresponding number Word replaces, and the engineering drawing of required size is precisely drawn out in the interface AutoCAD).
Further, the GetObject function is used to access the ActiveX object in file, and the object is assigned to Object variable;The CreateObject function is for creating and returning a reference to ActiveX object.
Further, version number is not added in the ProglD that the GetObject function or CreateObject function use, It can be such that above-mentioned function is not influenced by AutoCAD version, to realize the control generalization to different AutoCAD versions.
To the automatic drawing process of Rectangular Tunnel: as shown in figure 4, defining tunnel width respectively is a, tunnel height b, anchor Pole length is c, pipe radius d, depth of drainage ditch e.Each portion in tunnel figure is indicated according to five Rational Parameters of a, b, c, d, e Part size draws out complete Rectangular Tunnel parameter type engineering drawing.Then according to aforesaid operations process in Visual Tunnel Engineering is selected in the underground engineering type option of Basic software operation interface, and selects Rectangular Tunnel in Tunnel Engineering, It will appear 5 text boxes at this time, respectively correspond tunnel width, tunnel height, rock-bolt length, pipe radius, depth of drainage ditch;So Successively start to draw after input 300,200,150,10,20 in this 5 text boxes afterwards, tunnel width is a=300, tunnel at this time Road height is b=200, rock-bolt length c=150, pipe radius d=10, depth of drainage ditch e=20;Then Visual Basic software controls drawing in ActiveX Automation module by GetObject function and CreateObject function Figure object realizes the Automatic Drawing process (as shown in Figure 3) in the drawing interface of AutoCAD software.After the completion, as user has spy Different demand when needing to modify or increase new structure member, directly can modify to original image in AutoCAD software interface And it saves.

Claims (4)

1. a kind of underground engineering Automatic Drawing method based on AutoCAD, which is characterized in that specific steps are as follows:
A, it establishes underground engineering classification: underground engineering is divided into underground pipe gallery, Tunnel Engineering, underground structure, water supply and sewage work With underground storage totally five class, wherein underground pipe gallery includes: main line piping lane, branch line piping lane, cable piping lane;Tunnel Engineering includes: square Shape tunnel, horse-shoe tunnel, circular tunnel;Underground structure includes: market place builet below the ground, underground parking, underground speedy way, underground Square;Water supply and sewage work include: water engineering, drainage system;Underground storage includes: underground water storage library, underground energy library, underground Waste vault, underground food storage;
B, it determines the construction drawing common template of each classification: a construction is selected respectively to the step A five class underground engineerings divided Scheme the common template as such;
C, determine every class common template for drawing parametric variable number: it is right according to same type underground engineering difference condition Parametric variable number of the common template setting of the type for drawing, is respectively completed the setting of five class underground engineerings;The ginseng Number variable includes length, width, height, arc radius, depth of drainage ditch;
D, according to determining variable parameter number rendering parameter formula engineering drawing: based on common template, using different English words Mother stock does not replace each variable parameter, and according to part dimension ratio each in common template, represents each point with English alphabet and sit Mark, part dimension;
E, it establishes automated drafting system platform: establishing software interface, Visual Basic software is connect with AutoCAD software, As automated drafting system platform;Using Visual Basic as compiler, using AutoCAD as drawing interface, by Visual The operation pages of Basic input the specific of each variable parameter of the required type for drawing underground engineering and the type common template Value, so that AutoCAD software transfers corresponding common template according to the type of input in drawing interface, and logical according to this of input With the occurrence of each variable parameter of template, the structure of common template is adjusted, is finally drawn automatically in drawing interface Required engineering drawing out.
2. a kind of underground engineering Automatic Drawing method based on AutoCAD according to claim 1, which is characterized in that institute State the ActiveX Automation mould that Visual Basic software passes through programming and has using AutoCAD software in step E Block, to carry out drawing control, detailed process to AutoCAD software are as follows: set in the operation interface of Visual Basic software Underground engineering type option and the corresponding variable parameter text box of every class underground engineering are set, underground engineering is selected by operation interface Each variable parameter of type and input the type, at this time Visual Basic software by GetObject function and CreateObject function controls the drawing object in ActiveX Automation module, realizes drawing in AutoCAD software The Automatic Drawing process at figure interface.
3. a kind of underground engineering Automatic Drawing method based on AutoCAD according to claim 2, which is characterized in that institute GetObject function is stated for accessing the ActiveX object in file, and the object is assigned to object variable;It is described CreateObject function is for creating and returning a reference to ActiveX object.
4. a kind of underground engineering Automatic Drawing method based on AutoCAD according to claim 2, which is characterized in that institute It states and does not add version number in the ProglD that GetObject function or CreateObject function use.
CN201910232245.XA 2019-03-26 2019-03-26 A kind of underground engineering Automatic Drawing method based on AutoCAD Withdrawn CN109978970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910232245.XA CN109978970A (en) 2019-03-26 2019-03-26 A kind of underground engineering Automatic Drawing method based on AutoCAD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910232245.XA CN109978970A (en) 2019-03-26 2019-03-26 A kind of underground engineering Automatic Drawing method based on AutoCAD

Publications (1)

Publication Number Publication Date
CN109978970A true CN109978970A (en) 2019-07-05

Family

ID=67080619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910232245.XA Withdrawn CN109978970A (en) 2019-03-26 2019-03-26 A kind of underground engineering Automatic Drawing method based on AutoCAD

Country Status (1)

Country Link
CN (1) CN109978970A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990012A (en) * 2019-12-10 2020-04-10 四川科莱电梯股份有限公司 Design method of automatic drawing system software of elevator civil engineering drawing
CN112507434A (en) * 2020-12-07 2021-03-16 深圳市安冠科技有限公司 Method for drawing construction drawing based on extensible drawing model

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990012A (en) * 2019-12-10 2020-04-10 四川科莱电梯股份有限公司 Design method of automatic drawing system software of elevator civil engineering drawing
CN112507434A (en) * 2020-12-07 2021-03-16 深圳市安冠科技有限公司 Method for drawing construction drawing based on extensible drawing model

Similar Documents

Publication Publication Date Title
CN109359351B (en) Three-dimensional modeling method for pipeline and pipeline design method
CN109191576A (en) A kind of figure layer classification method that architectural drawing is converted to three-dimensional BIM model
CN111597600B (en) BIM forward design chart system based on Revit
CN112257160B (en) BIM-based standardized forward design method for garbage incineration power plant
CN109978970A (en) A kind of underground engineering Automatic Drawing method based on AutoCAD
CN102968539A (en) Method for massively and quickly generating format drawing
CN113190938A (en) Method, system and medium for rapidly establishing municipal pipe network parameterized model
CN109933900A (en) A kind of construction three dimensional field cloth modeling method based on BIM technology
CN105677970A (en) Copper-deficiency automatic supplementing method with no need of repeatedly avoiding copper
CN112288871A (en) Modeling method for converting comprehensive pipeline plan view into three-dimensional pipeline model based on Pinggleader platform
CN113642079B (en) Factory design method based on three-dimensional technology
CN109558636A (en) A kind of creation method based on Revit pipe gallery BIM model
CN107766685A (en) A kind of method and device of mining area coal and coal bed gas harmonic extraction dynamic analog
CN108549765B (en) Method for designing road longitudinal by using element line in Civil3D
CN117235844A (en) Tunnel BIM model parameterized modeling method based on Dynamo plugin
CN109271701B (en) Water supply and drainage BIM forward design method based on reach system
CN109766601B (en) Computer aided drawing method and device for electric piping
CN112926105B (en) Method for rapidly and finely modeling municipal pipe network by using BIM
CN110119596A (en) A kind of place editing system based on Revit
CN113821858B (en) Revit-based method for detaching electromechanical embedded parts in any concrete pouring block
Ibrahim et al. CAD smart objects: potentials and limitations
KR102281933B1 (en) PDMS Apparatus for Designing Offshore Plant and 3 Dimensional modeling method using PDMS
CN115186364A (en) Method for establishing T-beam transverse steel bar based on Dynamo and Revit
Zhou et al. The Research on Approach of BIM-Based 3D Design for Transmission Line Project
CN111597606A (en) High-efficiency design method for digital large-scale engineering construction station

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190705

WW01 Invention patent application withdrawn after publication