public int setLengthUnits(string units) { int ret = libsbmlPINVOKE.Model_setLengthUnits(swigCPtr, units); if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); return ret; }