Development of AutoCAD-Based Specialized Software for Pressure Pipe Combined Fittings Using VB6.0
Literature Overview
This paper by Xie Tao, Jin Zhijiang, Zheng Xiangyu, Wang Fei, and Zhang Sujuan, published in Machinery Design and Manufacture in 2006, presents the development of specialized software for pressure pipe combined fittings using Visual Basic 6.0 (VB6.0) and AutoCAD. The software was developed through secondary development of AutoCAD using ActiveX Automation interfaces. The work was supported by the Zhejiang Provincial Science and Technology Plan Key Research Project (005C21093) and was conducted jointly by the Dalian Boiler and Pressure Vessel Inspection Research Institute and the Institute of Chemical Machinery Engineering at Zhejiang University.
Core Technical Content and Methodology
Concept of Combined Fittings
Combined fittings, also known as composite fittings or custom fittings, are pipe components that combine multiple standard fitting types (elbows, tees, reducers) into a single unit to meet specific layout requirements in pressure piping systems. The advantages of combined fittings include:
- Reduced number of weld joints, thereby reducing potential failure points
- Shorter overall piping length, reducing material usage and installation time
- Better structural integrity due to fewer connections
- Improved flow characteristics by reducing turbulence at transitions
- Enhanced corrosion resistance by minimizing crevice areas
Software Architecture
The software was developed using VB6.0 as the primary development environment, leveraging the ActiveX Automation interfaces provided by AutoCAD to create, modify, and manage drawings programmatically. The architecture follows a client-server model where VB6.0 acts as the client and AutoCAD acts as the server.
| Component | Technology | Function |
|---|---|---|
| User Interface | VB6.0 Forms | Input parameters, display results, control workflow |
| Drawing Engine | AutoCAD (ActiveX Automation) | Generate and modify CAD drawings |
| Geometry Calculation | VB6.0 Modules | Calculate fitting dimensions, transitions, and intersections |
| Data Management | VB6.0 Data Access | Store and retrieve fitting configurations |
| Standard Library | VB6.0 Collections | Manage standard fitting dimensions and tolerances |
Key Development Steps
The development process involved the following key steps:
- Requirement analysis: Define the types of combined fittings to be supported, including the standard fitting combinations, applicable standards (GB/T, ASME, EN), and required output formats.
- Interface design: Design user-friendly input forms for specifying fitting parameters such as nominal diameter, wall thickness, bend radius, angle, and combination type.
- Geometry algorithm development: Implement algorithms for calculating the geometry of combined fittings, including the intersection curves between different fitting types, transition surfaces, and development patterns.
- AutoCAD integration: Use ActiveX Automation to control AutoCAD, creating layers, drawing geometry, adding dimensions, and generating annotations programmatically.
- Drawing template management: Develop standardized drawing templates that comply with applicable drafting standards, including title blocks, dimensioning conventions, and annotation formats.
- Testing and validation: Test the software with various fitting configurations and validate the generated drawings against manual calculations and standard requirements.
Technical Implementation Details
The ActiveX Automation interface allows VB6.0 to control AutoCAD as follows:
- Object instantiation: Create an instance of the AutoCAD Application object
- Drawing creation: Open new drawings or modify existing drawings
- Layer management: Create and organize layers for different drawing elements (centerlines, outlines, dimensions, annotations)
- Geometry creation: Draw lines, arcs, circles, splines, and other geometric entities
- Dimensioning: Add linear, angular, and other types of dimensions
- Annotation: Add text, leaders, and notes
- Export: Save drawings in DXF, DWG, or other formats
The geometry calculation module handles the complex mathematical operations required for combined fitting design, including:
- Calculation of the intersection curves between cylinders, cones, and tori
- Development of curved surfaces into flat patterns for fabrication
- Calculation of transition lengths and angles
- Application of standard dimensions and tolerances
Engineering Practice Implications
This software development has several important implications for the pressure piping industry:
- Design efficiency: Automated generation of combined fitting drawings significantly reduces the time required for design work, allowing engineers to focus on more complex design challenges.
- Design consistency: Standardized drawing templates ensure consistency across different projects and designers, reducing errors and improving quality.
- Error reduction: Automated geometry calculation eliminates manual calculation errors, which are a common source of design mistakes in combined fitting design.
- Standard compliance: The software can be programmed to enforce compliance with applicable standards, including dimensioning conventions, tolerance specifications, and material callouts.
- Cost reduction: Reduced design time and fewer errors translate into lower project costs, particularly for projects with numerous combined fittings.
- Integration with fabrication: The generated drawings can be directly used for CNC machining or manual fabrication, reducing the need for additional drawing preparation.
Key Questions and Reflections
Several questions arise from this study:
- How does the software handle non-standard or custom combined fitting configurations that do not fit into predefined templates?
- What is the accuracy of the geometric calculations, particularly for complex intersections involving multiple different fitting types?
- How is the software validated to ensure that the generated drawings meet all applicable code requirements (ASME B31.3, GB 50316, etc.)?
- What are the limitations of the ActiveX Automation approach compared to more modern integration methods such as ObjectARX or .NET API?
- How has the software evolved since its initial development, particularly with the transition from AutoCAD to newer CAD platforms and the availability of modern programming environments?
Study Insights and Implications
This paper represents an early example of CAD software development for specialized engineering applications using available tools and interfaces. The use of VB6.0 and ActiveX Automation was a practical approach that leveraged widely available tools and required relatively low development costs compared to building a standalone CAD application.
The key insight is that specialized software for niche engineering applications can provide significant productivity improvements by automating repetitive design tasks. The combined fitting software addresses a specific need in pressure piping design where manual drafting is time-consuming and error-prone.
From a broader perspective, this work foreshadows the trend toward specialized engineering software that integrates with general-purpose CAD platforms. Modern developments in parametric design, finite element analysis integration, and digital twin technology have built upon the foundations established by such early software development efforts.
For engineers working in pressure piping design, this research highlights the importance of investing in specialized software tools that can improve design efficiency, reduce errors, and ensure compliance with applicable codes and standards. The principles of software development demonstrated in this paper—modular architecture, standard compliance, user-friendly interfaces, and integration with established CAD platforms—remain relevant in modern engineering software development.
In conclusion, this research effectively demonstrates that specialized CAD software for pressure pipe combined fittings can significantly improve design efficiency and quality, providing a practical solution to the challenges of manual drafting in complex piping design applications.
Zhuojin Pipe Fitting Co., Ltd