public static string getCurrentEtabsForceUnit(cSapModel mySapModel) { etabsPresentUnits LU = new etabsPresentUnits(mySapModel); string un = "null"; switch (LU.forceUnits) { case eForce.N: un = "N"; break; case eForce.tonf: un = "ton"; break; case eForce.kN: un = "KN"; break; case eForce.lb: un = "lb"; break; case eForce.kgf: un = "kg"; break; case eForce.kip: un = "kip"; break; } return(un); }
public static string getCurrentEtabsLengthUnit(cSapModel mySapModel) { etabsPresentUnits LU = new etabsPresentUnits(mySapModel); string un = "null"; switch (LU.lengthUnits) { case eLength.cm: un = "cm"; break; case eLength.ft: un = "ft"; break; case eLength.inch: un = "in"; break; case eLength.m: un = "m"; break; case eLength.micron: un = "micron"; break; case eLength.mm: un = "mm"; break; } return(un); }