
#########
A3DEUnits
#########

.. c:enum:: A3DEUnits

   Unit values used for model files.
   
   Units in a model file are stored as a double value representing millimeters (mm).For example, a value of *1000*\ mm corresponds to a meter (:ref:``kA3DUnitMeter``\ ).
   
   Below is a table showing the correspondence between units and their values in millimeters:
   
   ** **Name**\ ** \| ** **Enumerator**\ ** \| ** **Value (millimeters)**\ **
   
   
   - **Angstrom**\ (Å) \| :c:enumerator:`~kA3DUnitAngstrom` \| *1.e-7*
   - **Astronomical**\ (ua) \| :c:enumerator:`~kA3DUnitAstronomical` \| *1.495978707e14*
   - **Centimeter**\ (cm) \| :c:enumerator:`~kA3DUnitCentimeter` \| *10.0*
   - **Decimeter**\ (dc) \| :c:enumerator:`~kA3DUnitDecimeter` \| *1.e2*
   - **Dekameter**\ (dam) \| :c:enumerator:`~kA3DUnitDekameter` \| *1.e4*
   - **Foot**\ (ft) \| :c:enumerator:`~kA3DUnitFoot` \| *12.0 \* 25.4*
   - **Gigameter**\ (gm) \| :c:enumerator:`~kA3DUnitGigameter` \| *1.e12*
   - **Hectometer**\ (hm) \| :c:enumerator:`~kA3DUnitHectometer` \| *1.e5*
   - **Us survey inch**\ (in) \| :c:enumerator:`~kA3DUnitInch` \| *25.4*
   - **Kilometer**\ (km) \| :c:enumerator:`~kA3DUnitKilometer` \| *1000000.0*
   - **Light year**\ (ly) \| :c:enumerator:`~kA3DUnitLightYear` \| *9.4607304725808e18*
   - **Meter**\ (m) \| :c:enumerator:`~kA3DUnitMeter` \| *1000.0*
   - **Microinch**\ (µin) \| :c:enumerator:`~kA3DUnitMicroInch` \| *2.54e-5*
   - **Micron**\ (µm) \| :c:enumerator:`~kA3DUnitMicron` \| *1.e-3*
   - **Mil**\ (mil) \| :c:enumerator:`~kA3DUnitMil` \| *0.0254*
   - **Mile**\ (mi) \| :c:enumerator:`~kA3DUnitMile` \| *1760.0 \* 3.0 \* 12.0 \* 25.4*
   - **Millimeter**\ (mm) \| :c:enumerator:`~kA3DUnitMillimeter` \| *1.0*
   - **Nanometer**\ (nm) \| :c:enumerator:`~kA3DUnitNanometer` \| *1.e-6*
   - **Parsec**\ (pc) \| :c:enumerator:`~kA3DUnitParsec` \| *64800.0 / PI \* 1.495978707e14*
   - **Picas**\ (pica) \| :c:enumerator:`~kA3DUnitPicas` \| *25.4 / 6.0*
   - **Points**\ (points) \| :c:enumerator:`~kA3DUnitPoint` \| *25.4 / 72.0*
   - **Us survey foot**\ (ft) \| :c:enumerator:`~kA3DUnitUSSurveyFoot` \| *1200000.0 / 3937.0*
   - **Inch**\ (in) \| :c:enumerator:`~kA3DUnitUSSurveyInch` \| *100000.0 / 3937.0*
   - **Mile**\ (mi) \| :c:enumerator:`~kA3DUnitUSSurveyMile` \| *1760.0 \* 3600000.0 / 3937.0*
   - **Us survey yard**\ (yd) \| :c:enumerator:`~kA3DUnitUSSurveyYard` \| *3.0 \* 1200000.0 / 3937.0*
   - **Yard**\ (yd) \| :c:enumerator:`~kA3DUnitYard` \| *3.0 \* 12.0 \* 25.4*
   
   It is possible to convert a double value to an :c:enum:`~A3DEUnits`\ with :c:func:`~A3DUnitGetFromValue`\ , and back to ``A3DDouble``\ with :c:func:`~A3DUnitGetFromEnum`\ .
   
   
   
      ::
   
         embed:rst:inline :doc:`/guide/units`
   
      , :c:func:`~A3DUnitGetFromEnum`\ , :c:func:`~A3DUnitGetFromValue`\ , :c:func:`~A3DAsmModelFileGetUnit`
   
   
   
      3.0
   
   
   
   Index
   =====
   
   .. rubric:: Enumerators
   
   
   .. rst-class:: api-xref-list
   
   
   * :c:enumerator:`~kA3DUnitPoint`
   * :c:enumerator:`~kA3DUnitInch`
   * :c:enumerator:`~kA3DUnitMillimeter`
   * :c:enumerator:`~kA3DUnitCentimeter`
   * :c:enumerator:`~kA3DUnitPicas`
   * :c:enumerator:`~kA3DUnitFoot`
   * :c:enumerator:`~kA3DUnitYard`
   * :c:enumerator:`~kA3DUnitMeter`
   * :c:enumerator:`~kA3DUnitKilometer`
   * :c:enumerator:`~kA3DUnitMile`
   * :c:enumerator:`~kA3DUnitMicroInch`
   * :c:enumerator:`~kA3DUnitMil`
   * :c:enumerator:`~kA3DUnitAngstrom`
   * :c:enumerator:`~kA3DUnitNanometer`
   * :c:enumerator:`~kA3DUnitMicron`
   * :c:enumerator:`~kA3DUnitDecimeter`
   * :c:enumerator:`~kA3DUnitDekameter`
   * :c:enumerator:`~kA3DUnitHectometer`
   * :c:enumerator:`~kA3DUnitGigameter`
   * :c:enumerator:`~kA3DUnitAstronomical`
   * :c:enumerator:`~kA3DUnitLightYear`
   * :c:enumerator:`~kA3DUnitParsec`
   * :c:enumerator:`~kA3DUnitUSSurveyFoot`
   * :c:enumerator:`~kA3DUnitUSSurveyInch`
   * :c:enumerator:`~kA3DUnitUSSurveyYard`
   * :c:enumerator:`~kA3DUnitUSSurveyMile`
   * :c:enumerator:`~kA3DUnitUnknown`
   
   



