May 01, 2024

AUTOLISP programming skills

People have done a lot of research on the mechanical graphics composed of straight lines and arcs, but there are not many ways for computers to draw mechanical drawings conveniently. Fuda Mechanical Design Drawing Toolbox proposes a unique drawing method that is different from parametric design The new concept of drawing is precisely because of these unique features that can make the design and drawing of a large number of shafts and parts on the shaft in mechanical design become simple and fast. The following is a brief introduction of the new concept of mechanical drawing we propose. Criticism and correction are welcome.

(1) A new method of drawing a non-circular view of the stepped shaft (hole) (optional drawing reflecting the left view of the circle)

If a cylinder is regarded as a truncated cone with a cone angle of zero, any stepped shaft can be considered to be composed of several truncated cones from left to right, and the rounded corner of the added entity always appears at the shoulder of the adjacent truncated cone, and The number of rounded corners is always one less than the number of cones. To determine a truncated cone, only three dimensions are required: the diameter of the large end of the truncated cone D, the cone angle J and the axial length of the truncated cone L. Let J have positive and negative, left and right The large cone angle is positive, otherwise it is negative. The shaft part drawing always provides the DJL of each truncated cone and the corner radius R between it and the adjacent cone (on the engineering drawing, the zero cone angle and corner radius are both It is represented by the graph line and the label of zero value is omitted). To facilitate the management of data, it is possible to add a rounded corner (set its radius to 0) in the rightmost section without rounded corners. Therefore, as long as each is given from left to right The shape size of the segment truncated cone DLJR (It should be noted that R always refers to the radius of the corner on the right side of each segment, and each radius of the corner is only used once), and the stepped axis can be drawn.
In short, this method can draw the axis (hole) as long as it is given (DLJR). To help new users understand and use this method, 2 sets of (DLJR) test data are provided for you to click on Fuda Toolbox <axis zu > Or Item.
(a) 35,5,90,0, 35,15,0,5, 20,15,0,0, 20,20, -30,0 (this axis has 4 segments);
(b) 35,10,0,5, 20,40,0,5, 40,10,, 0,3, 50,5,0,0 (the axis is divided into 4 segments; please note the attribution of R value).

(2) Draw a cross-sectional view of the sleeve (optional drawing reflects the left view of the circle)

Similar to (1), the cylinder is also regarded as a truncated cone with a cone angle of zero.The inner and outer contours of any bushing can be considered to be composed of several truncated cones, and the rounded corners of the added solid always appear on the adjacent truncated cones. At the shoulder, and the number of rounded corners of the inner and outer contours is always one less than the number of truncated cones. There are only three dimensions required to determine a truncated cone: diameter D, axial length L and cone angle J. The outer contour here is agreed to be a given cone The diameter of the large end of the table, and the inner contour is given the diameter of the small end. Here, J is set to be positive and negative, and the cone angle from the left to the right is positive, otherwise it is negative. In addition, in order to facilitate the management of data and programming, it may not be the inner and outer contours A rounded corner is added to the far right of the rounded corner, and the radius of the rounded corner on the right side of the outer contour is -1, and the rightmost R of the inner contour is 0. Therefore, as long as the shape is first and then the inner shape is from the left To the right, the size of each section of the truncated cone (DLJR) is given in turn, and you can draw a cross-sectional view of the sleeve. In short, only four data are needed to draw the sleeve (DLJR).
The following set of data is available for you to click on Fuda Toolbox <shaft sleeve zt> or When using items:
32,7,30,0, 32,18,0,4, 45,5,0, -1 (note the use of -1; this is the last section of the sleeve outer contour), 12,4, -90,0 , 12,5,0,0, 12,4,60,3, 25,12,0,3, 15,5,0,0 (the bushing has 8 segments).

(3) Contour circle drawing outline (connection drawing)

If a straight line segment is regarded as an arc with an infinite radius of curvature, then any stroke composed of straight lines and arcs can be considered to be composed of several arcs. Just enter the arcs in sequence according to the drawing order selected by the user. The coordinates of the center of the circle (enter the agreed value of the unknown coordinates) and the radius, that is, enter X (i), Y (i), R (i), you can draw the graph. If you use a data file, you can add, delete, and modify the data file to make it convenient Get new graphics. Use this method as long as you follow the following conventions to enter the relevant values.
a The radius is specified with positive and negative: the radius of the arc drawn counterclockwise takes positive, otherwise it is negative.
b The sharp point is a known arc with a radius of 0; the start and end points of the non-closed stroke are sharp points.
c The unknown center coordinates of the connecting arc greater than 180 ° are agreed as (-1, -1); otherwise, (1,1) is taken.
d The straight line segment connected to the arc is a circular arc with a sufficiently large radius. The radius value can be entered using the conventional value 0.
e Unknown coordinate input convention for the center of the center arc: when the center of the center arc is connected to the known arc (the center arc whose center has been found will also be regarded as the known arc), the unknown X coordinate takes +1 , Otherwise take -1. When the center of the middle arc is above the known center of the arc, the unknown coordinate Y takes 1, otherwise Y is -1.
The start and end points (XYR) of closed plots are the same; the start and end points (XYR) of unclosed plots are different.
In order to help users understand this law, a cam data is provided: 0,0,10, -1, -1,22, 23,0,8, 1, 1, -7, 0,0,10 (5 segment circle Arc, no intermediate arc). The following is also a cam data (with an intermediate arc).
0,0,15, 17, -1, -8, 1,1,0, 36, -3,6, 1,1,44, 0,0,15.
In addition, three sets of data (all 5 arcs) are provided for users to understand.
0,0,30, 1,1,200, 200,20,0, 1,1, -122, 0,0,30.
0,0,30, 1,1, -10000, 200,20, -40, 1,1,10000, 0,0,30.
0,0,0, 1,1,300, 200,30,30, 1,1,200, 100,150,0. This will generate the data above the non-closed line for you to click on Fuda Toolbox <公 切 22> or Item.
Note: If the graph is composed of several lines like this, just add (0.5,0.5,0) between the two adjacent strokes.
You may wish to try the following data: 0,0,10, 1,1, -88, 65,25,20, 1,1, -100, 0,0,10, 0.5,0.5,0,10,10,30 , 1,1, -77, 88,20,24, 1,1,99, 10,10,30.

