Our 3D CAD supplier models have been moved to 3Dfindit.com, the new visual search engine for 3D CAD, CAE & BIM models.
You can log in there with your existing account of this site.
The content remains free of charge.
Often you have the option to create a sketch with or without using an Attribute algorithm. A calculation can be processed directly in the sketch or be assigned to an own variable via attribute algorithm.
Note | |
---|---|
|
Mathematical function in sketch [51]
When using only variables without attribute algorithms you can create a sketch in the Designer mode. The color code shows, that the variables H and L2 have been saved in Designer mode (in the 3db file).
The circle radius shall have the double height as the rectangle. The calculation is directly processed in the sketch.
Radius: 2*H
Later you will possibly save in Dual mode (=Select variable and click on ). In Dual mode you can use Value range variables and Attribute algorithms in addition and create a table.
Mathematical function in attribute algorithm [52]
Using variables with an Attribute algorithm requires a different approach. In the following the same part is used as above, but now with the use of an attribute algorithm.
Start with the creation of the variables in Table mode or Dual mode.
When creating the variables, under "Mode", select the option "Table mode" or "Dual mode". Fill out the fields and finally click on "Commit".
You can recognize at the color code where the variables L2, H and R are saved. For the creation of the table saving in Table mode (color code ) is sufficient. The data storage happens in the tab/tac file.
However, if variables shall also be used in the 3D model, they have to be saved both in the 3db file and in the tab/tac file. You can ensure saving in both by selecting a variable, choosing the Dual mode and clicking on .
You can recognize at the color code , that the variables have been saved in the Dual mode.
To process the mathematical operation R = 2*H (circle radius is 2x height of rectangle) the variable R is created with Status "Attribute algorithm".
Under Equation the algorithm is entered, under Status the option Attribute algorithm.
Now the variable R can be used in the sketch for the parameter entry of the circle radius.
Optionally, the Variable R with Attribute algorithm can be displayed in PARTdataManager.
In PARTproject, under Edit project -> tabbed page General -> section Variables -> Order/Groups of Variables, click on the browse button .
On the left side, select the group Secondary variables and then move the variable R into the middle field. Details on this can be found under Section 4.9.2.2.2, “ Order/Groups of Variables - Hide columns (variables) ”.
The variable R is displayed in the table.
|
[51] The
adequate example on this can be found in the "Training" catalog
under \v11_news\expression_in_sketch_or_algorithm\expression_in_sketch.prj
.
[52] The
adequate example on this can be found in the "Training" catalog
under \v11_news\expression_in_sketch_or_algorithm\expression_in_algorithm.prj
.