.. rst-class:: kind-group kind-enumerator

.. rubric:: Enumerators
   :class: kind-group-title


.. c:enumerator:: kA3DUnitPoint

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitPoint** = ``0``
      
      Point.
      



.. c:enumerator:: kA3DUnitInch

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitInch**
      
      Inch (in).
      



.. c:enumerator:: kA3DUnitMillimeter

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitMillimeter**
      
      Millimeter (mm).
      



.. c:enumerator:: kA3DUnitCentimeter

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitCentimeter**
      
      Centimeter (cm).
      



.. c:enumerator:: kA3DUnitPicas

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitPicas**
      
      Picas.
      



.. c:enumerator:: kA3DUnitFoot

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitFoot**
      
      Foot (ft).
      



.. c:enumerator:: kA3DUnitYard

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitYard**
      
      Yard (yd).
      



.. c:enumerator:: kA3DUnitMeter

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitMeter**
      
      Meter (m).
      



.. c:enumerator:: kA3DUnitKilometer

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitKilometer**
      
      Kilometer (km).
      



.. c:enumerator:: kA3DUnitMile

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitMile**
      
      Mile (mi).
      



.. c:enumerator:: kA3DUnitMicroInch

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitMicroInch**
      
      Micro Inch (µin).
      



.. c:enumerator:: kA3DUnitMil

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitMil**
      
      Mil.
      



.. c:enumerator:: kA3DUnitAngstrom

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitAngstrom**
      
      Angstrom (Å).
      



.. c:enumerator:: kA3DUnitNanometer

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitNanometer**
      
      Nanometer nm).
      



.. c:enumerator:: kA3DUnitMicron

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitMicron**
      
      Micron (µ).
      



.. c:enumerator:: kA3DUnitDecimeter

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitDecimeter**
      
      Decimeter (dc).
      



.. c:enumerator:: kA3DUnitDekameter

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitDekameter**
      
      Dekameter (dam).
      



.. c:enumerator:: kA3DUnitHectometer

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitHectometer**
      
      Hectometer (hm).
      



.. c:enumerator:: kA3DUnitGigameter

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitGigameter**
      
      Gigameter (gm).
      



.. c:enumerator:: kA3DUnitAstronomical

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitAstronomical**
      
      Astronomical (ua).
      



.. c:enumerator:: kA3DUnitLightYear

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitLightYear**
      
      Light year (ly).
      



.. c:enumerator:: kA3DUnitParsec

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitParsec**
      
      Parsec (pc).
      



.. c:enumerator:: kA3DUnitUSSurveyFoot

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitUSSurveyFoot**
      
      US Survey foot (ft).
      



.. c:enumerator:: kA3DUnitUSSurveyInch

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitUSSurveyInch**
      
      US survey inch (in).
      



.. c:enumerator:: kA3DUnitUSSurveyYard

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitUSSurveyYard**
      
      US survey yard (yd).
      



.. c:enumerator:: kA3DUnitUSSurveyMile

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitUSSurveyMile**
      
      US survey mile (mi).
      



.. c:enumerator:: kA3DUnitUnknown

      .. rst-class:: sig-pretty-signature
      
         | **kA3DUnitUnknown**
      
      Unknown.
      