(4) Contour outline drawing method

Any stroke composed of straight lines and arcs can be represented by a tangent polygon. The straight line segment of the graph line should be heavier than the edge of the polygon, and the arc should be cut to the edge of the polygon. The user only needs to follow the drawing order Enter the coordinates of the vertices of the tangent polygon and the radius of the arc contained in the corner in sequence (that is, enter XYR), and then you can draw. Just enter the following data as long as you observe the following conventions.

a The radius of the arc is specified as positive and negative: the radius of the arc drawn counterclockwise is positive; otherwise it is negative.
b Although the start and end points (XYR) of the closed stroke are the same, they must be entered.
c The opening of the non-closed stroke is set to the vertices 1 and 2 of the tangent polygon, and the radius value of the vertex 2 is agreed to be -0.5.
In order to facilitate new users to master this method, a set of test data is provided: 0,0,10, 100,40, -60, 250,20,15,125,200,20, 0,0,10. (Quadrilateral, number of vertices 5)
If the input data: 0,0,0, 100,10, -0.5, 50,60,8, 0,0,0. It is an instance of a non-closed sum.
This method is very suitable for the input of freehand design sketches. Because freehand drawings always use straight lines to determine the general shape of the lines, and then make arcs in some parts.
Note: If the graph is composed of several lines like this, just add (-1,0,0) between two adjacent strokes. A set of test data is provided: 0,0,5, 60,0 , 6, 60,50,5, 30,50,8, 30,30, -5, 0,30,4, 0,0,5, -1,0,0, 5,5,5, 50,10 , 4, 25,35,7, 5,5,5.
Click Fukuda Toolbox <Tangent 23> or Item, the above data can be used. 0

(5) Node method to draw outline

In this method, the straight line segment is regarded as an arc with an infinite radius of curvature, and any mechanical figure composed of straight lines and arcs can be considered to be composed of several arcs. Just enter each node in the drawing order set by the user The coordinates of (intersection point and tangent point) and the radius of the arc passing through the node, that is, entering (XYR) in sequence can draw the graph correctly and uniquely. Mechanical graphics are usually impossible to draw in one stroke, and it is usually necessary to divide several strokes when drawing. In order to distinguish between different brushes, a pen shifting control node can be artificially established between the corresponding brushes.
For the number of nodes, their coordinates, and the radius of the point, there are simple and easy to remember conventions as follows:
a Radius R is positive and negative. It is stipulated that when drawing an arc clockwise, the radius should be negative, and counterclockwise is positive. Its positive and negative are only related to the order of node numbers;
b For a closed stroke, the XY of the node at the beginning and end should be the same, and the R value of the end point can be taken arbitrarily (can be taken as 0);
c For a non-closed stroke, the R value at the end point can be taken arbitrarily (can be taken as 0);
d The arc greater than 180 degrees should be divided into two segments not greater than 180 degrees;
e The full circle is directly input with its center coordinates and positive radius;
f The radius of the straight line segment should be large enough. The software stipulates that the R value of the straight line is 0;
g As the (XYR) convention to distinguish pen movement control nodes of different pens, take (-1, -1, -1).
In addition, the total number of nodes in the graph (including the number of pen-shifting control nodes) and the number of nodes with hatched parts should be given (if it is zero, the view is drawn instead of the cross-sectional view). The convention is to enter the line to be drawn first. Node XYR, and then enter the XYR of other nodes.
The following set of data is specially provided for clicking on Fuda Toolbox <Node s25> or When using items:
0,15,55, 70,15,0, 70,90, -55, 0,90,0, 0,15,0, -1, -1, -1, 50,55,15, 20,55, 25, 35,10,25, 50,55,0, -1, -1, -1, 35,35,15, -1, -1, -1, 70,90,125, 0,90,0 (the graph There are 15 nodes in total, of which there are 3 control points for moving the pen).

It should be particularly pointed out that the above unique graphics drawing method is not only simple to input (do not use data not provided by the drawings), but may also automatically mark each known size while drawing the graphics.

Note: For the content of this article, please refer to the "Fujian Toolbox User's Guide" and "Fujida Toolbox Key Tips".

Vacuum Cleaning Robot


vacuum cleaning robot auto clean table,floor,window area, use in home,office,hotel area. Very good design and intelligent. Robot vacuum cleaning clean with auto clean mode. Automatic robot clean the floor ,wooden floor,hard floor surface.vacuum cleaning robot with water tank,mopping clean,fast clean speed,more convenience.



Auto-charging Vacuum Robot :vacuum cleaning robot

Instead of manual charge, you can also make the robot charge itself automatically

With low battery, power indicator turn into red light, then robot will search the charging dock automatically Auto Cleaning Vacuum Robot


Within the infrared area, robot can receive the signal and connect with charging dock automatically Smart Vacuum Cleaning Robot,Robot Vacuum Mopping Cleaner.

Vacuum Cleaning Robot

Vacuum Cleaning Robot,Auto Cleaning Vacuum Robot,Smart Vacuum Cleaning Robot,Robot Vacuum Mopping Cleaner,Vacuum Cleaner Robot Carpet,Vacuum Cleaner Robot

Zhengzhou Bangmi Smart Technology Co., Ltd. , https://www.globalcleanrobot.com