Quickly drawing in AutoCAD Mechanical graphics centerline
A mechanical drawing national standard requirements of the center line of graphics in mechanical engineering, the national mapping standards (GB / T 4457. 4-2002) on the centerline of the painting in detail the provisions, specified in Figure 1. Figure 2 shown.
Second, the realization of the center line of the rapid mapping of the principle and method of AutoCAD 11 and 30 drop-down menu toolbar, and its internal command used to pass through the drop-down menu button commands and tools to implement. To quickly draw the center line of mechanical graphics standard, the user should re-create a new internal command to directly draw the centerline, of the specific approach: the use of embedded in AutoCAD in the preparation of integrated development environment VLISP code to the respective center line of the definition of the standard linear, load standards and draw the centerline of the centerline of the standard, for code generation Ze direct the implementation of applications and can be converted into a direct implementation of AutoCAD environment of the internal order, modify AutoCAD menu files, additional drop-down menu in the standard mapping the center line of the menu commands and tool buttons. Finally, use the menu commands and tools to tackle the speed button mechanical drawing the center line of graphics standards.
(A) the centerline of the linear standard AutoCAD Customization There are three linear documents: ACAD.LIN, ACADISO.LIN, IGES.LIN, which ACADISO.LIN automatically load at startup, in order to use the general file ACADISO.LIN defined in the new line. According to national mapping standards, the standards will be the center line of mechanical linear graph defined as follows:
* ZXL, the center line A, 10, -1,1, -1,10, -1,1, -1
According to custom at the time of linear input command-line request, the standard center line of custom VLISP can be written in the following code:
(defun c: zxl ()
(command "-linetype" "C" "ZXL" "acaddiso.lin"
"Centerline" "10, -1,1, 1,10, -1,1, -1" "")
VLISP integrated in the environment, load the above code, the command line directly in the AutoCAD command zxl implementation, the success of the center line of customized standards, users can in AutoCAD "linear loads or heavy-duty" dialog box to see the existence of linear ZXL.
(B) the center line of the rapid creation of standards in the drawing command line rendering, it is usually taken to capture the way the goal to determine the starting point and end segment, and then draw the necessary lines, the centerline of the standards, the two ends of the endpoint to be in excess of 2 -- 5mm, as shown in Figure 3.
In Figure 3, pl, p2 is the use of standard capture on the way to determine the beginning and end of the segment, p0, p3 is the original mm beyond the length of the segment after a new starting point and end point, θ is the segment with the horizontal axis is to the angle, the correlation between the use of trigonometric functions, to determine p0, pl, p2, p3 coordinates relations between the following:
Combination of expressions (1) and expression (2), the definition of a new internal order zline to draw the center line, zline order VL1SD code is as follows:
Load the above code, the command line directly in the AutoCAD drawing using the standard command zline centerline. In order to become a real zline order GXL internal order, to ensure that every time you start AutoCAD in itself is loaded, it is best kept in the above code acad2005.1sp file.
(C) customize the drop-down menu commands AutoCAD menu source file named acad. Mnu, the support into the AutoCAD folder, open the acad. Mnu, find a location ** pop7 will be "1D_ ZL1NE; [standard centerline] c-czline "adding to the sub-menu, as follows:
Save the file, to reload acad. Mnu, mapping changes in the drop-down menu, shown in Figure 4. With the mouse click menu command "standard centerline", according to the command line prompt, you can quickly and accurately draw the center line of mechanical graphics standards.
(D) Production drawing tool button in order to facilitate mapping, users can also use the following button to create a tool for rapid mapping standards centerline. Specific practices are as follows:
① Click the "View" menu under the "Toolbar" command to show the "Custom dialog box" in "Drawing" toolbar to copy a command button, and select the button for "Custom dialog box" for the corresponding changes as shown in Figure 5.
② Click "Apply" button, and close the "Customize dialog box." "Drawing" toolbar to change, as shown in Figure 6. With the mouse click on the toolbar "standard centerline" button can also be quickly and accurately draw the center line of mechanical graphics standards.
Third, the conclusion to prove the practice: In the AutoCAD 2005 environment This article describes the use of methods to draw the center line of graphics machinery, has achieved very good results, the user in the implementation of graphics commands can be based on needs and the associated command-line prompt in excess of some arbitrary set centerline length, fast draw graphics machinery required for the centerline. In addition, the method used by the center line of drawing commands to create a real internal order in AutoCAD to load after every boot, without any other factors. Therefore, the methods described in this article should be the most practical, the most convenient.
AutoCAD Tutorial Articles
- Thinkdesign die design in the automotive application
- Pro / E chain drive virtual assembly design and motion simulation technology
- Solidworks how to use mapping project to gear
- Using CAD in the hope of the inquiry
- Gear SolidWarks institutions based on Motion Analysis and Simulation
- Secondary development of the basic steps Solidworks
- CATIA's interface based on the secondary development of methods and examples
- Brief description of the application of SolidWorks API
- How to automate the process of design verification
- How to automate the process of design verification
- AutoCAD rendering tutorials: How to map rendering high version
- TRIZ based on a new type of dryer chamber design
- With the changes in array shape Solidworks2009
- ANSYS order flow, the secondary development of documentation and HELP - understanding of mesh
- Parametric design tools in the application of the equipment manufacturing industry
- Based on the essence of the secondary development of SolidWorks Die Design System
- CAD techniques in the hope to share: custom frame should pay attention to the issue of
- SolidWorks on the bevel gear precision forging die design
- CAD-based PDM system integration technology research
- Two-dimensional AutoCAD Tutorial: Detail mechanical parts drawing axonometric map
Can't Find What You're Looking For?
Rating: Not yet rated