There are many options for parameters and actions in dynamic blocks, and it is impossible to list them all. Here is a simple example. For example, I drew a simple bolt. Although it is just a diagram, it is not very accurate. Hope you don't get too hung up on the details.
1. Draw a simple bolt. As shown in the picture.
2. After entering the block editor, you can adjust the thread length by adding a "linear parameter" as shown in the figure. At this time, you will see two cyan arrows appearing on the two endpoints of the straight line.
Then switch to action mode and select "Stretching Action" in the action options. When selecting parameters, select "Linear Parameter", which is selected on the previously marked parameter. Next, select the parameter points associated with the action. The parameter points are the two points on the parameter. Now to change the bolt length, select the point on the left. When you move to this point, there will be a red circle prompt. Only the left and right points can be selected, so select the left point now. Then select the stretch frame and select it according to the white rectangular frame in Figure 2. Next select the stretched object and select the two horizontal lines above and below and the vertical line on the left. Finally, select the moving position. Since the stretching action is based on linear parameters, you can click it casually. It does not matter whether it is placed outside or inside. The stretching action is not sensitive to this.
3. After processing the above steps, the image will look like Figure 3. At this point, make sure to select Save changes before closing the image editor.
4. After exiting the block editor, select the block, as shown in Figure 4, a direction indicator will appear at the arrow. Since the stretch we defined follows the point action on the left, when you drag the left arrow, the length of the bolt will change, while dragging the right arrow will not change anything.
To summarize, the key to dynamic blocks is to have parameters and actions, and to be able to associate actions with parameters. For example, the effect of stretching on a graphic is that the two horizontal lines will be elongated and the short vertical lines will be moved. This effect can be achieved by using the stretch command (S). You can study the specific operation method yourself. As for other parameters and actions, and how to use parameter sets, I won’t say much more, because typing is too tiring, and I have to draw pictures and screenshots, so I decided to offer a reward of 5 points to everyone, uh... Oh my God!
= CAD Technology Think Tank =
1. Draw a simple bolt.
2. After entering the block editor, you can adjust the thread length by adding a "linear parameter" as shown in the figure. At this time, you will see two cyan arrows appearing on the two endpoints of the straight line.
Then switch to action mode and select "Stretching Action" in the action options. When selecting parameters, select "Linear Parameter", which is selected on the previously marked parameter. Next, select the parameter points associated with the action. The parameter points are the two points on the parameter. Now to change the bolt length, select the point on the left. When you move to this point, there will be a red circle prompt. Only the left and right points can be selected, so select the left point now. Then select the stretch frame and select it according to the white rectangular frame in Figure 2. Next select the stretched object and select the two horizontal lines above and below and the vertical line on the left. Finally, select the moving position. Since the stretching action is based on linear parameters, you can click it casually. It does not matter whether it is placed outside or inside. The stretching action is not sensitive to this.
3. After processing the above steps, the image will look like Figure 3. At this point, make sure to select Save changes before closing the image editor.
4. After exiting the block editor, select the block, as shown in Figure 4, a direction indicator will appear at the arrow. Since the stretch we defined follows the point action on the left, when you drag the left arrow, the length of the bolt will change, while dragging the right arrow will not change anything.
The above is the detailed content of A guide to learning how to create dynamic blocks in CAD without using in-house help. For more information, please follow other related articles on the PHP Chinese website!