7.9.3.4.1.4.  Connection points on miters

The creation of connection points on miters is explained below:

In the example, we have a profile with a cross-section of 80 mm x 40 mm and a miter of 45°.

The connection points start_ab, start and start_ba should be positioned for all possible mitre angles.

Connection points with miter angle

Connection points with miter angle

Proceed as follows:

  1. Create the profiles as normal.

  1. In the variable manager [Variable Manager], add the variables SAX, SAY (start side) and EAX, EAY (end side) for entering the mitre angle ; also SDX, SDY, EDX, EDY with status [Status] feature algorithms [Attribute algorithms] as auxiliary variables for calculating the distance plane [Distance plane] (see figure below).

    Variable manager [Variable Manager]

    Variable manager [Variable Manager]

  1. Define the characteristic algorithms [Attribute algorithms] for the auxiliary variables SDX, SDY, EDX, EDY in the variable manager [Variable Manager].

    • SDX = ABS(20*TAN(SAX))

    • SDY = ABS(40*TAN(SAY))

    • EDX = ABS(20*TAN(EAX))

    • EDY = ABS(40*TAN(EAY))

    These variables are used to calculate the displacement of the distance plane [Distance plane] (see following figure).

    Feature algorithms [Attribute algorithms] dialog box

    Feature algorithms [Attribute algorithms] dialog box

  1. Create an absolute plane with the point in [Base point] the center of the profile cross-section.

    (Here in the illustration below "Fixed plane 1")

    Fixed plane 1 - Point of impact [Base point]

    Fixed plane 1 - Point of impact [Base point]

Fixed plane 1 - Settings

Fixed plane 1 - Settings

  1. Click Insert new tarpaulin [Insert new plane...] in the context menu.... [Insert new plane...]

    In the Type list box, select the Level at distance [Plane with distance] item.

    Enter the following in the Distance field.

    IF SAY = 0 THEN SDX ELSE SDY ENDIF

    In the following example, the miter angle is 45°.

    The resulting distance [Distance] is 40 mm.

    Base miter Start

    Base miter Start

Base miter Start

Base miter Start

  1. Click again in the context menu Insert new tarpaulin.... [Insert new plane...]

    In the Type list box, select Layer with rotation [Plane with rotation].

    Enter "SAY" in the Angle field.

    Select the X-axis [X axis] item in the Rotate around [Turn around] list box.

    In our example, "SAY" has 45°.

    => The plane is pivoted by 45° around the X-axis.

    Rotation Miter Start Y

    Rotation Miter Start Y

Rotation Miter Start Y

Rotation Miter Start Y

  1. Create another layer with rotation [Plane with rotation].

    Enter the following under Angle:

    IF SAY = 0 THEN SAX ELSE 0 ENDIF

    (Only SAY or SAX is taken into account)

    In the Rotate around [Turn around] list box, select the Y-axis [Y axis] item.

    In our example, the rotation around the Y-axis is 0°.

Rotation Miter Start X

Rotation Miter Start X

  1. Create a sketch for the extrusion body [Extrusion solid] and enter the following:

    Length:

    IF SDY = 0 THEN SDX*2 ELSE SDY*2 ENDIF

    Check the box next to Only create if applies [Only create, if].

    The cut extrusion [Cut extrusion] should only be created if either SAY or SAX is not equal to '0'.

    Cut extrude 1

    Cut extrude 1

Extrusion body [Extrusion solid]

Extrusion body [Extrusion solid]

  1. Finally, create the sketch with the connection points.

    Sketch with connection points

    Sketch with connection points

The "End" connection points are created in the same way as described above.