Tutorials to .com

Tutorials to .com » Mechine » Autocad » Quickly drawing in AutoCAD Mechanical graphics centerline

Quickly drawing in AutoCAD Mechanical graphics centerline

Print View , by: iSee ,Total views: 21 ,Word Count: 1404 ,Date: Tue, 14 Jul 2009 Time: 9:20 AM

In mechanical engineering drawing, the center line is the most common type of graph lines, a wide range of applications, the use of a very tight band. autocad drawing line segments, while providing the command, but there is no direct mapping standards to provide the center line of the command, the user should be drawn if the center line of the standard required in advance in accordance with national standards set the standard mapping of the linear and the ratio of the center line, and after loading using the straight-line drawing commands to draw a straight line segment, and then use the graphics editor to edit the command to get the required amendments to the centerline, this process is very cumbersome, but also error-prone. In fact, AutoCAD has an open architecture and multi-industry standard that allows users to high-level programming language used to expand and modify their use of this characteristic, this paper, a fast graphics rendering standard mechanical method of the centerline, in accordance with the method, the user can quickly and accurately draw graphics machinery required for the 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.

Quickly drawing in AutoCAD Mechanical graphics centerline


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" "")
(princ)
)

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.

Quickly drawing in AutoCAD Mechanical graphics centerline


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:

Quickly drawing in AutoCAD Mechanical graphics centerline

Quickly drawing in AutoCAD Mechanical graphics centerline


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:

Quickly drawing in AutoCAD Mechanical graphics centerline


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.

Quickly drawing in AutoCAD Mechanical graphics centerline


(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.

Quickly drawing in AutoCAD Mechanical graphics centerline


② 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.

Quickly drawing in AutoCAD Mechanical graphics centerline


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


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.