Adding the mathematical relationship, since the two end points of the spring are respectively matched with the two contact faces of the guide bushing and the upper ring of the push rod, the length of the spring determines the position of the push rod and the cam, and the length of the spring is The pitch and the number of turns are determined. In the actual process, the number of turns does not change, so as long as the value of the spring pitch is changed, the positions of other zeros and components can be determined. Select the annotation of the spring in the Feature Manager, select the display feature size, and see all the dimensions of the spring in the work area.
Select Equation 6 (E) in the tool options, pop up the dialog box for adding equations, and click Add. Add a mathematical relationship Use the mouse to select the value of the pitch, and add the following mathematical relationship in the relation: "D4@ spiral line vortex line 1@spring. Part" = "D4@ spiral line vortex line 1@ spring. Part "-0.1", "D4@ spiral line vortex line 1@spring. Part" is the system default, representing the pitch of the spring, that is, the length of the pitch is reduced by 0.1mm each time after reconstruction, and the equation is exited after the determination. Dialog.
Open the Animator screen to properly adjust the size of the SolidWorks workspace, select Open Screen Capture in the Animator menu bar, enter the name in the Save Animation File dialog box that pops up, select the Photoworks buffer for image rendering, and use the other options as the system default. Any view of the view on the screen will be recorded to the AVI movie.
Run the VBA program, click the menu bar tool, open the macro operation, select New, pop up the VBA editing dialog box, enter the following code: DimswAppAsObject′′ “Prompt†“Prompt completion dialog EndIfEndSub′ main program end Cam mechanism simulation animation code input completed, single Click Run to bring up the number of times you need to rebuild dialog box. Since the mechanism's push rod stroke is 15mm and the number of spring turns is 10, the single pitch of each reconstruction spring is increased by 011mm, so the number of reconstructions that satisfy the stroke is 15 and enter 15. In the dialog box, you can see that with each reconstruction, the spring The length changes, and finally the completion dialog pops up. Since screen capture is turned on, these changes are saved as AVI movies.
Close Animator Screen Capture Select Close Screen Capture in the Animator menu bar to open the generated AVI movie. You can see the simulation of the cam mechanism during the push phase as shown. The animation cam mechanism in the return phase works in the return phase. When the animation is made, it is required that as the length of the spring increases, the cam rotates clockwise and the pusher moves downward. The animation process at this stage is the same as the push phase. The mathematical relationship to be added when adding the relationship in the second step is as follows: "D4@ spiral line vortex line 1@spring, Part" = "D4@ spiral line vortex line 1@spring.
Animation synthesis In order to create a cam mechanism working animation in a complete motion cycle, the above three stages of animation files are imported into the video processing software WindowsMovieMaker to create an animation file, and the motion simulation animation of the spring-closed cam mechanism is completed. , play the file, you can observe the working process of the cam mechanism.
Conclusion Using the VBA interface of SolidWorks for secondary development, it is possible to produce a mechanism simulation drawing containing a uniform deformation of a flexible object. Applying it to product development and design, you can perform virtual motion simulation or find design problems in the early stage of product design, which can improve work efficiency, reduce product production cost, and facilitate people to exchange product information. However, the animation of non-uniform deformation of flexible objects in SolidWorks remains to be further studied.
Aluminum Coated Coil With Differet Designs
Aluminium Coil,Roofing Aluminum,Coated Aluminum Coil,Aluminium Coil Sheet
SHAOXING YOTO IMPORT&EXPORT CO., LTD , https://www.sxyoto.com