internal double ScaleSI(IfcDerivedUnitEnum unitType) { IfcDerivedUnit derivedUnit = this[unitType]; if (derivedUnit != null) { return(derivedUnit.SIFactor); } return(1); }
internal double getScaleSI(IfcDerivedUnitEnum unitType) { foreach (IfcUnit u in Units) { IfcDerivedUnit du = u as IfcDerivedUnit; if (du != null) { } } return(1); }
internal IfcDerivedUnit Find(IfcDerivedUnitEnum unit) { foreach (IfcUnit u in Units) { IfcDerivedUnit du = u as IfcDerivedUnit; if (du != null && du.UnitType == unit) { return(du); } } return(null); }
public IfcDerivedUnit this[IfcDerivedUnitEnum unit] { get { foreach (IfcUnit u in Units) { IfcDerivedUnit du = u as IfcDerivedUnit; if (du != null && du.UnitType == unit) { return(du); } } return(null); } }
internal static IfcDerivedUnit Parse(string strDef) { IfcDerivedUnit u = new IfcDerivedUnit(); int ipos = 0; parseFields(u, ParserSTEP.SplitLineFields(strDef), ref ipos); return u; }
internal static void parseFields(IfcDerivedUnit u, List<string> arrFields, ref int ipos) { u.mElements = ParserSTEP.SplitListLinks(arrFields[ipos++]); u.mUnitType = (IfcDerivedUnitEnum)Enum.Parse(typeof(IfcDerivedUnitEnum), arrFields[ipos++].Replace(".", "")); u.mUserDefinedType = arrFields[ipos++]; }
//internal string UserDefinedType { get { } } internal IfcDerivedUnit(IfcDerivedUnit v) : base() { mElements = new List<int>(v.mElements.ToArray()); mUnitType = v.mUnitType; mUserDefinedType = v.mUserDefinedType; }
internal IfcDerivedUnit(DatabaseIfc db, IfcDerivedUnit u) : base(db) { Elements = u.Elements.ConvertAll(x=>db.Factory.Duplicate(x) as IfcDerivedUnitElement); mUnitType = u.mUnitType; mUserDefinedType = u.mUserDefinedType; }