Application of Computer Technology in Development of Casting Process CAD Software (2)

3.2 The secondary development environment of AutoCAD2000 The reason why AutoCAD is widely used is inseparable from its open system, rich development tools and development methods. From the first generation programming language Autolisp to ADS, ARX, Objec team RX, VBA, and the latest release of Java, AutoCAD's open application development architecture truly extends the capabilities of the AutoCAD system. The secondary development environment of AutoCAD has gradually shifted from a structured, process-based programming environment to an object-oriented development platform. ARX ​​is a new object-oriented development environment launched after R13. It is also the first time AutoCAD has provided an object-oriented secondary development tool. ARX ​​is more focused on the intelligence of the application. The ARX program is different from the ADS and Autolsp programs in many respects, and the ARX program is a dynamic link library. It shares the same address space as AutoCAD and communicates directly with AutoCAD. ARX ​​accesses AutoCAD databases faster, and ARX programs can create new classes that can be shared by other programs to take advantage of object-oriented programming. The entities created by the ARX program are almost identical to the AutoCAD intrinsic entities. ARX ​​provides six main libraries to access and control AutoCAD and handle CAD common things: (1) AcRx AutoCAD Run Extension Library o (2) AcEd AutoCAD Command Extension Library. (3) AcDb AutoCAD database access library. (4) AcGe Universal Geometry Library. (5) AcGi AutoCAD graphical interface library. (6) AcBr boundary description library.

Parametric Drawing mechanism <br> <br> 4 graphics program parameters programming designed primarily to combine database and process parameters Auto CAD graphics library. As a parameterized library system, it mainly includes three parts: database, user interface and parameterized drawing program. Among them, the database is mainly used to store the series size data and performance parameters of the graphics; the parameterized drawing program is used to realize the programming of the graphics drawing; the user interface is used to realize the connection between the database and the parameterized drawing program, and the design is in the form of a dialog box. Realization; in the process design of data, the method of custom drawing class is adopted, which fully considers the object-oriented design method and fully realizes the encapsulation of variables and methods. Custom drawing class, whose member variable is the size parameter of the graphic, its member function is the function function for drawing the graphic, and the object pointer of the white definition drawing class is declared in the dialog class.

Figure 1 is a parametric drawing interface for the realization of "diesel-grey cast iron parts open top appetite". In the interface of the "new riser" standard, the right side is the drawing parameter of the riser, the left side is the riser diagram, select the drawing parameter according to the weight of the riser to the upper left edit box, and then click the "drawing" button to draw the riser . Also in the "Modify Riser" tab interface, you can modify the appetite that has been drawn. The construction code of the Mingding riser drawing class is as follows:

Class cjming_dinlLmaokou II Mingding appetite protected: II drawing parameters double T; II thermal section size double DR;

Double HR;

Doubleh;

Double R;

Double d;

Public : / / operation function cjming_ding_maokou (data, double bpoint, CString); / / constructor cjming_ding_maokou ();

Virtual BOOL draw(); //Riser drawing function virtual BOOL dim (); //Object annotation function

Previous page next page

DIY Roll

The DIY Roll is a game-changing product that has simplified the process of various DIY projects. This versatile tool offers a convenient and efficient solution for measuring, cutting, and dispensing materials such as paper, fabric, and tape. With its compact and portable design, the DIY Roll can be easily carried and used anywhere. Whether you're working on crafts, home improvement projects, or even gift wrapping, this tool ensures precise measurements and clean cuts, saving you time and effort. The DIY Roll is a must-have for DIY enthusiasts and professionals alike, providing a seamless and user-friendly experience for a wide range of applications.

Easy Diy Magnetic Screen Window,Diy Magnetic Insect Mosquito Bug Screen,Diy Magnetic Insect Mosquito Screen Window,Diy Magnetic Mosquito Window Mesh Fly Screen

Jinwu Glass Fiber Co., Ltd , https://www.jwglassfiber.com