8 Replies Latest reply on Jan 13, 2016 2:10 AM by msdobrescu

    SetDocumentRulerUnits

    msdobrescu

      Hello,

       

      Here is an excerpt from Illustrator SDK:

       

      /** Retrieves the current unit of measurement, shown in the ruler and

              displayed in dialog boxes.

                  @param units The new ruler unit, an \c #AIDocumentRulerUnitValue.

              */

          AIAPI AIErr (*GetDocumentRulerUnits) ( ai::int16 *units );

       

          /** Sets the current unit of measurement, shown in the ruler and

              displayed in dialog boxes. Can be used only when reading

              a document.

                  @param units [out] A buffer in which to return the ruler unit,

                  an \c #AIDocumentRulerUnitValue.

              */

          AIAPI AIErr (*SetDocumentRulerUnits) ( ai::int16 units );

       

      Is the documentation mistaken for SetDocumentRulerUnits?

      How is the units parameter out?

      What means "Can be used only when reading a document"? Is there a code sample on how is this used?

       

      Thank you.