Defining profile beveling rules with configuration files

A text editor can be used to create a profile beveling rule file.

A rule file can consist of one or more conditions (expressions), each with its own 'answer' that is used if the expression results to true.

A special separator character is needed between a condition and its answer. This separator character is the $ character (ALT+0036) or ASCII character 01 (ALT+0001).

Each rule file also can contain a default answer as the last line, which is used if none of the expressions is true.

The first line of a rule file just contains comments.

General profile beveling rule file

Below is an example of the contents of the general profile beveling rule file profilepdb0001.cfg. The system uses this file when Bevel Generator is run to automatically add predefined bevels.

The file consists of conditional expressions to check where in the profile contour a connection to the related part is located. Based on the location of the connection, the system is directed to another rule file which in turn determines which predefined bevel to add at that location. For instance in the example above, when the connection is located at the baseline of a profile, rule file profilepdb0002.cfg is called.

  • The $ symbol separates the conditional expression from the result which is returned if the condition is true. The result is another rule file in this case.

  • The last line defines the number of the predefined bevel that is added if none of the expressions are true, for example if there is no connection at the relation.

More information on the variables used in the general profile beveling rule file can be found in Weld configuration files, under keyword weld_conn.

Other beveling rule files

The beveling rule files called from the general profile beveling rule file profilepdb0001.cfg contain rules to determine which predefined bevel is to be added at a particular connection (weld line). The rule files are named profilepdb####.cfg.

The regular and weld variables can be used as keywords in these rule files. See Variables and Variables (keywords) in weld configuration files.

In addition, the following keywords are available:

  • R1P – Tangent of the angle between the profile and a line perpendicular to the plate.

  • R1B – Tangent of the angle at the end of a profile between body and related part.

  • R1F – Tangent of the angle at the end of a profile between flange and related part.

The result of a profile bevel rule must be a pre-defined bevel number. Predefined bevels can be set in System Management > Construction > Welds/Bevels > Predefined Bevels. If for a certain case no pre-defined bevel is desired, 0 should be returned.