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;
}