This commit is contained in:
Jon Mirtschin 2022-08-12 16:04:13 +10:00
Родитель 60f87d5db4
Коммит c08f8d5124
47 изменённых файлов: 559 добавлений и 573 удалений

Просмотреть файл

@ -967,35 +967,50 @@ namespace GeometryGym.Ifc
internal IfcAxis2Placement2D m2DPlaceOrigin;
internal IfcCartesianTransformationOperator3D mTransformationPlaneXY;
public IfcConversionBasedUnit ConversionUnit(IfcConversionBasedUnit.Common name)
private Dictionary<IfcConversionBasedUnit.CommonUnitName, IfcConversionBasedUnit> mDictionaryConversionBasedUnits = new Dictionary<IfcConversionBasedUnit.CommonUnitName, IfcConversionBasedUnit>();
private Dictionary<string, IfcSIUnit> mDictionarySIUnits = new Dictionary<string, IfcSIUnit>();
private Dictionary<IfcUnitAssignment.Length, IfcUnit> mDictionaryLengthUnits = new Dictionary<IfcUnitAssignment.Length, IfcUnit>();
public IfcSIUnit SIUnit(IfcUnitEnum unitEnum, IfcSIPrefix prefix, IfcSIUnitName name)
{
string key = unitEnum.ToString() + prefix.ToString() + name.ToString();
if (mDictionarySIUnits.TryGetValue(key, out IfcSIUnit existing))
return existing;
IfcSIUnit unit = new IfcSIUnit(mDatabase, unitEnum, prefix, name);
mDictionarySIUnits[key] = unit;
return unit;
}
public IfcConversionBasedUnit ConversionUnit(IfcConversionBasedUnit.CommonUnitName name)
{
if (mDictionaryConversionBasedUnits.TryGetValue(name, out IfcConversionBasedUnit exisiting))
return exisiting;
IfcUnitAssignment assignment = (mDatabase.Context == null ? null : mDatabase.Context.UnitsInContext);
string nameString = name.ToString().Replace("_", "");
IfcNamedUnit unit = assignment == null ? null : assignment[IfcUnitEnum.LENGTHUNIT];
if (unit == null)
unit = SILength;
if (name == IfcConversionBasedUnit.Common.inch)
if (name == IfcConversionBasedUnit.CommonUnitName.inch)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.LENGTHUNIT, nameString, new IfcMeasureWithUnit(new IfcLengthMeasure(unit.SIFactor * 0.0254), unit));
}
if (name == IfcConversionBasedUnit.Common.foot)
if (name == IfcConversionBasedUnit.CommonUnitName.foot)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.LENGTHUNIT, nameString, new IfcMeasureWithUnit(new IfcLengthMeasure(unit.SIFactor * IfcUnitAssignment.FeetToMetre), unit));
}
if (name == IfcConversionBasedUnit.Common.yard)
if (name == IfcConversionBasedUnit.CommonUnitName.yard)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.LENGTHUNIT, nameString, new IfcMeasureWithUnit(new IfcLengthMeasure(unit.SIFactor * 0.914), unit));
}
if (name == IfcConversionBasedUnit.Common.mile)
if (name == IfcConversionBasedUnit.CommonUnitName.mile)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
@ -1006,35 +1021,35 @@ namespace GeometryGym.Ifc
unit = assignment == null ? null: assignment[IfcUnitEnum.AREAUNIT];
if (unit == null)
unit = SIArea;
if (name == IfcConversionBasedUnit.Common.square_inch)
if (name == IfcConversionBasedUnit.CommonUnitName.square_inch)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.AREAUNIT, nameString, new IfcMeasureWithUnit(new IfcAreaMeasure(unit.SIFactor * 0.0006452), unit));
}
if (name == IfcConversionBasedUnit.Common.square_foot)
if (name == IfcConversionBasedUnit.CommonUnitName.square_foot)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.AREAUNIT, nameString, new IfcMeasureWithUnit(new IfcAreaMeasure(unit.SIFactor * 0.09290), unit));
}
if (name == IfcConversionBasedUnit.Common.square_yard)
if (name == IfcConversionBasedUnit.CommonUnitName.square_yard)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.AREAUNIT, nameString, new IfcMeasureWithUnit(new IfcAreaMeasure(unit.SIFactor * 0.83612736), unit));
}
if (name == IfcConversionBasedUnit.Common.acre)
if (name == IfcConversionBasedUnit.CommonUnitName.acre)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.AREAUNIT, nameString, new IfcMeasureWithUnit(new IfcAreaMeasure(unit.SIFactor * 4046.86), unit));
}
if (name == IfcConversionBasedUnit.Common.square_mile)
if (name == IfcConversionBasedUnit.CommonUnitName.square_mile)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
@ -1045,70 +1060,70 @@ namespace GeometryGym.Ifc
unit = assignment == null ? null : assignment[IfcUnitEnum.VOLUMEUNIT];
if (unit == null)
unit = SIVolume;
if (name == IfcConversionBasedUnit.Common.cubic_inch)
if (name == IfcConversionBasedUnit.CommonUnitName.cubic_inch)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.00001639), unit));
}
if (name == IfcConversionBasedUnit.Common.cubic_foot)
if (name == IfcConversionBasedUnit.CommonUnitName.cubic_foot)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.02832), unit));
}
if (name == IfcConversionBasedUnit.Common.cubic_yard)
if (name == IfcConversionBasedUnit.CommonUnitName.cubic_yard)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.7636), unit));
}
if (name == IfcConversionBasedUnit.Common.litre)
if (name == IfcConversionBasedUnit.CommonUnitName.litre)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.001), unit));
}
if (name == IfcConversionBasedUnit.Common.fluid_ounce_UK)
if (name == IfcConversionBasedUnit.CommonUnitName.fluid_ounce_UK)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.0000284130625), unit));
}
if (name == IfcConversionBasedUnit.Common.fluid_ounce_US)
if (name == IfcConversionBasedUnit.CommonUnitName.fluid_ounce_US)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.00002957353), unit));
}
if (name == IfcConversionBasedUnit.Common.pint_UK)
if (name == IfcConversionBasedUnit.CommonUnitName.pint_UK)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.000568), unit));
}
if (name == IfcConversionBasedUnit.Common.pint_US)
if (name == IfcConversionBasedUnit.CommonUnitName.pint_US)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.000473), unit));
}
if (name == IfcConversionBasedUnit.Common.gallon_UK)
if (name == IfcConversionBasedUnit.CommonUnitName.gallon_UK)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
return conversionBasedUnit;
return new IfcConversionBasedUnit(IfcUnitEnum.VOLUMEUNIT, nameString, new IfcMeasureWithUnit(new IfcVolumeMeasure(unit.SIFactor * 0.004546), unit));
}
if (name == IfcConversionBasedUnit.Common.gallon_UK)
if (name == IfcConversionBasedUnit.CommonUnitName.gallon_UK)
{
IfcConversionBasedUnit conversionBasedUnit = unit as IfcConversionBasedUnit;
if (conversionBasedUnit != null && string.Compare(conversionBasedUnit.Name, nameString, true) == 0)
@ -1117,7 +1132,7 @@ namespace GeometryGym.Ifc
}
unit = assignment == null ? null :assignment[IfcUnitEnum.PLANEANGLEUNIT];
if (name == IfcConversionBasedUnit.Common.degree)
if (name == IfcConversionBasedUnit.CommonUnitName.degree)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.PLANEANGLEUNIT, IfcSIPrefix.NONE, IfcSIUnitName.RADIAN);
@ -1131,7 +1146,7 @@ namespace GeometryGym.Ifc
}
unit = assignment == null ? null : assignment[IfcUnitEnum.MASSUNIT];
if (name == IfcConversionBasedUnit.Common.ounce)
if (name == IfcConversionBasedUnit.CommonUnitName.ounce)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.MASSUNIT, IfcSIPrefix.NONE, IfcSIUnitName.GRAM);
@ -1143,7 +1158,7 @@ namespace GeometryGym.Ifc
}
return new IfcConversionBasedUnit(IfcUnitEnum.MASSUNIT, nameString, new IfcMeasureWithUnit(new IfcMassMeasure(unit.SIFactor * 28.35), unit));
}
if (name == IfcConversionBasedUnit.Common.pound)
if (name == IfcConversionBasedUnit.CommonUnitName.pound)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.MASSUNIT, IfcSIPrefix.NONE, IfcSIUnitName.GRAM);
@ -1155,7 +1170,7 @@ namespace GeometryGym.Ifc
}
return new IfcConversionBasedUnit(IfcUnitEnum.MASSUNIT, nameString, new IfcMeasureWithUnit(new IfcMassMeasure(unit.SIFactor * 454), unit));
}
if (name == IfcConversionBasedUnit.Common.ton_UK)
if (name == IfcConversionBasedUnit.CommonUnitName.ton_UK)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.MASSUNIT, IfcSIPrefix.NONE, IfcSIUnitName.GRAM);
@ -1167,7 +1182,7 @@ namespace GeometryGym.Ifc
}
return new IfcConversionBasedUnit(IfcUnitEnum.MASSUNIT, nameString, new IfcMeasureWithUnit(new IfcMassMeasure(unit.SIFactor * 1016046.9088), unit));
}
if (name == IfcConversionBasedUnit.Common.ton_US)
if (name == IfcConversionBasedUnit.CommonUnitName.ton_US)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.MASSUNIT, IfcSIPrefix.NONE, IfcSIUnitName.GRAM);
@ -1181,7 +1196,7 @@ namespace GeometryGym.Ifc
}
unit = assignment == null ? null : assignment[IfcUnitEnum.FORCEUNIT];
if (name == IfcConversionBasedUnit.Common.lbf)
if (name == IfcConversionBasedUnit.CommonUnitName.lbf)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.FORCEUNIT, IfcSIPrefix.NONE, IfcSIUnitName.NEWTON);
@ -1193,7 +1208,7 @@ namespace GeometryGym.Ifc
}
return new IfcConversionBasedUnit(IfcUnitEnum.FORCEUNIT, nameString, new IfcMeasureWithUnit(new IfcMassMeasure(unit.SIFactor * 4.4482216153), unit));
}
if (name == IfcConversionBasedUnit.Common.kip)
if (name == IfcConversionBasedUnit.CommonUnitName.kip)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.FORCEUNIT, IfcSIPrefix.NONE, IfcSIUnitName.NEWTON);
@ -1207,7 +1222,7 @@ namespace GeometryGym.Ifc
}
unit = assignment == null ? null : assignment[IfcUnitEnum.PRESSUREUNIT];
if (name == IfcConversionBasedUnit.Common.kip)
if (name == IfcConversionBasedUnit.CommonUnitName.kip)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.PRESSUREUNIT, IfcSIPrefix.NONE, IfcSIUnitName.PASCAL);
@ -1219,7 +1234,7 @@ namespace GeometryGym.Ifc
}
return new IfcConversionBasedUnit(IfcUnitEnum.FORCEUNIT, nameString, new IfcMeasureWithUnit(new IfcMassMeasure(unit.SIFactor * 6894.7572932), unit));
}
if (name == IfcConversionBasedUnit.Common.ksi)
if (name == IfcConversionBasedUnit.CommonUnitName.ksi)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.PRESSUREUNIT, IfcSIPrefix.NONE, IfcSIUnitName.PASCAL);
@ -1232,7 +1247,7 @@ namespace GeometryGym.Ifc
return new IfcConversionBasedUnit(IfcUnitEnum.FORCEUNIT, nameString, new IfcMeasureWithUnit(new IfcMassMeasure(unit.SIFactor * 6894757.2932), unit));
}
unit = assignment == null ? null : assignment[IfcUnitEnum.TIMEUNIT];
if (name == IfcConversionBasedUnit.Common.minute)
if (name == IfcConversionBasedUnit.CommonUnitName.minute)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.TIMEUNIT, IfcSIPrefix.NONE, IfcSIUnitName.SECOND);
@ -1244,7 +1259,7 @@ namespace GeometryGym.Ifc
}
return new IfcConversionBasedUnit(IfcUnitEnum.TIMEUNIT, nameString, new IfcMeasureWithUnit(new IfcTimeMeasure(unit.SIFactor*60), unit));
}
if (name == IfcConversionBasedUnit.Common.hour)
if (name == IfcConversionBasedUnit.CommonUnitName.hour)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.TIMEUNIT, IfcSIPrefix.NONE, IfcSIUnitName.SECOND);
@ -1256,7 +1271,7 @@ namespace GeometryGym.Ifc
}
return new IfcConversionBasedUnit(IfcUnitEnum.TIMEUNIT, nameString, new IfcMeasureWithUnit(new IfcTimeMeasure(unit.SIFactor * 3600), unit));
}
if (name == IfcConversionBasedUnit.Common.day)
if (name == IfcConversionBasedUnit.CommonUnitName.day)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.TIMEUNIT, IfcSIPrefix.NONE, IfcSIUnitName.SECOND);
@ -1270,7 +1285,7 @@ namespace GeometryGym.Ifc
}
unit = assignment == null ? null : assignment[IfcUnitEnum.ENERGYUNIT];
if (name == IfcConversionBasedUnit.Common.btu)
if (name == IfcConversionBasedUnit.CommonUnitName.btu)
{
if (unit == null)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.ENERGYUNIT, IfcSIPrefix.NONE, IfcSIUnitName.JOULE);
@ -1286,15 +1301,21 @@ namespace GeometryGym.Ifc
}
public IfcUnit LengthUnit(IfcUnitAssignment.Length length)
{
if (mDictionaryLengthUnits.TryGetValue(length, out IfcUnit existing))
return existing;
IfcUnit unit = null;
if (length == IfcUnitAssignment.Length.Millimetre)
return new IfcSIUnit(mDatabase, IfcUnitEnum.LENGTHUNIT, IfcSIPrefix.MILLI, IfcSIUnitName.METRE);
if (length == IfcUnitAssignment.Length.Centimetre)
return new IfcSIUnit(mDatabase, IfcUnitEnum.LENGTHUNIT, IfcSIPrefix.CENTI, IfcSIUnitName.METRE);
if (length == IfcUnitAssignment.Length.Inch)
return ConversionUnit(IfcConversionBasedUnit.Common.inch);
if (length == IfcUnitAssignment.Length.Foot)
return ConversionUnit(IfcConversionBasedUnit.Common.foot);
return SILength;
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.LENGTHUNIT, IfcSIPrefix.MILLI, IfcSIUnitName.METRE);
else if (length == IfcUnitAssignment.Length.Centimetre)
unit = new IfcSIUnit(mDatabase, IfcUnitEnum.LENGTHUNIT, IfcSIPrefix.CENTI, IfcSIUnitName.METRE);
else if (length == IfcUnitAssignment.Length.Inch)
unit = ConversionUnit(IfcConversionBasedUnit.CommonUnitName.inch);
else if (length == IfcUnitAssignment.Length.Foot)
unit = ConversionUnit(IfcConversionBasedUnit.CommonUnitName.foot);
else
unit = SILength;
mDictionaryLengthUnits[length] = unit;
return unit;
}
internal IfcSIUnit mSILength, mSIArea, mSIVolume;
public IfcSIUnit SILength { get { if(mSILength == null) mSILength = new IfcSIUnit(mDatabase, IfcUnitEnum.LENGTHUNIT, IfcSIPrefix.NONE, IfcSIUnitName.METRE); return mSILength; } }
@ -2084,11 +2105,14 @@ namespace GeometryGym.Ifc
public void ReadStepFile(string stepFilePath)
{
initializeImport();
Debug.WriteLine(DateTime.Now.ToString("HH:mm:ss:ffff") + " - Started Reading File");
var now = DateTime.Now;
Debug.WriteLine(DateTime.Now.ToString("HH:mm:ss:ffff") + " - Started Reading File " + stepFilePath);
using (StreamReader reader = new StreamReader(stepFilePath))
{
string line = "";
while((line = reader.ReadLine()) != null)
while ((line = reader.ReadLine()) != null)
{
string str = line.Trim();
if (string.IsNullOrEmpty(str))
@ -2116,7 +2140,7 @@ namespace GeometryGym.Ifc
bool aborted = false;
try
{
Parallel.ForEach(File.ReadAllLines(stepFilePath), parallelOptions, x =>
Parallel.ForEach(File.ReadLines(stepFilePath), parallelOptions, x =>
{
processDataLine(x);
parallelOptions.CancellationToken.ThrowIfCancellationRequested();
@ -2131,13 +2155,20 @@ namespace GeometryGym.Ifc
new SerializationIfcSTEP(mDatabase).importLines(File.ReadAllLines(stepFilePath));
return;
}
var timespan = DateTime.Now.Subtract(now);
Debug.WriteLine(DateTime.Now.ToString("HH:mm:ss:ffff") + " - File Read duration " + timespan.TotalSeconds);
processObjects();
timespan = DateTime.Now.Subtract(now);
Debug.WriteLine(DateTime.Now.ToString("HH:mm:ss:ffff") + " - Read duration " + timespan.TotalSeconds);
}
public void ReadStepStream(TextReader stream)
{
initializeImport();
DateTime startTime = DateTime.Now;
string line = "";
Debug.WriteLine(DateTime.Now.ToString("HH:mm:ss:ffff") + " - Started Reading File");
Debug.WriteLine(startTime.ToString("HH:mm:ss:ffff") + " - Started Reading File");
while ((line = stream.ReadLine()) != null)
{
if (string.IsNullOrEmpty(line))
@ -2190,6 +2221,7 @@ namespace GeometryGym.Ifc
Debug.WriteLine(DateTime.Now.ToString("HH:mm:ss:ffff") + " - Completed Process Data Lines");
processObjects();
Debug.WriteLine(DateTime.Now.ToString("HH:mm:ss:ffff") + " - Read Completed " + (DateTime.Now - startTime).ToString());
}
internal void importLines(IEnumerable<string> lines)
@ -2402,43 +2434,25 @@ namespace GeometryGym.Ifc
obj.mStepId = stepID;
mDictionary[stepID] = obj;
ConstructorClass constructorClass = new ConstructorClass(obj, def);
//Todo add more primitive classes
if (obj is IfcCartesianPoint || obj is IfcCartesianPointList || obj is IfcDirection ||
if(obj is IfcTessellatedFaceSet || obj is IfcRelationship)
mConstructorsBag.Add(constructorClass);
else if (obj is IfcCartesianPoint || obj is IfcCartesianPointList || obj is IfcDirection ||
obj is IfcIndexedPolygonalFace || def.IndexOf('#') < 0)
mPrimitiveConstructors.Add(constructorClass);
else
mConstructorsBag.Add(constructorClass);
int pos = 0;
IfcRoot root = obj as IfcRoot;
if(root != null)
{
if(obj is IfcRoot root)
root.GlobalId = ParserSTEP.StripString(def, ref pos, def.Length);
}
else
{
IfcProperty property = obj as IfcProperty;
if(property != null)
property.Name = ParserSTEP.StripString(def, ref pos, def.Length);
else
{
IfcPropertyTemplate propertyTemplate = obj as IfcPropertyTemplate;
if(propertyTemplate != null)
propertyTemplate.Name = ParserSTEP.StripString(def, ref pos, def.Length);
else
{
IfcPhysicalQuantity quantity = obj as IfcPhysicalQuantity;
if(quantity != null)
quantity.Name = ParserSTEP.StripString(def, ref pos, def.Length);
else
{
IfcMaterialConstituent materialConstituent = obj as IfcMaterialConstituent;
if(materialConstituent != null)
materialConstituent.Name = ParserSTEP.StripString(def, ref pos, def.Length);
}
}
}
}
else if(obj is IfcProperty property)
property.Name = ParserIfc.Decode(ParserSTEP.StripString(def, ref pos, def.Length));
else if(obj is IfcPropertyTemplate propertyTemplate)
propertyTemplate.Name = ParserIfc.Decode(ParserSTEP.StripString(def, ref pos, def.Length));
else if(obj is IfcPhysicalQuantity quantity)
quantity.Name = ParserIfc.Decode(ParserSTEP.StripString(def, ref pos, def.Length));
else if(obj is IfcMaterialConstituent materialConstituent)
materialConstituent.Name = ParserIfc.Decode(ParserSTEP.StripString(def, ref pos, def.Length));
}
}
catch (Exception) { }
@ -2704,7 +2718,17 @@ namespace GeometryGym.Ifc
lines.Add("/* organization */ ('" + ParserIfc.Encode(organizationName) + "'),");
lines.Add("/* preprocessor_version */ '" + ParserIfc.Encode(mDatabase.Factory.ToolkitName) + "',");
lines.Add("/* originating_system */ '" + ParserIfc.Encode(mDatabase.Factory.ApplicationFullName) + "',");
lines.Add("/* authorization */ '" + (string.IsNullOrEmpty(mDatabase.Authorization) ? "None" : ParserIfc.Encode(mDatabase.Authorization)) + "');");
lines.Add("/* authorization */ '" + (string.IsNullOrEmpty(mDatabase.Authorization) ? "None" : ParserIfc.Encode(mDatabase.Authorization)) + "'");
if(mDatabase.Comments.Count > 0)
{
foreach (string comment in mDatabase.Comments)
{
if(!string.IsNullOrEmpty(comment))
lines.Add("/* " + ParserIfc.Encode(comment) + "*/");
}
}
lines.Add(");");
lines.Add("");
ReleaseVersion release = mDatabase.Release;
string version = release.ToString().ToUpper();

Просмотреть файл

@ -877,7 +877,7 @@ namespace GeometryGym.Ifc
private Dictionary<string, IfcProperty> mHasProperties = new Dictionary<string, IfcProperty>();// : SET [1:?] OF IfcProperty;
public string UsageName { get { return mUsageName; } set { mUsageName = (string.IsNullOrEmpty(value) ? "Unknown" : value); } }
public ReadOnlyDictionary<string, IfcProperty> HasProperties { get { return new ReadOnlyDictionary<string, IfcProperty>(mHasProperties); } }
public Dictionary<string, IfcProperty> HasProperties { get { return mHasProperties; } }
internal IfcComplexProperty() : base() { }
internal IfcComplexProperty(DatabaseIfc db, IfcComplexProperty p, DuplicateOptions options) : base(db, p, options) { mUsageName = p.mUsageName; foreach(IfcProperty prop in p.HasProperties.Values) addProperty( db.Factory.DuplicateProperty(prop)); }
@ -1644,7 +1644,7 @@ namespace GeometryGym.Ifc
[Serializable]
public partial class IfcConversionBasedUnit : IfcNamedUnit, IfcResourceObjectSelect, NamedObjectIfc // SUPERTYPE OF(IfcConversionBasedUnitWithOffset)
{
public enum Common
public enum CommonUnitName
{
inch, foot, yard, mile, square_inch, square_foot, square_yard, acre, square_mile, cubic_inch, cubic_foot, cubic_yard, litre, fluid_ounce_UK,
fluid_ounce_US, pint_UK, pint_US, gallon_UK, gallon_US, degree, ounce, pound, ton_UK, ton_US, lbf, kip, psi, ksi, minute, hour, day, btu
@ -2275,10 +2275,20 @@ namespace GeometryGym.Ifc
public partial class IfcCurveStyleFontAndScaling : IfcPresentationItem, IfcCurveFontOrScaledCurveFontSelect
{
internal string mName; // : OPTIONAL IfcLabel;
internal int mCurveFont;// : IfcCurveStyleFontSelect;
internal IfcPositiveRatioMeasure mCurveFontScaling;//: IfcPositiveRatioMeasure;
internal IfcCurveStyleFontSelect mCurveStyleFont;// : IfcCurveStyleFontSelect;
internal double mCurveFontScaling;//: IfcPositiveRatioMeasure;
internal IfcCurveStyleFontAndScaling() : base() { }
// internal IfcCurveStyleFontAndScaling(IfcCurveStyleFontAndScaling i) : base() { mName = i.mName; mCurveFont = i.mCurveFont; mCurveFontScaling = i.mCurveFontScaling; }
internal IfcCurveStyleFontAndScaling(DatabaseIfc db, IfcCurveStyleFontAndScaling f) : base(db, f)
{
mName = f.mName;
mCurveStyleFont = db.Factory.Duplicate(f.mCurveStyleFont);
mCurveFontScaling = f.mCurveFontScaling;
}
public IfcCurveStyleFontAndScaling(IfcCurveStyleFontSelect curveStyleFont, double scaling)
{
mCurveStyleFont = curveStyleFont;
mCurveFontScaling = scaling;
}
}
public interface IfcCurveFontOrScaledCurveFontSelect : IBaseClassIfc { } //SELECT (IfcCurveStyleFontAndScaling ,IfcCurveStyleFontSelect);
[Serializable]

Просмотреть файл

@ -307,7 +307,6 @@ namespace GeometryGym.Ifc
public bool ModelorDraughting { get { return mModelorDraughting; } set { mModelorDraughting = value; } }
internal IfcFillAreaStyle() : base() { }
//internal IfcFillAreaStyle(IfcFillAreaStyle i) : base(i) { mFillStyles = new List<int>(i.mFillStyles.ToArray()); }
public IfcFillAreaStyle(IfcFillStyleSelect style) : base(style.Database) { mFillStyles.Add(style); }
public IfcFillAreaStyle(IEnumerable<IfcFillStyleSelect> styles) : base(styles.First().Database) { mFillStyles.AddRange(styles); }
internal IfcFillAreaStyle(DatabaseIfc db, IfcFillAreaStyle fillAreaStyle) : base(db, fillAreaStyle) { FillStyles.AddRange(fillAreaStyle.FillStyles.Select(x => db.Factory.Duplicate(x) as IfcFillStyleSelect)); }

Просмотреть файл

@ -1598,17 +1598,17 @@ namespace GeometryGym.Ifc
internal IfcProject() : base() { }
internal IfcProject(DatabaseIfc db, IfcProject p, DuplicateOptions options) : base(db, p, options) { }
public IfcProject(IfcBuilding building, string projectNumber) : this(building.mDatabase, projectNumber) { new IfcRelAggregates(this, building); }
public IfcProject(IfcSite site, string projectNumber) : this(site.mDatabase, projectNumber) { new IfcRelAggregates(this, site); }
public IfcProject(IfcBuilding building, string projectNumber, IfcUnitAssignment units) : this(projectNumber, units) { new IfcRelAggregates(this, building); }
public IfcProject(IfcBuilding building, string projectNumber, IfcUnitAssignment.Length length) : this(building.mDatabase, projectNumber, length) { new IfcRelAggregates(this, building); }
public IfcProject(IfcFacility facility, string projectNumber, IfcUnitAssignment units) : this(projectNumber, units) { new IfcRelAggregates(this, facility); }
public IfcProject(IfcFacility facility, string projectNumber, IfcUnitAssignment.Length length) : this(facility.mDatabase, projectNumber, length) { new IfcRelAggregates(this, facility); }
public IfcProject(IfcSite site, string projectNumber, IfcUnitAssignment units) : this(projectNumber, units) { new IfcRelAggregates(this, site); }
public IfcProject(IfcSite site, string projectNumber, IfcUnitAssignment.Length length) : this(site.mDatabase, projectNumber, length) { new IfcRelAggregates(this, site); }
public IfcProject(IfcSpatialZone zone, string projectNumber, IfcUnitAssignment units) : this(projectNumber, units) { new IfcRelAggregates(this, zone); }
public IfcProject(IfcSpatialZone zone, string projectNumber, IfcUnitAssignment.Length length) : this(zone.mDatabase, projectNumber, length) { new IfcRelAggregates(this, zone); }
public IfcProject(DatabaseIfc db, string projectNumber) : base(db, projectNumber)
public IfcProject(IfcBuilding building, string name) : this(building.mDatabase, name) { new IfcRelAggregates(this, building); }
public IfcProject(IfcSite site, string name) : this(site.mDatabase, name) { new IfcRelAggregates(this, site); }
public IfcProject(IfcBuilding building, string name, IfcUnitAssignment units) : this(name, units) { new IfcRelAggregates(this, building); }
public IfcProject(IfcBuilding building, string name, IfcUnitAssignment.Length length) : this(building.mDatabase, name, length) { new IfcRelAggregates(this, building); }
public IfcProject(IfcFacility facility, string name, IfcUnitAssignment units) : this(name, units) { new IfcRelAggregates(this, facility); }
public IfcProject(IfcFacility facility, string name, IfcUnitAssignment.Length length) : this(facility.mDatabase, name, length) { new IfcRelAggregates(this, facility); }
public IfcProject(IfcSite site, string name, IfcUnitAssignment units) : this(name, units) { new IfcRelAggregates(this, site); }
public IfcProject(IfcSite site, string name, IfcUnitAssignment.Length length) : this(site.mDatabase, name, length) { new IfcRelAggregates(this, site); }
public IfcProject(IfcSpatialZone zone, string name, IfcUnitAssignment units) : this(name, units) { new IfcRelAggregates(this, zone); }
public IfcProject(IfcSpatialZone zone, string name, IfcUnitAssignment.Length length) : this(zone.mDatabase, name, length) { new IfcRelAggregates(this, zone); }
public IfcProject(DatabaseIfc db, string name) : base(db, name)
{
if (string.IsNullOrEmpty(Name))
Name = "UNKNOWN PROJECT";
@ -1906,6 +1906,15 @@ namespace GeometryGym.Ifc
}
}
}
protected override bool DisposeWorker(bool children)
{
foreach (IfcRelAssociates associates in mHasAssociations.ToList())
associates.mRelatedObjects.Remove(this);
if (mHasContext != null)
mHasContext.RelatedDefinitions.Remove(this);
return base.DisposeWorker(children);
}
}
[Serializable]
public partial class IfcPropertyDependencyRelationship : IfcResourceLevelRelationship
@ -1939,6 +1948,12 @@ namespace GeometryGym.Ifc
public IfcPropertyEnumeration EnumerationReference { get { return mEnumerationReference; } set { mEnumerationReference = value; } }
internal IfcPropertyEnumeratedValue() : base() { }
internal IfcPropertyEnumeratedValue(DatabaseIfc db, IfcPropertyEnumeratedValue p, DuplicateOptions options) : base(db, p, options)
{
mEnumerationValues.AddRange(p.mEnumerationValues);
if (p.mEnumerationReference != null)
mEnumerationReference = db.Factory.Duplicate(p.mEnumerationReference, options);
}
public IfcPropertyEnumeratedValue(DatabaseIfc db, string name, IfcValue value) : base(db, name) { mEnumerationValues.Add(value); }
public IfcPropertyEnumeratedValue(DatabaseIfc db, string name, IEnumerable<IfcValue> values) : base(db, name) { mEnumerationValues.AddRange(values); }
public IfcPropertyEnumeratedValue(string name, IfcValue value, IfcPropertyEnumeration reference) : base(reference.mDatabase, name) { mEnumerationValues.Add(value); EnumerationReference = reference; }
@ -2119,7 +2134,7 @@ namespace GeometryGym.Ifc
IfcProperty result = this[name];
if (result != null)
return result;
foreach(IfcComplexProperty complexProperty in mHasProperties.OfType<IfcComplexProperty>())
foreach(IfcComplexProperty complexProperty in mHasProperties.Values.OfType<IfcComplexProperty>())
{
result = complexProperty.FindProperty(name);
if (result != null)

Просмотреть файл

@ -2782,8 +2782,6 @@ namespace GeometryGym.Ifc
{
if (mDatabase != null)
{
if (mDatabase.mDictionary.ContainsKey(mGlobalId))
Debug.WriteLine("Here");
mDatabase.mDictionary.TryRemove(mGlobalId, out BaseClassIfc obj);
mDatabase.mDictionary[value] = this;
}

Просмотреть файл

@ -876,7 +876,7 @@ additional types some additional representation types are given:
internal IfcSIUnit() : base() { }
internal IfcSIUnit(DatabaseIfc db, IfcSIUnit u) : base(db, u) { mPrefix = u.mPrefix; mName = u.mName; }
public IfcSIUnit(DatabaseIfc db, IfcUnitEnum unitEnum, IfcSIPrefix pref, IfcSIUnitName name) : base(db, unitEnum, false) { mPrefix = pref; mName = name; }
public IfcSIUnit(DatabaseIfc db, IfcUnitEnum unitEnum, IfcSIPrefix prefix, IfcSIUnitName name) : base(db, unitEnum, false) { mPrefix = prefix; mName = name; }
public override double SIFactor
{
get

Просмотреть файл

@ -103,8 +103,8 @@ namespace GeometryGym.Ifc
double scale = scaleSI(length);
if (length == Length.Inch || length == Length.Foot)
{
Units.Add(mDatabase.Factory.ConversionUnit(IfcConversionBasedUnit.Common.square_foot));
Units.Add(mDatabase.Factory.ConversionUnit(IfcConversionBasedUnit.Common.cubic_foot));
Units.Add(mDatabase.Factory.ConversionUnit(IfcConversionBasedUnit.CommonUnitName.square_foot));
Units.Add(mDatabase.Factory.ConversionUnit(IfcConversionBasedUnit.CommonUnitName.cubic_foot));
//farenheit
}
SetUnits();
@ -122,7 +122,7 @@ namespace GeometryGym.Ifc
if (mDatabase.Factory.Options.AngleUnitsInRadians)
Units.Add(new IfcSIUnit(mDatabase, IfcUnitEnum.PLANEANGLEUNIT, IfcSIPrefix.NONE, IfcSIUnitName.RADIAN));
else
Units.Add(mDatabase.Factory.ConversionUnit(IfcConversionBasedUnit.Common.degree));
Units.Add(mDatabase.Factory.ConversionUnit(IfcConversionBasedUnit.CommonUnitName.degree));
}
if (this[IfcUnitEnum.TIMEUNIT] == null)
{

Просмотреть файл

@ -520,7 +520,7 @@ namespace GeometryGym.Ifc
[Serializable]
public class IfcPositivePlaneAngleMeasure : IfcMeasureValue { public IfcPositivePlaneAngleMeasure(double value) : base(value) { } }
[Serializable]
public class IfcPositiveLengthMeasure : IfcMeasureValue, IfcSizeSelect
public class IfcPositiveLengthMeasure : IfcMeasureValue, IfcSizeSelect, IfcHatchLineDistanceSelect
{
public IfcPositiveLengthMeasure(double value) : base(value) { }
internal IfcPositiveLengthMeasure(string str) : base(0)

Просмотреть файл

@ -645,8 +645,8 @@ namespace GeometryGym.Ifc
{
protected override string BuildStringSTEP(ReleaseVersion release)
{
return base.BuildStringSTEP(release) + ",'" + ParserIfc.Encode(mUsageName) +
(mHasProperties.Values.Count == 0 ? "',()" : "',(#" + string.Join(",#", mHasProperties.Values.Select(x=>x.StepId)) + ")");
return base.BuildStringSTEP(release) + ",'" + ParserIfc.Encode(mUsageName) + "',(" +
string.Join(",", mHasProperties.Values.OrderBy(x=>x.StepId).Select(x=>"#" + x.StepId)) + ")";
}
internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary<int, BaseClassIfc> dictionary)
{
@ -1634,12 +1634,15 @@ namespace GeometryGym.Ifc
}
public partial class IfcCurveStyleFontAndScaling
{
protected override string BuildStringSTEP(ReleaseVersion release) { return ",'" + mName + "'," + ParserSTEP.LinkToString(mCurveFont) + "," + mCurveFontScaling.ToString(); }
protected override string BuildStringSTEP(ReleaseVersion release)
{
return (string.IsNullOrEmpty(mName) ? "$,#" : "'" + ParserIfc.Encode(mName) + "',#") + mCurveStyleFont.StepId + "," + mCurveFontScaling.ToString();
}
internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary<int,BaseClassIfc> dictionary)
{
mName = ParserSTEP.StripString(str, ref pos, len);
mCurveFont = ParserSTEP.StripLink(str, ref pos, len);
mCurveFontScaling = new IfcPositiveRatioMeasure(ParserSTEP.StripField(str, ref pos, len));
mName = ParserIfc.Decode(ParserSTEP.StripString(str, ref pos, len));
mCurveStyleFont = dictionary[ParserSTEP.StripLink(str, ref pos, len)] as IfcCurveStyleFontSelect;
mCurveFontScaling = ParserSTEP.StripDouble(str, ref pos, len);
}
}
public partial class IfcCurveStyleFontPattern

Просмотреть файл

@ -230,8 +230,9 @@ namespace GeometryGym.Ifc
protected override string BuildStringSTEP(ReleaseVersion release)
{
return "#" + mHatchLineAppearance.StepId +
(mStartOfNextHatchLine is BaseClassIfc o ? ",#" + o.StepId : "," + mStartOfNextHatchLine.ToString()) + ",#" +
mPointOfReferenceHatchLine.StepId + (mPatternStart == null ? ",$," : ",#" + mPatternStart.StepId + ",") + ParserSTEP.DoubleToString(mHatchLineAngle);
(mStartOfNextHatchLine is BaseClassIfc o ? ",#" + o.StepId : "," + mStartOfNextHatchLine.ToString()) +
(mPointOfReferenceHatchLine == null ? ",$" : ",#" + mPointOfReferenceHatchLine.StepId) +
(mPatternStart == null ? ",$," : ",#" + mPatternStart.StepId + ",") + ParserSTEP.DoubleToString(mHatchLineAngle);
}
internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary<int,BaseClassIfc> dictionary)
{

Просмотреть файл

@ -307,7 +307,9 @@ namespace GeometryGym.Ifc
{
if (release < ReleaseVersion.IFC4 || mMaterialProfiles.Count == 0)
return "";
return (string.IsNullOrEmpty(mName) ? "$," : "'" + ParserIfc.Encode(mName) + "',") + (string.IsNullOrEmpty(mDescription) ? "$,(#" : "'" + ParserIfc.Encode(mDescription) + "',(") + string.Join(",", mMaterialProfiles.Select(x=>"#" + x.StepId)) + ")," + ParserSTEP.ObjToLinkString(mCompositeProfile);
return (string.IsNullOrEmpty(mName) ? "$," : "'" + ParserIfc.Encode(mName) + "',") +
(string.IsNullOrEmpty(mDescription) ? "$,(" : "'" + ParserIfc.Encode(mDescription) + "',(") +
string.Join(",", mMaterialProfiles.Select(x=>"#" + x.StepId)) + ")," + ParserSTEP.ObjToLinkString(mCompositeProfile);
}
internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary<int,BaseClassIfc> dictionary)
{

Просмотреть файл

@ -851,7 +851,7 @@ namespace GeometryGym.Ifc
{
if (mHasProperties.Count == 0)
return "";
return base.BuildStringSTEP(release) + ",(#" + string.Join(",#", mHasProperties.Values.Select(x=>x.StepId)) + ")";
return base.BuildStringSTEP(release) + ",(#" + string.Join(",#", mHasProperties.Values.OrderBy(x=>x.StepId).Select(x=>x.StepId)) + ")";
}
internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary<int,BaseClassIfc> dictionary)
{

Просмотреть файл

@ -763,8 +763,9 @@ namespace GeometryGym.Ifc
{
if (release > ReleaseVersion.IFC2x3 || mRelatedObjects.Count == 0)
return "";
return base.BuildStringSTEP(release) + ",#" + mRelatingProfileProperties.StepId + ",#" + mProfileSectionLocation.StepId + "," +
(mProfileOrientation is BaseClassIfc o ? "#" + o.StepId : (mProfileOrientation == null ? "$" : mProfileOrientation.ToString()));
return base.BuildStringSTEP(release) + ",#" + mRelatingProfileProperties.StepId +
(mProfileSectionLocation == null ? ",$" : ",#" + mProfileSectionLocation.StepId) +
(mProfileOrientation is BaseClassIfc o ? ",#" + o.StepId : (mProfileOrientation == null ? ",$" : mProfileOrientation.ToString()));
}
internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary<int, BaseClassIfc> dictionary)
{
@ -974,7 +975,7 @@ namespace GeometryGym.Ifc
{
base.parse(str, ref pos, release, len, dictionary);
RelatingContext = dictionary[ParserSTEP.StripLink(str, ref pos, len)] as IfcContext;
RelatedDefinitions.AddRange(ParserSTEP.StripListLink(str, ref pos, len).ConvertAll(x => dictionary[x] as IfcDefinitionSelect));
RelatedDefinitions.AddRange(ParserSTEP.StripListLink(str, ref pos, len).Select(x => dictionary[x] as IfcDefinitionSelect));
}
}
public partial class IfcRelDefinesByObject
@ -1517,7 +1518,9 @@ namespace GeometryGym.Ifc
{
internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary<int,BaseClassIfc> dictionary)
{
GlobalId = ParserSTEP.StripString(str, ref pos, len);
string globalId = ParserSTEP.StripString(str, ref pos, len);
if (string.Compare(GlobalId, globalId, true) != 0)
GlobalId = globalId;
mOwnerHistory = dictionary[ParserSTEP.StripLink(str, ref pos, len)] as IfcOwnerHistory;
mName = ParserIfc.Decode(ParserSTEP.StripString(str, ref pos, len));
mDescription = ParserIfc.Decode(ParserSTEP.StripString(str, ref pos, len));

Просмотреть файл

@ -439,7 +439,7 @@ namespace GeometryGym.Ifc
return base.BuildStringSTEP(release) + (mTemplateType == IfcSimplePropertyTemplateTypeEnum.NOTDEFINED ? ",$," : ",." + mTemplateType.ToString() + ".,") +
(string.IsNullOrEmpty(mPrimaryMeasureType) ? "$," : "'" + ParserIfc.Encode(mPrimaryMeasureType) + "',") +
(string.IsNullOrEmpty(mSecondaryMeasureType) ? "$," : "'" + ParserIfc.Encode(mSecondaryMeasureType) + "',") +
(mEnumerators == null ? "$" : "#" + mEnumerators.StepId) + (mPrimaryUnit == null ? ",$" : ",#" + mPrimaryUnit) +
(mEnumerators == null ? "$" : "#" + mEnumerators.StepId) + (mPrimaryUnit == null ? ",$" : ",#" + mPrimaryUnit.StepId) +
(mSecondaryUnit == null ? ",$" : ",#" + mSecondaryUnit.StepId) + "," +
(string.IsNullOrEmpty(mExpression) ? "$," : "'" + ParserIfc.Encode(mExpression) + "',") +
(mAccessState == IfcStateEnum.NOTDEFINED ? "$" : "." + mAccessState.ToString() + ".");

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcActor : IfcObject // SUPERTYPE OF(IfcOccupant)
public partial class IfcActor
{
internal override void ParseXml(XmlElement xml)
{
@ -48,7 +42,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((TheActor as BaseClassIfc).GetXML(xml.OwnerDocument, "TheActor", this, processed));
}
}
public partial class IfcActorRole : BaseClassIfc, IfcResourceObjectSelect
public partial class IfcActorRole
{
internal override void ParseXml(XmlElement xml)
{
@ -79,7 +73,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Description", Description);
}
}
public abstract partial class IfcAddress : BaseClassIfc //ABSTRACT SUPERTYPE OF(ONEOF(IfcPostalAddress, IfcTelecomAddress));
public abstract partial class IfcAddress
{
internal override void ParseXml(XmlElement xml)
{
@ -110,7 +104,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "UserDefinedPurpose", UserDefinedPurpose);
}
}
public partial class IfcAdvancedBrepWithVoids : IfcAdvancedBrep
public partial class IfcAdvancedBrepWithVoids
{
internal override void ParseXml(XmlElement xml)
{
@ -138,7 +132,7 @@ namespace GeometryGym.Ifc
element.AppendChild(s.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcAirTerminal : IfcFlowTerminal
public partial class IfcAirTerminal
{
internal override void ParseXml(XmlElement xml)
{
@ -159,7 +153,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcAirTerminalType : IfcFlowTerminalType
public partial class IfcAirTerminalType
{
internal override void ParseXml(XmlElement xml)
{
@ -180,7 +174,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcAlignment : IfcLinearPositioningElement //IFC4.1
public partial class IfcAlignment
{
internal override void ParseXml(XmlElement xml)
{
@ -195,7 +189,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcAlignment2DHorizontal : IfcGeometricRepresentationItem //IFC4.1
public partial class IfcAlignment2DHorizontal
{
internal override void ParseXml(XmlElement xml)
{
@ -228,7 +222,7 @@ namespace GeometryGym.Ifc
element.AppendChild(s.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcAlignment2DHorizontalSegment : IfcAlignment2DSegment //IFC4.1
public partial class IfcAlignment2DHorizontalSegment
{
internal override void ParseXml(XmlElement xml)
{
@ -246,7 +240,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(CurveGeometry.GetXML(xml.OwnerDocument, "CurveGeometry", this, processed));
}
}
public abstract partial class IfcAlignment2DSegment : IfcGeometricRepresentationItem //IFC4.1 ABSTRACT SUPERTYPE OF(ONEOF(IfcAlignment2DHorizontalSegment, IfcAlignment2DVerticalSegment))
public abstract partial class IfcAlignment2DSegment
{
internal override void ParseXml(XmlElement xml)
{
@ -268,7 +262,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "EndTag", EndTag);
}
}
public partial class IfcAlignment2DVerSegCircularArc : IfcAlignment2DVerticalSegment //IFC4.1
public partial class IfcAlignment2DVerSegCircularArc
{
internal override void ParseXml(XmlElement xml)
{
@ -286,7 +280,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "IsConvex", IsConvex.ToString());
}
}
public partial class IfcAlignment2DVerSegParabolicArc : IfcAlignment2DVerticalSegment //IFC4.1
public partial class IfcAlignment2DVerSegParabolicArc
{
internal override void ParseXml(XmlElement xml)
{
@ -304,7 +298,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "IsConvex", IsConvex.ToString());
}
}
public abstract partial class IfcAlignment2DVerticalSegment : IfcAlignment2DSegment //IFC4.1
public abstract partial class IfcAlignment2DVerticalSegment
{
internal override void ParseXml(XmlElement xml)
{
@ -328,7 +322,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "StartGradient", StartGradient.ToString());
}
}
public partial class IfcAlignmentCant : IfcLinearElement
public partial class IfcAlignmentCant
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -343,7 +337,7 @@ namespace GeometryGym.Ifc
double.TryParse(railHeadDistance, out mRailHeadDistance);
}
}
public partial class IfcAlignmentCantSegment : IfcAlignmentParameterSegment
public partial class IfcAlignmentCantSegment
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -384,7 +378,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcAlignmentCantSegmentTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcAlignmentCurve : IfcBoundedCurve //IFC4.1
public partial class IfcAlignmentCurve
{
internal override void ParseXml(XmlElement xml)
{
@ -410,7 +404,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Tag", Tag);
}
}
public partial class IfcAlignment2DVertical : IfcGeometricRepresentationItem //IFC4.1
public partial class IfcAlignment2DVertical
{
internal override void ParseXml(XmlElement xml)
{
@ -439,7 +433,7 @@ namespace GeometryGym.Ifc
element.AppendChild(s.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcAlignmentHorizontal : IfcLinearElement
public partial class IfcAlignmentHorizontal
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -475,7 +469,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcAlignmentHorizontalSegment : IfcAlignmentParameterSegment
public partial class IfcAlignmentHorizontalSegment
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -523,7 +517,7 @@ namespace GeometryGym.Ifc
}
}
}
public abstract partial class IfcAlignmentParameterSegment : BaseClassIfc
public abstract partial class IfcAlignmentParameterSegment
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -539,7 +533,7 @@ namespace GeometryGym.Ifc
EndTag = xml.GetAttribute("EndTag");
}
}
public partial class IfcAlignmentSegment : IfcLinearElement
public partial class IfcAlignmentSegment
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -557,7 +551,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcAlignmentVertical : IfcLinearElement
public partial class IfcAlignmentVertical
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -588,7 +582,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcAlignmentVerticalSegment : IfcAlignmentParameterSegment
public partial class IfcAlignmentVerticalSegment
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -628,7 +622,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcAlignmentVerticalSegmentTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcAnnotation : IfcProduct
public partial class IfcAnnotation
{
internal override void ParseXml(XmlElement xml)
{
@ -643,7 +637,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcAnnotationFillArea : IfcGeometricRepresentationItem
public partial class IfcAnnotationFillArea
{
internal override void ParseXml(XmlElement xml)
{
@ -677,7 +671,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcApplication : BaseClassIfc
public partial class IfcApplication
{
internal override void ParseXml(XmlElement xml)
{
@ -711,7 +705,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("ApplicationIdentifier", ApplicationIdentifier);
}
}
public partial class IfcAppliedValue : BaseClassIfc, IfcMetricValueSelect, IfcAppliedValueSelect, IfcResourceObjectSelect //SUPERTYPE OF(IfcCostValue);
public partial class IfcAppliedValue
{
internal override void ParseXml(XmlElement xml)
{
@ -821,7 +815,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcArbitraryClosedProfileDef : IfcProfileDef //SUPERTYPE OF(IfcArbitraryProfileDefWithVoids)
public partial class IfcArbitraryClosedProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -839,7 +833,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(OuterCurve.GetXML(xml.OwnerDocument, "OuterCurve", this, processed));
}
}
public partial class IfcArbitraryOpenProfileDef : IfcProfileDef // SUPERTYPE OF(IfcCenterLineProfileDef)
public partial class IfcArbitraryOpenProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -857,7 +851,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(Curve.GetXML(xml.OwnerDocument, "Curve", this, processed));
}
}
public partial class IfcArbitraryProfileDefWithVoids : IfcArbitraryClosedProfileDef
public partial class IfcArbitraryProfileDefWithVoids
{
internal override void ParseXml(XmlElement xml)
{
@ -885,7 +879,7 @@ namespace GeometryGym.Ifc
element.AppendChild(c.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcAsymmetricIShapeProfileDef : IfcParameterizedProfileDef //IFC4 IfcParameterizedProfileDef
public partial class IfcAsymmetricIShapeProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -994,7 +988,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("TopFlangeSlope", mTopFlangeSlope.ToString());
}
}
public partial class IfcAxis1Placement : IfcPlacement
public partial class IfcAxis1Placement
{
internal override void ParseXml(XmlElement xml)
{
@ -1014,7 +1008,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(Axis.GetXML(xml.OwnerDocument, "Axis", this, processed));
}
}
public partial class IfcAxis2Placement2D : IfcPlacement, IfcAxis2Placement
public partial class IfcAxis2Placement2D
{
internal override void ParseXml(XmlElement xml)
{
@ -1033,7 +1027,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(RefDirection.GetXML(xml.OwnerDocument, "RefDirection", this, processed));
}
}
public partial class IfcAxis2Placement3D : IfcPlacement, IfcAxis2Placement
public partial class IfcAxis2Placement3D
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcBeam : IfcBuiltElement
public partial class IfcBeam
{
internal override void ParseXml(XmlElement xml)
{
@ -44,7 +38,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcBeamType : IfcBuiltElementType
public partial class IfcBeamType
{
internal override void ParseXml(XmlElement xml)
{
@ -59,7 +53,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcBlock : IfcCsgPrimitive3D
public partial class IfcBlock
{
internal override void ParseXml(XmlElement xml)
{
@ -79,7 +73,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("ZLength", ZLength.ToString());
}
}
public partial class IfcBooleanResult : IfcGeometricRepresentationItem, IfcBooleanOperand, IfcCsgSelect
public partial class IfcBooleanResult
{
internal override void ParseXml(XmlElement xml)
{
@ -103,7 +97,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((mSecondOperand as BaseClassIfc).GetXML(xml.OwnerDocument, "SecondOperand", this, processed));
}
}
public partial class IfcBoundingBox : IfcGeometricRepresentationItem
public partial class IfcBoundingBox
{
internal override void ParseXml(XmlElement xml)
{
@ -130,7 +124,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("ZDim", mZDim.ToString());
}
}
public abstract partial class IfcBSplineSurface : IfcBoundedSurface
public abstract partial class IfcBSplineSurface
{
//internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
//{
@ -141,7 +135,7 @@ namespace GeometryGym.Ifc
// xml.SetAttribute("ZDim", mZDim.ToString());
//}
}
public partial class IfcBuilding : IfcFacility
public partial class IfcBuilding
{
internal override void ParseXml(XmlElement xml)
{
@ -168,7 +162,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(BuildingAddress.GetXML(xml.OwnerDocument, "BuildingAddress", this, processed));
}
}
public partial class IfcBuildingElementProxy : IfcBuiltElement
public partial class IfcBuildingElementProxy
{
internal override void ParseXml(XmlElement xml)
{
@ -193,7 +187,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcBuildingElementProxyType : IfcBuiltElementType
public partial class IfcBuildingElementProxyType
{
internal override void ParseXml(XmlElement xml)
{
@ -208,7 +202,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcBuildingStorey : IfcSpatialStructureElement
public partial class IfcBuildingStorey
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,13 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcCartesianPoint : IfcPoint
public partial class IfcCartesianPoint
{
internal override void ParseXml(XmlElement xml)
{
@ -91,7 +86,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Coordinates", coordinates.Item1 + (double.IsNaN(coordinates.Item2) ? "" : " " + coordinates.Item2) + (double.IsNaN(coordinates.Item3) ? "" : " " + coordinates.Item3));
}
}
public partial class IfcCartesianPointList2D : IfcCartesianPointList //IFC4
public partial class IfcCartesianPointList2D
{
internal override void ParseXml(XmlElement xml)
{
@ -111,7 +106,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("CoordList", string.Join(" ", CoordList.Select(x => x.Item1 + " " + x.Item2)));
}
}
public partial class IfcCartesianPointList3D : IfcCartesianPointList //IFC4
public partial class IfcCartesianPointList3D
{
internal override void ParseXml(XmlElement xml)
{
@ -131,7 +126,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("CoordList", string.Join(" ", mCoordList.Select(x => x.Item1 + " " + x.Item2 + " " + x.Item3)));
}
}
public abstract partial class IfcCartesianTransformationOperator : IfcGeometricRepresentationItem /*ABSTRACT SUPERTYPE OF (ONEOF (IfcCartesianTransformationOperator2D ,IfcCartesianTransformationOperator3D))*/
public abstract partial class IfcCartesianTransformationOperator
{
internal override void ParseXml(XmlElement xml)
{
@ -161,7 +156,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Scale", mScale.ToString());
}
}
public partial class IfcCartesianTransformationOperator2DnonUniform : IfcCartesianTransformationOperator2D
public partial class IfcCartesianTransformationOperator2DnonUniform
{
internal override void ParseXml(XmlElement xml)
{
@ -177,7 +172,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Scale2", mScale2.ToString());
}
}
public partial class IfcCartesianTransformationOperator3D : IfcCartesianTransformationOperator //SUPERTYPE OF(IfcCartesianTransformationOperator3DnonUniform)
public partial class IfcCartesianTransformationOperator3D
{
internal override void ParseXml(XmlElement xml)
{
@ -196,7 +191,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(Axis1.GetXML(xml.OwnerDocument, "Axis3", this, processed));
}
}
public partial class IfcCartesianTransformationOperator3DnonUniform : IfcCartesianTransformationOperator3D
public partial class IfcCartesianTransformationOperator3DnonUniform
{
internal override void ParseXml(XmlElement xml)
{
@ -216,7 +211,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Scale3", mScale3.ToString());
}
}
public partial class IfcCenterLineProfileDef : IfcArbitraryOpenProfileDef
public partial class IfcCenterLineProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -230,7 +225,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Thickness", mThickness.ToString());
}
}
public partial class IfcChimney : IfcBuiltElement
public partial class IfcChimney
{
internal override void ParseXml(XmlElement xml)
{
@ -245,7 +240,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcChimneyType : IfcBuiltElementType
public partial class IfcChimneyType
{
internal override void ParseXml(XmlElement xml)
{
@ -260,7 +255,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcCircle : IfcConic
public partial class IfcCircle
{
internal override void ParseXml(XmlElement xml)
{
@ -274,7 +269,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Radius", mRadius.ToString());
}
}
public partial class IfcCircleHollowProfileDef : IfcCircleProfileDef
public partial class IfcCircleHollowProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -288,7 +283,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("WallThickness", mWallThickness.ToString());
}
}
public partial class IfcCircleProfileDef : IfcParameterizedProfileDef //SUPERTYPE OF(IfcCircleHollowProfileDef)
public partial class IfcCircleProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -302,7 +297,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Radius", mRadius.ToString());
}
}
public partial class IfcCircularArcSegment2D : IfcCurveSegment2D //IFC4.1
public partial class IfcCircularArcSegment2D
{
internal override void ParseXml(XmlElement xml)
{
@ -319,7 +314,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "IsCCW", IsCCW.ToString());
}
}
public partial class IfcClassification : IfcExternalInformation, IfcClassificationReferenceSelect, IfcClassificationSelect // SUBTYPE OF IfcExternalInformation;
public partial class IfcClassification
{
internal override void ParseXml(XmlElement xml)
{
@ -380,7 +375,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(element);
}
}
public partial class IfcClassificationReference : IfcExternalReference, IfcClassificationReferenceSelect, IfcClassificationSelect, IfcClassificationNotationSelect
public partial class IfcClassificationReference
{
internal override void ParseXml(XmlElement xml)
{
@ -434,7 +429,7 @@ namespace GeometryGym.Ifc
}
}
public partial class IfcColourRgb : IfcColourSpecification, IfcColourOrFactor
public partial class IfcColourRgb
{
internal override void ParseXml(XmlElement xml)
{
@ -464,7 +459,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Blue", mBlue.ToString());
}
}
public abstract partial class IfcColourSpecification : IfcPresentationItem, IfcColour // ABSTRACT SUPERTYPE OF(IfcColourRgb)
public abstract partial class IfcColourSpecification
{
internal override void ParseXml(XmlElement xml)
{
@ -478,7 +473,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Name", Name);
}
}
public partial class IfcColumn : IfcBuiltElement
public partial class IfcColumn
{
internal override void ParseXml(XmlElement xml)
{
@ -493,7 +488,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcColumnType : IfcBuiltElementType
public partial class IfcColumnType
{
internal override void ParseXml(XmlElement xml)
{
@ -508,7 +503,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcComplexPropertyTemplate : IfcPropertyTemplate
public partial class IfcComplexPropertyTemplate
{
internal override void ParseXml(XmlElement xml)
{
@ -533,7 +528,7 @@ namespace GeometryGym.Ifc
setChild(xml, "HasPropertyTemplates", HasPropertyTemplates.Values, processed);
}
}
public partial class IfcCompositeCurve : IfcBoundedCurve
public partial class IfcCompositeCurve
{
internal override void ParseXml(XmlElement xml)
{
@ -564,7 +559,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "SelfIntersect", mSelfIntersect.ToString().ToLower());
}
}
public partial class IfcCompositeCurveSegment : IfcSegment
public partial class IfcCompositeCurveSegment
{
internal override void ParseXml(XmlElement xml)
{
@ -586,7 +581,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(mParentCurve.GetXML(xml.OwnerDocument, "ParentCurve", this, processed));
}
}
public partial class IfcCompositeProfileDef : IfcProfileDef
public partial class IfcCompositeProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -617,7 +612,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Label", Label);
}
}
public abstract partial class IfcConic : IfcCurve /*ABSTRACT SUPERTYPE OF (ONEOF (IfcCircle ,IfcEllipse))*/
public abstract partial class IfcConic
{
internal override void ParseXml(XmlElement xml)
{
@ -635,7 +630,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((mPosition as BaseClassIfc).GetXML(xml.OwnerDocument, "Position", this, processed));
}
}
public partial class IfcConnectedFaceSet : IfcTopologicalRepresentationItem //SUPERTYPE OF (ONEOF (IfcClosedShell ,IfcOpenShell))
public partial class IfcConnectedFaceSet
{
internal override void ParseXml(XmlElement xml)
{
@ -663,7 +658,7 @@ namespace GeometryGym.Ifc
element.AppendChild(face.GetXML(xml.OwnerDocument, "", host, processed));
}
}
public abstract partial class IfcContext : IfcObjectDefinition//(IfcProject, IfcProjectLibrary)
public abstract partial class IfcContext
{
internal override void ParseXml(XmlElement xml)
{
@ -743,7 +738,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcConversionBasedUnit : IfcNamedUnit, IfcResourceObjectSelect // SUPERTYPE OF(IfcConversionBasedUnitWithOffset)
public partial class IfcConversionBasedUnit
{
internal override void ParseXml(XmlElement xml)
{
@ -764,7 +759,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(ConversionFactor.GetXML(xml.OwnerDocument, "ConversionFactor", this, processed));
}
}
public partial class IfcConnectionCurveGeometry : IfcConnectionGeometry
public partial class IfcConnectionCurveGeometry
{
internal override void ParseXml(XmlElement xml)
{
@ -786,7 +781,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((CurveOnRelatedElement as BaseClassIfc).GetXML(xml.OwnerDocument, "CurveOnRelatedElement", this, processed));
}
}
public abstract partial class IfcConstraint : BaseClassIfc, IfcResourceObjectSelect //IFC4Change ABSTRACT SUPERTYPE OF(ONEOF(IfcMetric, IfcObjective));
public abstract partial class IfcConstraint
{
internal override void ParseXml(XmlElement xml)
{
@ -878,7 +873,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcConveyorSegment : IfcFlowSegment
public partial class IfcConveyorSegment
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -894,7 +889,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcConveyorSegmentTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcConveyorSegmentType : IfcFlowSegmentType
public partial class IfcConveyorSegmentType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -909,7 +904,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcConveyorSegmentTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public abstract partial class IfcCoordinateOperation : BaseClassIfc // IFC4 ABSTRACT SUPERTYPE OF(IfcMapConversion);
public abstract partial class IfcCoordinateOperation
{
internal override void ParseXml(XmlElement xml)
{
@ -928,7 +923,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(TargetCRS.GetXML(xml.OwnerDocument, "TargetCRS", this, processed));
}
}
public abstract partial class IfcCoordinateReferenceSystem : BaseClassIfc, IfcCoordinateReferenceSystemSelect // IFC4 ABSTRACT SUPERTYPE OF(IfcProjectedCRS);
public abstract partial class IfcCoordinateReferenceSystem
{
internal override void ParseXml(XmlElement xml)
{
@ -971,7 +966,7 @@ namespace GeometryGym.Ifc
double.TryParse(att, out mConstantTerm);
}
}
public partial class IfcCourse : IfcBuiltElement
public partial class IfcCourse
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -987,7 +982,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcCourseTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcCourseType : IfcBuiltElementType
public partial class IfcCourseType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -1002,7 +997,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcCourseTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcCovering : IfcBuiltElement
public partial class IfcCovering
{
internal override void ParseXml(XmlElement xml)
{
@ -1017,7 +1012,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcCoveringType : IfcBuiltElementType
public partial class IfcCoveringType
{
internal override void ParseXml(XmlElement xml)
{
@ -1032,7 +1027,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public abstract partial class IfcCsgPrimitive3D : IfcGeometricRepresentationItem, IfcBooleanOperand, IfcCsgSelect /*ABSTRACT SUPERTYPE OF (ONEOF (IfcBlock ,IfcRectangularPyramid ,IfcRightCircularCone ,IfcRightCircularCylinder ,IfcSphere))*/
public abstract partial class IfcCsgPrimitive3D
{
internal override void ParseXml(XmlElement xml)
{
@ -1051,7 +1046,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(Position.GetXML(xml.OwnerDocument, "Position", this, processed));
}
}
public partial class IfcCsgSolid : IfcSolidModel
public partial class IfcCsgSolid
{
internal override void ParseXml(XmlElement xml)
{
@ -1070,7 +1065,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((mTreeRootExpression as BaseClassIfc).GetXML(xml.OwnerDocument, "TreeRootExpression", this, processed));
}
}
public partial class IfcCShapeProfileDef : IfcParameterizedProfileDef
public partial class IfcCShapeProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -1097,7 +1092,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("InternalFilletRadius", mInternalFilletRadius.ToString());
}
}
public partial class IfcCurtainWall : IfcBuiltElement
public partial class IfcCurtainWall
{
internal override void ParseXml(XmlElement xml)
{
@ -1112,7 +1107,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcCurtainWallType : IfcBuiltElementType
public partial class IfcCurtainWallType
{
internal override void ParseXml(XmlElement xml)
{
@ -1127,7 +1122,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcCurveBoundedPlane : IfcBoundedSurface
public partial class IfcCurveBoundedPlane
{
internal override void ParseXml(XmlElement xml)
{
@ -1164,7 +1159,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcCurveSegment : IfcSegment
public partial class IfcCurveSegment
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -1191,7 +1186,7 @@ namespace GeometryGym.Ifc
}
}
}
public abstract partial class IfcCurveSegment2D : IfcBoundedCurve
public abstract partial class IfcCurveSegment2D
{
internal override void ParseXml(XmlElement xml)
{
@ -1214,7 +1209,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "SegmentLength", SegmentLength.ToString());
}
}
public partial class IfcCylindricalSurface : IfcElementarySurface //IFC4
public partial class IfcCylindricalSurface
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,13 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcDerivedProfileDef : IfcProfileDef
public partial class IfcDerivedProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -53,7 +48,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Label", Label);
}
}
public partial class IfcDerivedUnit : BaseClassIfc, IfcUnit
public partial class IfcDerivedUnit
{
internal override void ParseXml(XmlElement xml)
{
@ -90,7 +85,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Name", Name);
}
}
public partial class IfcDerivedUnitElement : BaseClassIfc
public partial class IfcDerivedUnitElement
{
internal override void ParseXml(XmlElement xml)
{
@ -112,7 +107,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Exponent", mExponent.ToString());
}
}
public partial class IfcDirection : IfcGeometricRepresentationItem
public partial class IfcDirection
{
internal override void ParseXml(XmlElement xml)
{
@ -178,7 +173,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("DirectionRatios", RoundRatio(mDirectionRatioX) + " " + RoundRatio(mDirectionRatioY) + (double.IsNaN(mDirectionRatioZ) ? "" : " " + RoundRatio(mDirectionRatioZ)));
}
}
public abstract partial class IfcDirectrixCurveSweptAreaSolid : IfcSweptAreaSolid
public abstract partial class IfcDirectrixCurveSweptAreaSolid
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -212,7 +207,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcDistributionBoard : IfcFlowController
public partial class IfcDistributionBoard
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -243,7 +238,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcDistributionBoardTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcDistributionPort : IfcPort
public partial class IfcDistributionPort
{
//internal IfcFlowDirectionEnum mFlowDirection = IfcFlowDirectionEnum.NOTDEFINED; //: OPTIONAL IfcFlowDirectionEnum;
//private IfcDistributionPortTypeEnum mPredefinedType = IfcDistributionPortTypeEnum.NOTDEFINED; // IFC4 : OPTIONAL IfcDistributionPortTypeEnum;
@ -269,7 +264,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("SystemType", mSystemType.ToString().ToLower());
}
}
public partial class IfcDocumentInformation : IfcExternalInformation, IfcDocumentSelect, NamedObjectIfc
public partial class IfcDocumentInformation
{
internal override void ParseXml(XmlElement xml)
{
@ -325,7 +320,7 @@ namespace GeometryGym.Ifc
// xml.AppendChild(ReferencedDocument.GetXML(xml.OwnerDocument, "ReferencedDocument", this, processed));
}
}
public partial class IfcDocumentReference : IfcExternalReference, IfcDocumentSelect
public partial class IfcDocumentReference
{
internal override void ParseXml(XmlElement xml)
{
@ -347,7 +342,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(ReferencedDocument.GetXML(xml.OwnerDocument, "ReferencedDocument", this, processed));
}
}
public partial class IfcDoor : IfcBuiltElement
public partial class IfcDoor
{
internal override void ParseXml(XmlElement xml)
{
@ -362,7 +357,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcDoorType : IfcBuiltElementType
public partial class IfcDoorType
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,13 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcEarthworksCut : IfcFeatureElementSubtraction
public partial class IfcEarthworksCut
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -45,7 +40,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcEarthworksCutTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcEarthworksFill : IfcEarthworksElement
public partial class IfcEarthworksFill
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -61,7 +56,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcEarthworksFillTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcEdge : IfcTopologicalRepresentationItem //SUPERTYPE OF(ONEOF(IfcEdgeCurve, IfcOrientedEdge, IfcSubedge))
public partial class IfcEdge
{
internal override void ParseXml(XmlElement xml)
{
@ -84,7 +79,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(mEdgeEnd.GetXML(xml.OwnerDocument, "EdgeEnd", this, processed));
}
}
public partial class IfcElectricFlowTreatmentDevice : IfcFlowTreatmentDevice
public partial class IfcElectricFlowTreatmentDevice
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -100,7 +95,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcElectricFlowTreatmentDeviceTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcElectricFlowTreatmentDeviceType : IfcFlowTreatmentDeviceType
public partial class IfcElectricFlowTreatmentDeviceType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -115,9 +110,8 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcElectricFlowTreatmentDeviceTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public abstract partial class IfcElement : IfcProduct, IfcStructuralActivityAssignmentSelect //ABSTRACT SUPERTYPE OF (ONEOF(IfcBuildingElement,IfcCivilElement
{ //,IfcDistributionElement,IfcElementAssembly,IfcElementComponent,IfcFeatureElement,IfcFurnishingElement,IfcGeographicElement,IfcTransportElement ,IfcVirtualElement,IfcElectricalElement SS,IfcEquipmentElement SS))
public abstract partial class IfcElement
{
internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
@ -165,7 +159,7 @@ namespace GeometryGym.Ifc
}
}
public partial class IfcElementQuantity : IfcQuantitySet
public partial class IfcElementQuantity
{
internal override void ParseXml(XmlElement xml)
{
@ -186,7 +180,7 @@ namespace GeometryGym.Ifc
setChild(xml, "Quantities", Quantities.Values, processed);
}
}
public abstract partial class IfcElementarySurface : IfcSurface // ABSTRACT SUPERTYPE OF(ONEOF(IfcCylindricalSurface, IfcPlane))
public abstract partial class IfcElementarySurface
{
internal override void ParseXml(XmlElement xml)
{
@ -205,7 +199,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(Position.GetXML(xml.OwnerDocument, "Position", this, processed));
}
}
public abstract partial class IfcElementType : IfcTypeProduct //ABSTRACT SUPERTYPE OF(ONEOF(IfcBuildingElementType, IfcDistributionElementType, IfcElementAssemblyType, IfcElementComponentType, IfcFurnishingElementType, IfcGeographicElementType, IfcTransportElementType))
public abstract partial class IfcElementType
{
internal override void ParseXml(XmlElement xml)
{
@ -219,7 +213,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "ElementType", ElementType);
}
}
public partial class IfcEllipse : IfcConic
public partial class IfcEllipse
{
internal override void ParseXml(XmlElement xml)
{
@ -236,7 +230,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("SemiAxis2", mSemiAxis2.ToString());
}
}
public abstract partial class IfcExtendedProperties : IfcPropertyAbstraction, NamedObjectIfc //IFC4 ABSTRACT SUPERTYPE OF (ONEOF (IfcMaterialProperties,IfcProfileProperties))
public abstract partial class IfcExtendedProperties
{
internal override void ParseXml(XmlElement xml)
{
@ -270,8 +264,8 @@ namespace GeometryGym.Ifc
element.AppendChild(p.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public abstract partial class IfcExternalReference : BaseClassIfc, IfcLightDistributionDataSourceSelect, IfcResourceObjectSelect//ABSTRACT SUPERTYPE OF (ONEOF (IfcClassificationReference ,IfcDocumentReference ,IfcExternallyDefinedHatchStyle
{ //,IfcExternallyDefinedSurfaceStyle ,IfcExternallyDefinedSymbol ,IfcExternallyDefinedTextFont ,IfcLibraryReference));
public abstract partial class IfcExternalReference
{
internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
@ -326,7 +320,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Name", Name);
}
}
public partial class IfcExternalReferenceRelationship : IfcResourceLevelRelationship //IFC4
public partial class IfcExternalReferenceRelationship
{
internal override void ParseXml(XmlElement xml)
{
@ -357,7 +351,7 @@ namespace GeometryGym.Ifc
element.AppendChild(related.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcExtrudedAreaSolid : IfcSweptAreaSolid // SUPERTYPE OF(IfcExtrudedAreaSolidTapered)
public partial class IfcExtrudedAreaSolid
{
internal override void ParseXml(XmlElement xml)
{
@ -381,7 +375,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Depth", mDepth.ToString());
}
}
public partial class IfcExtrudedAreaSolidTapered : IfcExtrudedAreaSolid
public partial class IfcExtrudedAreaSolidTapered
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,13 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcFace : IfcTopologicalRepresentationItem // SUPERTYPE OF(IfcFaceSurface)
public partial class IfcFace
{
internal override void ParseXml(XmlElement xml)
{
@ -57,7 +52,7 @@ namespace GeometryGym.Ifc
element.AppendChild(face.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcFaceBasedSurfaceModel : IfcGeometricRepresentationItem
public partial class IfcFaceBasedSurfaceModel
{
internal override void ParseXml(XmlElement xml)
{
@ -85,7 +80,7 @@ namespace GeometryGym.Ifc
element.AppendChild(face.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcFaceBound : IfcTopologicalRepresentationItem //SUPERTYPE OF (ONEOF (IfcFaceOuterBound))
public partial class IfcFaceBound
{
internal override void ParseXml(XmlElement xml)
{
@ -107,7 +102,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Orientation", mOrientation.ToString().ToLower());
}
}
public partial class IfcFacetedBrepWithVoids : IfcFacetedBrep
public partial class IfcFacetedBrepWithVoids
{
internal override void ParseXml(XmlElement xml)
{
@ -135,7 +130,7 @@ namespace GeometryGym.Ifc
element.AppendChild(s.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcFixedReferenceSweptAreaSolid : IfcDirectrixCurveSweptAreaSolid //IFC4
public partial class IfcFixedReferenceSweptAreaSolid
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,13 +18,8 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
@ -85,7 +80,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(HasCoordinateOperation.GetXML(xml.OwnerDocument, "HasCoordinateOperation", this, processed));
}
}
public partial class IfcGeometricRepresentationSubContext : IfcGeometricRepresentationContext
public partial class IfcGeometricRepresentationSubContext
{
internal override void ParseXml(XmlElement xml)
{
@ -114,7 +109,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "UserDefinedTargetView", UserDefinedTargetView);
}
}
public partial class IfcGeometricSet : IfcGeometricRepresentationItem //SUPERTYPE OF(IfcGeometricCurveSet)
public partial class IfcGeometricSet
{
internal override void ParseXml(XmlElement xml)
{
@ -164,7 +159,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcGrid : IfcPositioningElement
public partial class IfcGrid
{
internal override void ParseXml(XmlElement xml)
{
@ -222,7 +217,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(wAxes);
}
}
public partial class IfcGridAxis : BaseClassIfc
public partial class IfcGridAxis
{
internal override void ParseXml(XmlElement xml)
{
@ -252,7 +247,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(AxisCurve.GetXML(xml.OwnerDocument, "AxisCurve", this, processed));
}
}
public partial class IfcGroup : IfcObject //SUPERTYPE OF (ONEOF (IfcAsset ,IfcCondition ,IfcInventory ,IfcStructuralLoadGroup ,IfcStructuralResultGroup ,IfcSystem ,IfcZone))
public partial class IfcGroup
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,19 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcHalfSpaceSolid : IfcGeometricRepresentationItem, IfcBooleanOperand /* SUPERTYPE OF (ONEOF (IfcBoxedHalfSpace ,IfcPolygonalBoundedHalfSpace)) */
public partial class IfcHalfSpaceSolid
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,20 +18,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
using GeometryGym.STEP;
namespace GeometryGym.Ifc
{
public partial class IfcIndexedPolyCurve : IfcBoundedCurve
public partial class IfcIndexedPolyCurve
{
internal override void ParseXml(XmlElement xml)
{
@ -80,7 +75,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcIShapeProfileDef : IfcParameterizedProfileDef
public partial class IfcIShapeProfileDef
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,14 +18,8 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcKerb : IfcBuiltElement
public partial class IfcKerb
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -44,7 +38,7 @@ namespace GeometryGym.Ifc
bool.TryParse(mountable, out mMountable);
}
}
public partial class IfcKerbType : IfcBuiltElementType
public partial class IfcKerbType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcLibraryInformation : IfcExternalInformation
public partial class IfcLibraryInformation
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,14 +18,8 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public abstract partial class IfcNamedUnit : BaseClassIfc, IfcUnit //ABSTRACT SUPERTYPE OF (ONEOF(IfcContextDependentUnit,IfcConversionBasedUnit,IfcSIUnit));
public abstract partial class IfcNamedUnit
{
internal override void ParseXml(XmlElement xml)
{
@ -53,7 +47,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("UnitType", mUnitType.ToString().ToLower());
}
}
public partial class IfcNavigationElement : IfcBuiltElement
public partial class IfcNavigationElement
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -69,7 +63,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcNavigationElementTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcNavigationElementType : IfcBuiltElementType
public partial class IfcNavigationElementType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public abstract partial class IfcObject : IfcObjectDefinition //ABSTRACT SUPERTYPE OF (ONEOF (IfcActor ,IfcControl ,IfcGroup ,IfcProcess ,IfcProduct ,IfcProject ,IfcResource))
public abstract partial class IfcObject
{
internal override void ParseXml(XmlElement xml)
{
@ -52,7 +46,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(mIsTypedBy.GetXML(xml.OwnerDocument, "IsTypedBy", this, processed));
}
}
public abstract partial class IfcObjectDefinition : IfcRoot, IfcDefinitionSelect //ABSTRACT SUPERTYPE OF (ONEOF ((IfcContext, IfcObject, IfcTypeObject))))
public abstract partial class IfcObjectDefinition
{
internal override void ParseXml(XmlElement xml)
{
@ -151,7 +145,7 @@ namespace GeometryGym.Ifc
//}
}
}
public partial class IfcObjective : IfcConstraint
public partial class IfcObjective
{
internal override void ParseXml(XmlElement xml)
{
@ -195,7 +189,7 @@ namespace GeometryGym.Ifc
}
}
public abstract partial class IfcObjectPlacement : BaseClassIfc // ABSTRACT SUPERTYPE OF (ONEOF (IfcGridPlacement ,IfcLocalPlacement));
public abstract partial class IfcObjectPlacement
{
internal override void ParseXml(XmlElement xml)
{
@ -214,7 +208,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(mPlacementRelTo.GetXML(xml.OwnerDocument, "PlacementRelTo", this, processed));
}
}
public partial class IfcOpenCrossProfileDef : IfcProfileDef
public partial class IfcOpenCrossProfileDef
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -246,7 +240,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcOpeningElement : IfcFeatureElementSubtraction //SUPERTYPE OF(IfcOpeningStandardCase)
public partial class IfcOpeningElement
{
internal override void ParseXml(XmlElement xml)
{
@ -285,7 +279,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcOrganization : BaseClassIfc, IfcActorSelect, IfcResourceObjectSelect
public partial class IfcOrganization
{
internal override void ParseXml(XmlElement xml)
{
@ -349,7 +343,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcOrganizationRelationship : IfcResourceLevelRelationship //IFC4
public partial class IfcOrganizationRelationship
{
internal override void ParseXml(XmlElement xml)
{
@ -380,7 +374,7 @@ namespace GeometryGym.Ifc
element.AppendChild(o.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcOwnerHistory : BaseClassIfc
public partial class IfcOwnerHistory
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,19 +18,13 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public abstract partial class IfcParameterizedProfileDef : IfcProfileDef //GG //ABSTRACT SUPERTYPE OF (ONEOF (IfcCShapeProfileDef ,IfcCircleProfileDef ,IfcCraneRailAShapeProfileDef ,IfcCraneRailFShapeProfileDef ,
{//IfcEllipseProfileDef ,IfcIShapeProfileDef ,IfcLShapeProfileDef ,IfcRectangleProfileDef ,IfcTShapeProfileDef ,IfcTrapeziumProfileDef ,IfcUShapeProfileDef ,IfcZShapeProfileDef))*/
public abstract partial class IfcParameterizedProfileDef
{
internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
@ -48,7 +42,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(Position.GetXML(xml.OwnerDocument, "Position", this, processed));
}
}
public partial class IfcPavement : IfcBuiltElement
public partial class IfcPavement
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -64,7 +58,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcPavementTypeEnum>(str, out mPredefinedType);
}
}
public partial class IfcPavementType : IfcBuiltElementType
public partial class IfcPavementType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -79,7 +73,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcPavementTypeEnum>(str, out mPredefinedType);
}
}
public partial class IfcPerson : BaseClassIfc, IfcActorSelect, IfcResourceObjectSelect
public partial class IfcPerson
{
internal override void ParseXml(XmlElement xml)
{
@ -149,7 +143,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcPersonAndOrganization : BaseClassIfc, IfcActorSelect, IfcResourceObjectSelect
public partial class IfcPersonAndOrganization
{
internal override void ParseXml(XmlElement xml)
{
@ -170,7 +164,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(TheOrganization.GetXML(xml.OwnerDocument, "TheOrganization", this, processed));
}
}
public abstract partial class IfcPhysicalQuantity : BaseClassIfc, IfcResourceObjectSelect //ABSTRACT SUPERTYPE OF(ONEOF(IfcPhysicalComplexQuantity, IfcPhysicalSimpleQuantity));
public abstract partial class IfcPhysicalQuantity
{
internal override void ParseXml(XmlElement xml)
{
@ -187,7 +181,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Description", Description);
}
}
public partial class IfcPipeFittingType : IfcFlowFittingType
public partial class IfcPipeFittingType
{
internal override void ParseXml(XmlElement xml)
{
@ -202,7 +196,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public abstract partial class IfcPlacement : IfcGeometricRepresentationItem /*ABSTRACT SUPERTYPE OF (ONEOF (IfcAxis1Placement ,IfcAxis2Placement2D ,IfcAxis2Placement3D))*/
public abstract partial class IfcPlacement
{
internal override void ParseXml(XmlElement xml)
{
@ -220,7 +214,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(mLocation.GetXML(xml.OwnerDocument, "Location", this, processed));
}
}
public partial class IfcPlanarExtent : IfcGeometricRepresentationItem
public partial class IfcPlanarExtent
{
internal override void ParseXml(XmlElement xml)
{
@ -290,7 +284,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(BasisCurve.GetXML(xml.OwnerDocument, "BasisCurve", this, processed));
}
}
public partial class IfcPointOnCurve : IfcPoint
public partial class IfcPointOnCurve
{
internal override void ParseXml(XmlElement xml)
{
@ -311,7 +305,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PointParameter", mPointParameter.ToString());
}
}
public partial class IfcPointOnSurface : IfcPoint
public partial class IfcPointOnSurface
{
internal override void ParseXml(XmlElement xml)
{
@ -335,7 +329,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PointParameterV", mPointParameterV.ToString());
}
}
public partial class IfcPolyline : IfcBoundedCurve
public partial class IfcPolyline
{
internal override void ParseXml(XmlElement xml)
{
@ -363,7 +357,7 @@ namespace GeometryGym.Ifc
element.AppendChild(p.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcPolyLoop : IfcLoop
public partial class IfcPolyLoop
{
internal override void ParseXml(XmlElement xml)
{
@ -391,7 +385,7 @@ namespace GeometryGym.Ifc
element.AppendChild(p.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcPolynomialCurve : IfcCurve
public partial class IfcPolynomialCurve
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -425,7 +419,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcPostalAddress : IfcAddress
public partial class IfcPostalAddress
{
internal override void ParseXml(XmlElement xml)
{
@ -486,7 +480,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Country", Country);
}
}
public partial class IfcPresentationLayerAssignment : BaseClassIfc //SUPERTYPE OF (IfcPresentationLayerWithStyle);
public partial class IfcPresentationLayerAssignment
{
internal override void ParseXml(XmlElement xml)
{
@ -523,7 +517,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Identifier", Identifier);
}
}
public partial class IfcPresentationLayerWithStyle : IfcPresentationLayerAssignment
public partial class IfcPresentationLayerWithStyle
{
internal override void ParseXml(XmlElement xml)
{
@ -563,7 +557,7 @@ namespace GeometryGym.Ifc
}
}
}
public abstract partial class IfcPresentationStyle : BaseClassIfc, IfcStyleAssignmentSelect //ABSTRACT SUPERTYPE OF (ONEOF(IfcCurveStyle,IfcFillAreaStyle,IfcSurfaceStyle,IfcSymbolStyle,IfcTextStyle));
public abstract partial class IfcPresentationStyle
{
internal override void ParseXml(XmlElement xml)
{
@ -577,7 +571,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Name", Name);
}
}
public partial class IfcPresentationStyleAssignment : BaseClassIfc, IfcStyleAssignmentSelect //DEPRECATED IFC4
public partial class IfcPresentationStyleAssignment
{
internal override void ParseXml(XmlElement xml)
@ -606,7 +600,7 @@ namespace GeometryGym.Ifc
element.AppendChild((item as BaseClassIfc).GetXML(xml.OwnerDocument, "", this, processed));
}
}
public abstract partial class IfcProduct : IfcObject, IfcProductSelect // ABSTRACT SUPERTYPE OF (ONEOF (IfcAnnotation ,IfcElement ,IfcGrid ,IfcPort ,IfcProxy ,IfcSpatialElement ,IfcStructuralActivity ,IfcStructuralItem))
public abstract partial class IfcProduct
{
internal override void ParseXml(XmlElement xml)
{
@ -638,7 +632,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(element);
}
}
public partial class IfcProductDefinitionShape : IfcProductRepresentation<IfcShapeModel, IfcRepresentationItem>, IfcProductRepresentationSelect
public partial class IfcProductDefinitionShape
{
internal override void ParseXml(XmlElement xml)
{
@ -678,7 +672,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcProductRepresentation<Representation, RepresentationItem> : BaseClassIfc //(IfcMaterialDefinitionRepresentation ,IfcProductDefinitionShape));
public partial class IfcProductRepresentation<Representation, RepresentationItem>
{
internal override void ParseXml(XmlElement xml)
{
@ -716,8 +710,8 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcProfileDef : BaseClassIfc, IfcResourceObjectSelect // SUPERTYPE OF (ONEOF (IfcArbitraryClosedProfileDef ,IfcArbitraryOpenProfileDef
{ //,IfcCompositeProfileDef ,IfcDerivedProfileDef ,IfcParameterizedProfileDef)); IFC2x3 abstract
public partial class IfcProfileDef
{
internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
@ -766,7 +760,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcProjectedCRS : IfcCoordinateReferenceSystem //IFC4
public partial class IfcProjectedCRS
{
internal override void ParseXml(XmlElement xml)
{
@ -792,7 +786,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(MapUnit.GetXML(xml.OwnerDocument, "MapUnit", this, processed));
}
}
public abstract partial class IfcProperty : IfcPropertyAbstraction //ABSTRACT SUPERTYPE OF (ONEOF(IfcComplexProperty,IfcSimpleProperty));
public abstract partial class IfcProperty
{
internal override void ParseXml(XmlElement xml)
{
@ -824,7 +818,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Specification", Specification);
}
}
public partial class IfcPropertyBoundedValue : IfcSimpleProperty
public partial class IfcPropertyBoundedValue
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -839,7 +833,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(convert(xml.OwnerDocument, mSetPointValue, "SetPointValue", mDatabase.mXmlNamespace));
}
}
public partial class IfcPropertyBoundedValue<T> : IfcSimpleProperty where T : IfcValue
public partial class IfcPropertyBoundedValue<T>
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -854,7 +848,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(convert(xml.OwnerDocument, mSetPointValue, "SetPointValue", mDatabase.mXmlNamespace));
}
}
public abstract partial class IfcPropertyDefinition : IfcRoot, IfcDefinitionSelect //(IfcPropertySetDefinition, IfcPropertyTemplateDefinition)
public abstract partial class IfcPropertyDefinition
{
internal override void ParseXml(XmlElement xml)
{
@ -890,10 +884,8 @@ namespace GeometryGym.Ifc
//}
}
public abstract partial class IfcPropertyAbstraction : BaseClassIfc, IfcResourceObjectSelect //ABSTRACT SUPERTYPE OF (ONEOF (IfcExtendedProperties ,IfcPreDefinedProperties ,IfcProperty ,IfcPropertyEnumeration));
public abstract partial class IfcPropertyAbstraction
{
//internal List<IfcExternalReferenceRelationship> mHasExternalReference = new List<IfcExternalReferenceRelationship>(); //IFC4
//internal List<IfcResourceConstraintRelationship> mHasConstraintRelationships = new List<IfcResourceConstraintRelationship>(); //gg
internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
@ -939,7 +931,7 @@ namespace GeometryGym.Ifc
//}
}
}
public partial class IfcPropertyEnumeratedValue : IfcSimpleProperty
public partial class IfcPropertyEnumeratedValue
{
internal override void ParseXml(XmlElement xml)
{
@ -970,7 +962,7 @@ namespace GeometryGym.Ifc
element.AppendChild(EnumerationReference.GetXML(xml.OwnerDocument, "EnumerationReference", this, processed));
}
}
public partial class IfcPropertyEnumeration : IfcPropertyAbstraction
public partial class IfcPropertyEnumeration
{
internal override void ParseXml(XmlElement xml)
{
@ -1006,7 +998,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(((BaseClassIfc) mUnit).GetXML(xml.OwnerDocument, "Unit", this, processed));
}
}
public partial class IfcPropertySet : IfcPropertySetDefinition
public partial class IfcPropertySet
{
internal override void ParseXml(XmlElement xml)
{
@ -1024,7 +1016,7 @@ namespace GeometryGym.Ifc
setChild(xml, "HasProperties", mHasProperties.Values, processed);
}
}
public partial class IfcPropertySetDefinition : IfcPropertyDefinition
public partial class IfcPropertySetDefinition
{
internal override void ParseXml(XmlElement xml)
{
@ -1055,7 +1047,7 @@ namespace GeometryGym.Ifc
setChild(xml, "IsDefinedBy", IsDefinedBy, processed);
}
}
public partial class IfcPropertySetTemplate : IfcPropertyTemplateDefinition
public partial class IfcPropertySetTemplate
{
internal override void ParseXml(XmlElement xml)
{
@ -1080,7 +1072,7 @@ namespace GeometryGym.Ifc
setChild(xml, "HasPropertyTemplates", HasPropertyTemplates.Values, processed);
}
}
public partial class IfcPropertySingleValue : IfcSimpleProperty
public partial class IfcPropertySingleValue
{
internal override void ParseXml(XmlElement xml)
{
@ -1110,7 +1102,7 @@ namespace GeometryGym.Ifc
//}
}
}
public partial class IfcPumpType : IfcFlowMovingDeviceType
public partial class IfcPumpType
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcQuantityArea : IfcPhysicalSimpleQuantity
public partial class IfcQuantityArea
{
internal override void ParseXml(XmlElement xml)
{
@ -46,7 +40,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Formula", Formula);
}
}
public partial class IfcQuantityCount : IfcPhysicalSimpleQuantity
public partial class IfcQuantityCount
{
internal override void ParseXml(XmlElement xml)
{
@ -63,7 +57,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Formula", Formula);
}
}
public partial class IfcQuantityLength : IfcPhysicalSimpleQuantity
public partial class IfcQuantityLength
{
internal override void ParseXml(XmlElement xml)
{
@ -80,7 +74,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Formula", Formula);
}
}
public partial class IfcQuantityTime : IfcPhysicalSimpleQuantity
public partial class IfcQuantityTime
{
internal override void ParseXml(XmlElement xml)
{
@ -97,7 +91,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Formula", Formula);
}
}
public partial class IfcQuantityVolume : IfcPhysicalSimpleQuantity
public partial class IfcQuantityVolume
{
internal override void ParseXml(XmlElement xml)
{
@ -114,7 +108,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Formula", Formula);
}
}
public partial class IfcQuantityWeight : IfcPhysicalSimpleQuantity
public partial class IfcQuantityWeight
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcRail : IfcBuiltElement
public partial class IfcRail
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -45,7 +39,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcRailTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcRailType : IfcBuiltElementType
public partial class IfcRailType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -60,7 +54,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcRailTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcRectangleHollowProfileDef : IfcRectangleProfileDef
public partial class IfcRectangleHollowProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -82,7 +76,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("OuterFilletRadius", mOuterFilletRadius.ToString());
}
}
public partial class IfcRectangleProfileDef : IfcParameterizedProfileDef // SUPERTYPE OF(ONEOF(IfcRectangleHollowProfileDef, IfcRoundedRectangleProfileDef))
public partial class IfcRectangleProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -99,9 +93,8 @@ namespace GeometryGym.Ifc
xml.SetAttribute("YDim", mYDim.ToString());
}
}
public partial class IfcRectangularPyramid : IfcCsgPrimitive3D
public partial class IfcRectangularPyramid
{
//internal double mXLength, mYLength, mHeight;// : IfcPositiveLengthMeasure;
internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
@ -120,7 +113,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("YLength", mYLength.ToString());
}
}
public partial class IfcRectangularTrimmedSurface : IfcBoundedSurface
public partial class IfcRectangularTrimmedSurface
{
internal override void ParseXml(XmlElement xml)
{
@ -156,7 +149,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Vsense", mVsense.ToString());
}
}
public partial class IfcReference : BaseClassIfc, IfcMetricValueSelect, IfcAppliedValueSelect // IFC4
public partial class IfcReference
{
internal override void ParseXml(XmlElement xml)
{
@ -189,7 +182,7 @@ namespace GeometryGym.Ifc
}
}
public partial class IfcReinforcedSoil : IfcEarthworksElement
public partial class IfcReinforcedSoil
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -205,7 +198,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcReinforcedSoilTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcReinforcementBarProperties : IfcPreDefinedProperties
public partial class IfcReinforcementBarProperties
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -219,7 +212,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "BarCount", BarCount);
}
}
public partial class IfcReinforcementDefinitionProperties : IfcPreDefinedPropertySet //IFC2x3 IfcPropertySetDefinition
public partial class IfcReinforcementDefinitionProperties
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -231,7 +224,7 @@ namespace GeometryGym.Ifc
element.AppendChild(prop.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcRelAggregates : IfcRelDecomposes
public partial class IfcRelAggregates
{
internal override void ParseXml(XmlElement xml)
{
@ -261,7 +254,7 @@ namespace GeometryGym.Ifc
element.AppendChild(od.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public abstract partial class IfcRelAssigns : IfcRelationship // ABSTRACT SUPERTYPE OF(ONEOF(IfcRelAssignsToActor, IfcRelAssignsToControl, IfcRelAssignsToGroup, IfcRelAssignsToProcess, IfcRelAssignsToProduct, IfcRelAssignsToResource))
public abstract partial class IfcRelAssigns
{
internal override void ParseXml(XmlElement xml)
{
@ -297,7 +290,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcRelAssignsToActor : IfcRelAssigns
public partial class IfcRelAssignsToActor
{
internal override void ParseXml(XmlElement xml)
{
@ -320,7 +313,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(ActingRole.GetXML(xml.OwnerDocument, "ActingRole", this, processed));
}
}
public partial class IfcRelAssignsToProduct : IfcRelAssigns
public partial class IfcRelAssignsToProduct
{
internal override void ParseXml(XmlElement xml)
{
@ -340,7 +333,7 @@ namespace GeometryGym.Ifc
}
}
public abstract partial class IfcRelAssociates : IfcRelationship //ABSTRACT SUPERTYPE OF (ONEOF(IfcRelAssociatesApproval,IfcRelAssociatesclassification,IfcRelAssociatesConstraint,IfcRelAssociatesDocument,IfcRelAssociatesLibrary,IfcRelAssociatesMaterial))
public abstract partial class IfcRelAssociates
{
internal override void ParseXml(XmlElement xml)
{
@ -371,7 +364,7 @@ namespace GeometryGym.Ifc
element.AppendChild((r as BaseClassIfc).GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcRelAssociatesClassification : IfcRelAssociates
public partial class IfcRelAssociatesClassification
{
internal override void ParseXml(XmlElement xml)
{
@ -389,7 +382,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((RelatingClassification as BaseClassIfc).GetXML(xml.OwnerDocument, "RelatingClassification", this, processed));
}
}
public partial class IfcRelAssociatesConstraint : IfcRelAssociates
public partial class IfcRelAssociatesConstraint
{
internal override void ParseXml(XmlElement xml)
{
@ -457,7 +450,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((mRelatingLibrary as BaseClassIfc).GetXML(xml.OwnerDocument, "RelatingLibrary", this, processed));
}
}
public partial class IfcRelAssociatesMaterial : IfcRelAssociates
public partial class IfcRelAssociatesMaterial
{
internal override void ParseXml(XmlElement xml)
{
@ -475,7 +468,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((mRelatingMaterial as BaseClassIfc).GetXML(xml.OwnerDocument, "RelatingMaterial", this, processed));
}
}
public partial class IfcRelAssociatesProfileDef : IfcRelAssociates
public partial class IfcRelAssociatesProfileDef
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -493,7 +486,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcRelContainedInSpatialStructure : IfcRelConnects
public partial class IfcRelContainedInSpatialStructure
{
internal override void ParseXml(XmlElement xml)
{
@ -523,7 +516,7 @@ namespace GeometryGym.Ifc
element.AppendChild(product.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcRelDeclares : IfcRelationship //IFC4
public partial class IfcRelDeclares
{
internal override void ParseXml(XmlElement xml)
{
@ -554,7 +547,7 @@ namespace GeometryGym.Ifc
element.AppendChild((d as BaseClassIfc).GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcRelDefinesByTemplate : IfcRelDefines
public partial class IfcRelDefinesByTemplate
{
internal override void ParseXml(XmlElement xml)
{
@ -581,7 +574,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(RelatingTemplate.GetXML(xml.OwnerDocument, "RelatingTemplate", this, processed));
}
}
public partial class IfcRelDefinesByType : IfcRelDefines
public partial class IfcRelDefinesByType
{
internal override void ParseXml(XmlElement xml)
{
@ -608,7 +601,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(RelatingType.GetXML(xml.OwnerDocument, "RelatingType", this, processed));
}
}
public partial class IfcRelDefinesByProperties : IfcRelDefines
public partial class IfcRelDefinesByProperties
{
internal override void ParseXml(XmlElement xml)
{
@ -636,7 +629,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(pset.GetXML(xml.OwnerDocument, "RelatingPropertyDefinition", this, processed));
}
}
public partial class IfcRelFillsElement : IfcRelConnects
public partial class IfcRelFillsElement
{
internal override void ParseXml(XmlElement xml)
{
@ -656,7 +649,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(RelatedBuildingElement.GetXML(xml.OwnerDocument, "RelatedBuildingElement", this, processed));
}
}
public partial class IfcRelNests : IfcRelDecomposes
public partial class IfcRelNests
{
internal override void ParseXml(XmlElement xml)
{
@ -686,7 +679,7 @@ namespace GeometryGym.Ifc
element.AppendChild(od.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcRelReferencedInSpatialStructure : IfcRelConnects
public partial class IfcRelReferencedInSpatialStructure
{
internal override void ParseXml(XmlElement xml)
{
@ -713,7 +706,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(RelatingStructure.GetXML(xml.OwnerDocument, "RelatingStructure", this, processed));
}
}
public partial class IfcRelServicesBuildings : IfcRelConnects
public partial class IfcRelServicesBuildings
{
internal override void ParseXml(XmlElement xml)
{
@ -740,7 +733,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(RelatingSystem.GetXML(xml.OwnerDocument, "RelatingSystem", this, processed));
}
}
public partial class IfcRelVoidsElement : IfcRelDecomposes // Ifc2x3 IfcRelConnects
public partial class IfcRelVoidsElement
{
internal override void ParseXml(XmlElement xml)
{
@ -760,7 +753,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(RelatedOpeningElement.GetXML(xml.OwnerDocument, "RelatedOpeningElement", this, processed));
}
}
public partial class IfcRepresentation<RepresentationItem> : BaseClassIfc, IfcLayeredItem // Abstract IFC4 ,SUPERTYPE OF (ONEOF(IfcShapeModel,IfcStyleModel));
public partial class IfcRepresentation<RepresentationItem>
{
internal override void ParseXml(XmlElement xml)
{
@ -817,7 +810,7 @@ namespace GeometryGym.Ifc
}
}
}
public abstract partial class IfcRepresentationContext : BaseClassIfc
public abstract partial class IfcRepresentationContext
{
internal override void ParseXml(XmlElement xml)
{
@ -842,7 +835,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "ContextType", ContextType);
}
}
public abstract partial class IfcRepresentationItem : BaseClassIfc, IfcLayeredItem /*(IfcGeometricRepresentationItem,IfcMappedItem,IfcStyledItem,IfcTopologicalRepresentationItem));*/
public abstract partial class IfcRepresentationItem
{
internal override void ParseXml(XmlElement xml)
{
@ -888,7 +881,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcRepresentationMap : BaseClassIfc, IfcProductRepresentationSelect
public partial class IfcRepresentationMap
{
internal override void ParseXml(XmlElement xml)
{
@ -915,7 +908,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcResourceConstraintRelationship : IfcResourceLevelRelationship // IfcPropertyConstraintRelationship; // DEPRECATED IFC4 renamed
public partial class IfcResourceConstraintRelationship
{
internal override void ParseXml(XmlElement xml)
{
@ -951,8 +944,8 @@ namespace GeometryGym.Ifc
xml.AppendChild(element);
}
}
public abstract partial class IfcResourceLevelRelationship : BaseClassIfc //IFC4 ABSTRACT SUPERTYPE OF(ONEOF(IfcApprovalRelationship,
{ // IfcCurrencyRelationship, IfcDocumentInformationRelationship, IfcExternalReferenceRelationship, IfcMaterialRelationship, IfcOrganizationRelationship, IfcPropertyDependencyRelationship, IfcResourceApprovalRelationship, IfcResourceConstraintRelationship));
public abstract partial class IfcResourceLevelRelationship
{
internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
@ -968,7 +961,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Description", Description);
}
}
public partial class IfcRevolvedAreaSolid : IfcSweptAreaSolid // SUPERTYPE OF(IfcRevolvedAreaSolidTapered)
public partial class IfcRevolvedAreaSolid
{
internal override void ParseXml(XmlElement xml)
{
@ -989,7 +982,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Angle", mAngle.ToString());
}
}
public partial class IfcRightCircularCone : IfcCsgPrimitive3D
public partial class IfcRightCircularCone
{
internal override void ParseXml(XmlElement xml)
{
@ -1006,7 +999,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("BottomRadius", mBottomRadius.ToString());
}
}
public partial class IfcRightCircularCylinder : IfcCsgPrimitive3D
public partial class IfcRightCircularCylinder
{
internal override void ParseXml(XmlElement xml)
{
@ -1023,7 +1016,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Radius", mRadius.ToString());
}
}
public abstract partial class IfcRoot : BaseClassIfc//ABSTRACT SUPERTYPE OF (ONEOF (IfcObjectDefinition ,IfcPropertyDefinition ,IfcRelationship));
public abstract partial class IfcRoot
{
internal override void ParseXml(XmlElement xml)
{
@ -1058,7 +1051,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(OwnerHistory.GetXML(xml.OwnerDocument, "OwnerHistory", this, processed));
}
}
public partial class IfcRoundedRectangleProfileDef : IfcRectangleProfileDef
public partial class IfcRoundedRectangleProfileDef
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,14 +18,8 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
@ -54,13 +48,7 @@ namespace GeometryGym.Ifc
double.TryParse(att, out mConstantTerm);
}
}
public partial class IfcSectionedSpine : IfcGeometricRepresentationItem
{
//internal int mSpineCurve;// : IfcCompositeCurve;
//internal List<int> mCrossSections = new List<int>();// : LIST [2:?] OF IfcProfileDef;
//internal List<int> mCrossSectionPositions = new List<int>();// : LIST [2:?] OF IfcAxis2Placement3D;
}
public partial class IfcSectionedSurface : IfcSurface
public partial class IfcSectionedSurface
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -108,7 +96,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcSectionProperties : IfcPreDefinedProperties // IFC2x3 BaseClassIfc
public partial class IfcSectionProperties
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -119,7 +107,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(EndProfile.GetXML(xml.OwnerDocument, "EndProfile", this, processed));
}
}
public partial class IfcSectionReinforcementProperties : IfcPreDefinedProperties // IFC2x3 STPEntity
public partial class IfcSectionReinforcementProperties
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -137,7 +125,7 @@ namespace GeometryGym.Ifc
element.AppendChild(p.GetXML(xml.OwnerDocument, "", this, processed));
}
}
public abstract partial class IfcSegment : IfcGeometricRepresentationItem
public abstract partial class IfcSegment
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -174,7 +162,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcShapeAspect : BaseClassIfc
public partial class IfcShapeAspect
{
internal override void ParseXml(XmlElement xml)
{
@ -216,7 +204,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((mPartOfProductDefinitionShape as BaseClassIfc).GetXML(xml.OwnerDocument, "PartOfProductDefinitionShape", this, processed));
}
}
public partial class IfcShellBasedSurfaceModel : IfcGeometricRepresentationItem
public partial class IfcShellBasedSurfaceModel
{
internal override void ParseXml(XmlElement xml)
{
@ -244,7 +232,7 @@ namespace GeometryGym.Ifc
element.AppendChild((shell as BaseClassIfc).GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcSign : IfcElementComponent
public partial class IfcSign
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -260,7 +248,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcSignTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcSignal : IfcFlowTerminal
public partial class IfcSignal
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -276,7 +264,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcSignalTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcSignalType : IfcFlowTerminalType
public partial class IfcSignalType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -291,7 +279,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcSignalTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcSignType : IfcElementComponentType
public partial class IfcSignType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -306,7 +294,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcSignTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcSimplePropertyTemplate : IfcPropertyTemplate
public partial class IfcSimplePropertyTemplate
{
internal override void ParseXml(XmlElement xml)
{
@ -380,7 +368,7 @@ namespace GeometryGym.Ifc
double.TryParse(att, out mConstantTerm);
}
}
public partial class IfcSite : IfcSpatialStructureElement
public partial class IfcSite
{
internal override void ParseXml(XmlElement xml)
{
@ -426,7 +414,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(SiteAddress.GetXML(xml.OwnerDocument, "SiteAddress", this, processed));
}
}
public partial class IfcSIUnit : IfcNamedUnit
public partial class IfcSIUnit
{
internal override void ParseXml(XmlElement xml)
{
@ -452,7 +440,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Name", mName.ToString().ToLower());
}
}
public partial class IfcSlabType : IfcBuiltElementType
public partial class IfcSlabType
{
internal override void ParseXml(XmlElement xml)
{
@ -467,7 +455,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcSpace : IfcSpatialStructureElement, IfcSpaceBoundarySelect
public partial class IfcSpace
{
internal override void ParseXml(XmlElement xml)
{
@ -491,7 +479,7 @@ namespace GeometryGym.Ifc
}
}
public abstract partial class IfcSpatialElement : IfcProduct //ABSTRACT SUPERTYPE OF (ONEOF (IfcExternalSpatialStructureElement ,IfcSpatialStructureElement ,IfcSpatialZone))
public abstract partial class IfcSpatialElement
{
internal override void ParseXml(XmlElement xml)
{
@ -541,7 +529,7 @@ namespace GeometryGym.Ifc
}
}
}
public abstract partial class IfcSpatialStructureElement : IfcSpatialElement /*ABSTRACT SUPERTYPE OF (ONEOF (IfcBuilding ,IfcBuildingStorey ,IfcSite ,IfcSpace, IfcCivilStructureElement))*/
public abstract partial class IfcSpatialStructureElement
{
internal override void ParseXml(XmlElement xml)
{
@ -556,7 +544,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("CompositionType", mCompositionType.ToString().ToLower());
}
}
public partial class IfcSphere : IfcCsgPrimitive3D
public partial class IfcSphere
{
internal override void ParseXml(XmlElement xml)
{
@ -588,7 +576,7 @@ namespace GeometryGym.Ifc
}
}
}
public abstract partial class IfcStructuralAction : IfcStructuralActivity // ABSTRACT SUPERTYPE OF (ONEOF (IfcStructuralCurveAction, IfcStructuralPointAction, IfcStructuralSurfaceAction))
public abstract partial class IfcStructuralAction
{
internal override void ParseXml(XmlElement xml)
{
@ -616,7 +604,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(mCausedBy.GetXML(xml.OwnerDocument, "CausedBy", this, processed));
}
}
public abstract partial class IfcStructuralActivity : IfcProduct
public abstract partial class IfcStructuralActivity
{
internal override void ParseXml(XmlElement xml)
{
@ -641,7 +629,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(mAssignedToStructuralItem.GetXML(xml.OwnerDocument, "AssignedToStructuralItem", this, processed));
}
}
public partial class IfcStructuralAnalysisModel : IfcSystem
public partial class IfcStructuralAnalysisModel
{
internal override void ParseXml(XmlElement xml)
{
@ -701,7 +689,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(SharedPlacement.GetXML(xml.OwnerDocument, "SharedPlacement", this, processed));
}
}
public abstract partial class IfcStructuralConnection : IfcStructuralItem //ABSTRACT SUPERTYPE OF (ONEOF (IfcStructuralCurveConnection ,IfcStructuralPointConnection ,IfcStructuralSurfaceConnection))
public abstract partial class IfcStructuralConnection
{
internal override void ParseXml(XmlElement xml)
{
@ -720,7 +708,7 @@ namespace GeometryGym.Ifc
xml.AppendChild((mAppliedCondition as BaseClassIfc).GetXML(xml.OwnerDocument, "AppliedCondition", this, processed));
}
}
public abstract partial class IfcStructuralConnectionCondition : BaseClassIfc //ABSTRACT SUPERTYPE OF (ONEOF (IfcFailureConnectionCondition ,IfcSlippageConnectionCondition));
public abstract partial class IfcStructuralConnectionCondition
{
internal override void ParseXml(XmlElement xml)
{
@ -752,7 +740,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcStructuralCurveMember : IfcStructuralMember
public partial class IfcStructuralCurveMember
{
internal override void ParseXml(XmlElement xml)
{
@ -776,7 +764,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(mAxis.GetXML(xml.OwnerDocument, "Axis", this, processed));
}
}
public partial class IfcStructuralCurveReaction : IfcStructuralReaction
public partial class IfcStructuralCurveReaction
{
internal override void ParseXml(XmlElement xml)
{
@ -791,7 +779,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public abstract partial class IfcStructuralItem : IfcProduct, IfcStructuralActivityAssignmentSelect // ABSTRACT SUPERTYPE OF (ONEOF (IfcStructuralConnection ,IfcStructuralMember))
public abstract partial class IfcStructuralItem
{
internal override void ParseXml(XmlElement xml)
{
@ -804,7 +792,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcStructuralLoadLinearForce : IfcStructuralLoadStatic
public partial class IfcStructuralLoadLinearForce
{
internal override void ParseXml(XmlElement xml)
{
@ -839,11 +827,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("LinearMomentZ", mLinearMomentZ.ToString());
}
}
public partial class IfcStructuralLoadSingleForce : IfcStructuralLoadStatic
{
}
public partial class IfcStyledItem : IfcRepresentationItem
public partial class IfcStyledItem
{
internal override void ParseXml(XmlElement xml)
{
@ -876,7 +860,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "Name", Name);
}
}
public partial class IfcSurfaceCurveSweptAreaSolid : IfcDirectrixCurveSweptAreaSolid
public partial class IfcSurfaceCurveSweptAreaSolid
{
internal override void ParseXml(XmlElement xml)
{
@ -894,7 +878,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(ReferenceSurface.GetXML(xml.OwnerDocument, "ReferenceSurface", this, processed));
}
}
public partial class IfcSurfaceOfLinearExtrusion : IfcSweptSurface
public partial class IfcSurfaceOfLinearExtrusion
{
internal override void ParseXml(XmlElement xml)
{
@ -916,7 +900,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("Depth", mDepth.ToString());
}
}
public partial class IfcSurfaceOfRevolution : IfcSweptSurface
public partial class IfcSurfaceOfRevolution
{
internal override void ParseXml(XmlElement xml)
{
@ -934,7 +918,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(AxisPosition.GetXML(xml.OwnerDocument, "AxisPosition", this, processed));
}
}
public partial class IfcSurfaceStyle : IfcPresentationStyle, IfcPresentationStyleSelect
public partial class IfcSurfaceStyle
{
internal override void ParseXml(XmlElement xml)
{
@ -965,7 +949,7 @@ namespace GeometryGym.Ifc
element.AppendChild((style as BaseClassIfc).GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcSurfaceStyleShading : IfcPresentationItem, IfcSurfaceStyleElementSelect
public partial class IfcSurfaceStyleShading
{
internal override void ParseXml(XmlElement xml)
{
@ -987,7 +971,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(SurfaceColour.GetXML(xml.OwnerDocument, "SurfaceColour", this, processed));
}
}
public abstract partial class IfcSweptAreaSolid : IfcSolidModel /*ABSTRACT SUPERTYPE OF (ONEOF (IfcExtrudedAreaSolid, IfcFixedReferenceSweptAreaSolid ,IfcRevolvedAreaSolid ,IfcSurfaceCurveSweptAreaSolid))*/
public abstract partial class IfcSweptAreaSolid
{
internal override void ParseXml(XmlElement xml)
{
@ -1010,7 +994,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(Position.GetXML(xml.OwnerDocument, "Position", this, processed));
}
}
public partial class IfcSweptDiskSolid : IfcSolidModel
public partial class IfcSweptDiskSolid
{
internal override void ParseXml(XmlElement xml)
{
@ -1043,7 +1027,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("EndParam", mEndParam.ToString());
}
}
public abstract partial class IfcSweptSurface : IfcSurface /* ABSTRACT SUPERTYPE OF (ONEOF (IfcSurfaceOfLinearExtrusion ,IfcSurfaceOfRevolution))*/
public abstract partial class IfcSweptSurface
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcTable : BaseClassIfc, IfcMetricValueSelect
public partial class IfcTable
{
internal override void ParseXml(XmlElement xml)
{
@ -79,7 +73,7 @@ namespace GeometryGym.Ifc
}
}
}
public partial class IfcTableColumn : BaseClassIfc
public partial class IfcTableColumn
{
internal override void ParseXml(XmlElement xml)
{
@ -111,7 +105,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(ReferencePath.GetXML(xml.OwnerDocument, "ReferencePath",this,processed));
}
}
public partial class IfcTableRow : BaseClassIfc
public partial class IfcTableRow
{
internal override void ParseXml(XmlElement xml)
{
@ -145,7 +139,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("IsHeading", mIsHeading.ToString().ToLower());
}
}
public partial class IfcTelecomAddress : IfcAddress
public partial class IfcTelecomAddress
{
internal override void ParseXml(XmlElement xml)
{
@ -234,9 +228,8 @@ namespace GeometryGym.Ifc
setAttribute(xml, "WWWHomePageURL", WWWHomePageURL);
}
}
public abstract partial class IfcTessellatedFaceSet : IfcTessellatedItem, IfcBooleanOperand //ABSTRACT SUPERTYPE OF(IfcTriangulatedFaceSet)
public abstract partial class IfcTessellatedFaceSet
{
//internal int mCoordinates;// : IfcCartesianPointList;
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
base.SetXML(xml, host, processed);
@ -272,7 +265,7 @@ namespace GeometryGym.Ifc
double.TryParse(att, out mConstantTerm);
}
}
public partial class IfcTrackElement : IfcBuiltElement
public partial class IfcTrackElement
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -288,7 +281,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcTrackElementTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcTrackElementType : IfcBuiltElementType
public partial class IfcTrackElementType
{
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary<string, XmlElement> processed)
{
@ -303,7 +296,7 @@ namespace GeometryGym.Ifc
Enum.TryParse<IfcTrackElementTypeEnum>(predefinedType.Value, out mPredefinedType);
}
}
public partial class IfcTransitionCurveSegment2D : IfcCurveSegment2D //IFC4x1
public partial class IfcTransitionCurveSegment2D
{
internal override void ParseXml(XmlElement xml)
{
@ -337,7 +330,7 @@ namespace GeometryGym.Ifc
setAttribute(xml, "TransitionCurveType", TransitionCurveType.ToString());
}
}
public partial class IfcTrapeziumProfileDef : IfcParameterizedProfileDef
public partial class IfcTrapeziumProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -360,7 +353,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("TopXOffset", mTopXOffset.ToString());
}
}
public partial class IfcTriangulatedFaceSet : IfcTessellatedFaceSet
public partial class IfcTriangulatedFaceSet
{
internal override void ParseXml(XmlElement xml)
{
@ -417,7 +410,7 @@ namespace GeometryGym.Ifc
}
}
public partial class IfcTrimmedCurve : IfcBoundedCurve
public partial class IfcTrimmedCurve
{
internal override void ParseXml(XmlElement xml)
{
@ -481,7 +474,7 @@ namespace GeometryGym.Ifc
return result;
}
}
public partial class IfcTShapeProfileDef : IfcParameterizedProfileDef
public partial class IfcTShapeProfileDef
{
internal override void ParseXml(XmlElement xml)
{
@ -528,9 +521,8 @@ namespace GeometryGym.Ifc
xml.SetAttribute("CentreOfGravityInX", mCentreOfGravityInX.ToString());
}
}
public partial class IfcTypeObject : IfcObjectDefinition //(IfcTypeProcess, IfcTypeProduct, IfcTypeResource) IFC4 ABSTRACT
public partial class IfcTypeObject
{
//internal List<int> mHasPropertySets = new List<int>();// : OPTIONAL SET [1:?] OF IfcPropertySetDefinition
internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
@ -565,7 +557,7 @@ namespace GeometryGym.Ifc
xml.AppendChild(element);
}
}
public partial class IfcTypeProduct : IfcTypeObject, IfcProductSelect //ABSTRACT SUPERTYPE OF (ONEOF (IfcDoorStyle ,IfcElementType ,IfcSpatialElementType ,IfcWindowStyle))
public partial class IfcTypeProduct
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcUnitaryEquipment : IfcEnergyConversionDevice
public partial class IfcUnitaryEquipment
{
internal override void ParseXml(XmlElement xml)
{
@ -44,7 +38,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcUnitaryEquipmentType : IfcEnergyConversionDeviceType
public partial class IfcUnitaryEquipmentType
{
internal override void ParseXml(XmlElement xml)
{
@ -60,7 +54,7 @@ namespace GeometryGym.Ifc
}
}
public partial class IfcUnitAssignment : BaseClassIfc
public partial class IfcUnitAssignment
{
internal override void ParseXml(XmlElement xml)
{
@ -88,7 +82,7 @@ namespace GeometryGym.Ifc
element.AppendChild((unit as BaseClassIfc).GetXML(xml.OwnerDocument, "", this, processed));
}
}
public partial class IfcUShapeProfileDef : IfcParameterizedProfileDef
public partial class IfcUShapeProfileDef
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcValveType : IfcFlowControllerType
public partial class IfcValveType
{
internal override void ParseXml(XmlElement xml)
{
@ -44,7 +38,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcVector : IfcGeometricRepresentationItem
public partial class IfcVector
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcWall : IfcBuiltElement
public partial class IfcWall
{
internal override void ParseXml(XmlElement xml)
{
@ -44,7 +38,7 @@ namespace GeometryGym.Ifc
xml.SetAttribute("PredefinedType", mPredefinedType.ToString().ToLower());
}
}
public partial class IfcWallType : IfcBuiltElementType
public partial class IfcWallType
{
internal override void ParseXml(XmlElement xml)
{

33
Core/IFC/XML/IFC X XML.cs Normal file
Просмотреть файл

@ -0,0 +1,33 @@
// MIT License
// Copyright (c) 2016 Geometry Gym Pty Ltd
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial
// portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
}

33
Core/IFC/XML/IFC Y XML.cs Normal file
Просмотреть файл

@ -0,0 +1,33 @@
// MIT License
// Copyright (c) 2016 Geometry Gym Pty Ltd
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial
// portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
}

Просмотреть файл

@ -18,18 +18,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.ComponentModel;
using System.Linq;
using System.Xml;
//using System.Xml.Linq;
namespace GeometryGym.Ifc
{
public partial class IfcZShapeProfileDef : IfcParameterizedProfileDef
public partial class IfcZShapeProfileDef
{
internal override void ParseXml(XmlElement xml)
{

Просмотреть файл

@ -35,6 +35,12 @@ namespace GeometryGym.STEP
{
public partial class DatabaseSTEP<T> : IEnumerable<T> where T : STEPEntity//, new()
{
public string FolderPath { get; set; }
public string OriginatingSystem { get; set; }
public DateTime TimeStamp { get; set; } = DateTime.MinValue;
public List<string> Comments { get; } = new List<string>();
internal string mFileName = "";
public string FileName
{
@ -99,9 +105,7 @@ namespace GeometryGym.STEP
internal void logParseError(string str) { string error = "XX Error " + str; if (!mParsingErrors.Contains(error)) mParsingErrors.Add(error); }
internal void logParseWarning(string str) { string warning = "!! Warning " + str; if (!mParsingWarnings.Contains(warning)) mParsingWarnings.Add(warning); }
public string FolderPath { get; set; }
public string OriginatingSystem { get; set; }
public DateTime TimeStamp { get; set; } = DateTime.MinValue;
}
}

Просмотреть файл

@ -382,6 +382,12 @@
<Compile Include="..\..\Core\IFC\XML\IFC W XML.cs">
<Link>IFC\XML\IFC W XML.cs</Link>
</Compile>
<Compile Include="..\..\Core\IFC\XML\IFC X XML.cs">
<Link>IFC\XML\IFC X XML.cs</Link>
</Compile>
<Compile Include="..\..\Core\IFC\XML\IFC Y XML.cs">
<Link>IFC\XML\IFC Y XML.cs</Link>
</Compile>
<Compile Include="..\..\Core\IFC\XML\IFC Z XML.cs">
<Link>IFC\XML\IFC Z XML.cs</Link>
</Compile>

Просмотреть файл

@ -20,8 +20,8 @@ using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.2.01.0")]
[assembly: AssemblyFileVersion("0.2.01.0")]
[assembly: AssemblyVersion("0.2.02.0")]
[assembly: AssemblyFileVersion("0.2.02.0")]
[assembly: AssemblyTitle("GeometryGymIFC")]
[assembly: AssemblyDescription("C# classes to generate and parse buildingSMART IFC (Industry Foundation Class) files")]

Просмотреть файл

@ -400,6 +400,12 @@
<Compile Include="..\..\core\ifc\xml\IFC W XML.cs">
<Link>IFC\XML\IFC W XML.cs</Link>
</Compile>
<Compile Include="..\..\Core\IFC\XML\IFC X XML.cs">
<Link>IFC\XML\IFC X XML.cs</Link>
</Compile>
<Compile Include="..\..\Core\IFC\XML\IFC Y XML.cs">
<Link>IFC\XML\IFC Y XML.cs</Link>
</Compile>
<Compile Include="..\..\core\ifc\xml\IFC Z XML.cs">
<Link>IFC\XML\IFC Z XML.cs</Link>
</Compile>

Просмотреть файл

@ -20,8 +20,8 @@ using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.2.01.0")]
[assembly: AssemblyFileVersion("0.2.01.0")]
[assembly: AssemblyVersion("0.2.02.0")]
[assembly: AssemblyFileVersion("0.2.02.0")]
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

Просмотреть файл

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>GeometryGymIFC_Core</PackageId>
<Version>0.2.01</Version>
<Version>0.2.02</Version>
<Authors>Geometry Gym</Authors>
<Product>GeometryGymIFC_Core</Product>
<Description>.Net Standard 2.0 C# classes to generate and parse buildingSMART IFC (Industry Foundation Class) files
@ -108,6 +108,8 @@ License https://github.com/GeometryGym/GeometryGymIFC/blob/master/LICENSE</Descr
<Compile Include="..\..\Core\IFC\XML\IFC U XML.cs" Link="IFC\XML\IFC U XML.cs" />
<Compile Include="..\..\Core\IFC\XML\IFC V XML.cs" Link="IFC\XML\IFC V XML.cs" />
<Compile Include="..\..\Core\IFC\XML\IFC W XML.cs" Link="IFC\XML\IFC W XML.cs" />
<Compile Include="..\..\Core\IFC\XML\IFC X XML.cs" Link="IFC\XML\IFC X XML.cs" />
<Compile Include="..\..\Core\IFC\XML\IFC Y XML.cs" Link="IFC\XML\IFC Y XML.cs" />
<Compile Include="..\..\Core\IFC\XML\IFC Z XML.cs" Link="IFC\XML\IFC Z XML.cs" />
<Compile Include="..\..\Core\STEP\BaseClassSTEP.cs" Link="STEP\BaseClassSTEP.cs" />
<Compile Include="..\..\Core\STEP\CollectionsSTEP.cs" Link="STEP\CollectionsSTEP.cs" />

Просмотреть файл

@ -106,9 +106,11 @@ namespace GeometryGym.Ifc
{
for (int u = 0; u < count; u++)
{
int multiplicity = knotList.KnotMultiplicity(u) + (u == 0 || u + 1 == count ? 1 : 0);
mKnots.Add(knotList[u]);
mKnotMultiplicities.Add(multiplicity);
double knot = knotList[u];
int multiplicity = knotList.KnotMultiplicity(u);
bool superfluous = (u == 0 || u + multiplicity == count);
mKnots.Add(knot);
mKnotMultiplicities.Add(multiplicity + (superfluous ? 1 : 0));
u += multiplicity - 1;
}
}