KMotion_dotNet.KM_CoordMotion.GetAxisPosition C# (CSharp) Method

GetAxisPosition() public method

Gets the axis position
public GetAxisPosition ( int axis ) : double
axis int Axis map index
return double
        public double GetAxisPosition(int axis)
        {
            double dest = 0.0;
            try
            {
                var returnval = KM_dotnet_Interop_CoordMotion_Get_AxisPosition(_InstanceHandle, axis, ref dest);
                //process  returnval
            }
            catch (DllNotFoundException e)
            {
                throw new DMException(this, e, String.Format("Dll Not Found Exception thrown :  Caller - [{0}] :: Member - [{1}]",
                    this.ToString(), "GetAxisPosition"));
            }
            catch (EntryPointNotFoundException e)
            {
                throw new DMException(this, e, String.Format("Entry Point Not Found Exception thrown :  Caller - [{0}] :: Member - [{1}]",
                   this.ToString(), "GetAxisPosition"));
            }
            catch (Exception e)
            {
                throw new DMException(this, e, String.Format("General Exception thrown :  Caller - [{0}] :: Member - [{1}]",
                  this.ToString(), "GetAxisPosition"));
            }
            return dest;
        }
KM_CoordMotion