4 Replies Latest reply on Sep 5, 2008 3:40 AM by John Sutherland

    Rotation precision

    John Sutherland
      My design rule specifies a trapezium with parallel sides horizontal and other sides sloping inward at rate of 1:20 to vertical.

      This is a perfectly reasonable rule and I can sketch the trapezium with sufficient precision by specifying the slope as 2 deg 87 min.

      However I then want to rotate the trapezium until one sloping side is Vertical.

      Because 1:20 is not an integral number of degrees or radians, I can rotate to nearly vertical but not to vertical. The line's property manager shows the x ordinates of the two ends of the line as being slightly different at 7 decimal places.

      How can I get the line vertical?

        • Rotation precision
          Mahir Abrahim
          First, I'm assuming when you say 1:20 you're talking about 1 unit of horizontal run for every 20 units of vertical rise (as opposed to rise over run). If that's the case atan(1/20) = 2º51'45" = 2.86240523º from vertical, which is not the same as 2º87'. Having the right angle will get you a lot closer.

          Second, SW considers two points coincident/horizontal/vertical if they are at the same linear position down to 8 digits. However, I don't know how close two lines have to be in angle before they are considered parallel/vertical/horizontal. My guess is the angular difference needs to be less than 8 digits. Either that or the endpoints of the lines need to line up in position. If your angle is 8 digits that means it's value is good to +/- 5e-9. So if your trapezoid is at least 2 units tall, your endpoints will be off by 1e-8 units (s = r * theta, 1e-8 = 2 * 5e-9).

          Lastly, what do you mean by "rotate the trapezium"? It sounds like you're trying to apply a 2.87 degree angle to the free rotating trapezoid. This method will be subject to the approximation error mentioned in my second point. If you want a side to be vertical, why don't you just make it vertical via relations? If you want the rotation of the trapezoid to be adjustable, dimension the rotation relative to the angled side instead of the horizontal top or bottom. That way you can just enter a round number like 90deg or 180 deg to make the side vertical. It just seems like you're making things overly complicated.
          • Rotation precision
            Terry Howard
            Nary an angle specified. My general rule is to build the sketch using the design rule given (e.g. 20/1, not the angular equivalent).
            • Rotation precision
              Roland Schwarz
              When you first create your trapezoid, do not use any horizontal or vertical constraints. Constrain the parallel sides with a parallel constraint. Get the trapezoid constrained to a state where you can drag it around but it keeps the same shape.

              THEN anchor the shape to a point and constrain one side vertical.
              • Rotation precision
                John Sutherland
                Thanks All.

                The points I have taken are:-

                1) Go back to the drawing board and define slopes with graphical construction.
                2) Analyse the consequences of making a relation or constraint.