1 Reply Latest reply on Nov 10, 2014 11:01 PM by Vladas Sidlauskas

    API to rotate linear diameter dimension

    Vladas Sidlauskas

      Hello,

       

      Is there any way to rotate a linear diamer dimension via API? Via GUI this can be done by moving the dot above the dimension.

       

      Rotate_Linear_Diameter_Dimension.png

       

      Regards,

      Vladas S.

        • Re: API to rotate linear diameter dimension
          Vladas Sidlauskas

          As a workaround, I was able get the rotation by creating the display dimension in the location that gives an angle needed, setting Diametric and DisplayAsLinear properties and setting Annotation position:

           

          DisplayDimension = Part.AddDimension2(x1, y1, z1)

           

          DisplayDimension.Diametric = true

          DisplayDimension.DisplayAsLinear = true

          Annotation = this.Reference.GetAnnotation()

          Annotation.SetPosition(x2, y2, z2)