Enter data according to the row and column fields. When finished, the query range is given by the diagonal of the data area. The above work is to complete the electronicization of the manual data, just like the establishment of a database of standard bearing sizes. Use the VLOOKUP statement to find the required size and size according to the query field, and then pass in the expression to update the part.
Enter the specifications to be queried. The code to be queried as shown is 6002. Then use the mouse window to select the field. For example, the gray area in the mouse is the window selection area of ​​the mouse. The four query fields have found the corresponding values. At this point, the data input can be realized by entering the scope of the edit definition expression, and the parameterization of the standard part is realized by updating the UG component in the tool.
Applying Expressions Internal Function Programming The concept of programming here is not exactly equivalent to writing code in a high-level language. Because UG's modeling expression not only has powerful computing functions, but also provides some C-like statements that can be used for logical judgment and selection comparison, so you can use the function of these statements to write programs similar to high-level language code. There are still three steps to illustrate this implementation: first step: build a solid model (completely the same as method one); second step: write a program in the expression; discriminate the format and usage of the select statement as follows: x = if ( Judging condition) (a) else(b) When the discriminating condition is true, x takes the value a; when the discriminating condition is false, x takes the value b.
The third step: assign the size calculated in the program to the modeling size. The previous bearing modeling used for the specific dimensions of the constraints in the sketch was changed to d = d'; D = D'; B = B'; Rs = Rs'. For splines, the number of key teeth under different specifications is achieved with parameters in a circular array, the number being N=N'; the angle is 360/N'.
Comparison of the two methods The above two methods have realized the parameterization of the standard parts, but the final application effect has its advantages and disadvantages. The first method is based on a table, just like the establishment of a standard parts library. The advantage is that the manual is electronically realized, in which each part or query data can be conveniently called, and the model and data can be directly seen, and the transparency of the data is high. The disadvantage is that the manual operation must be performed when changing the parameters, which makes the model not automatically change, especially the assembly model. This method is therefore suitable for part models.
The second method is implemented by an expression-based program. Its advantage is that the data is directly calculated in the UG expression. The data can drive the model to change automatically, and it can be displayed in the assembly model more conveniently and quickly. The disadvantage is that the data is directly driven by the program in the background to directly drive the model to change automatically without passing through the user, so the transparency is not high, you need to enter the expression to find the corresponding statement query to know. And writing such a program is more cumbersome and error-prone than creating a spreadsheet. Therefore, this method is more suitable for assembly models.
When the diameter of the journal is 27, the program will be rounded to 30, and the bearing will be selected: 6006, spline: d=26; when the diameter of the journal is 43, the program will be rounded to 45 and the bearing will be selected. : 6009, spline: d = 36; when the diameter of the journal is 83.65, the program will be rounded to 85, and the bearing is selected: 6017, spline: d = 72; when the diameter of the journal is 93.14 When the program is rounded to 95, and select the bearing: 6019, spline: d = 92.
Stainless Steel Sink,Handmade Sink,Stretching Sink
Bathtub Basin Co., Ltd. , http://www.cnsinks.com