internal void IsolateObject(string filename) { DatabaseIfc db = new DatabaseIfc(mDatabase); IfcSpatialElement spatial = this as IfcSpatialElement; IfcElementAssembly eas = this as IfcElementAssembly; if (spatial != null || eas != null) db.Factory.Duplicate(this, true); else db.Factory.Duplicate(this); db.WriteFile(filename); }
internal void IsolateObject(string filename) { DatabaseIfc db = new DatabaseIfc(mDatabase); IfcSpatialElement spatial = this as IfcSpatialElement; IfcElementAssembly eas = this as IfcElementAssembly; db.Factory.Duplicate(this, true); IfcSite site = db.Project.RootElement as IfcSite; if (site != null) { IfcProductRepresentation pr = site.Representation; if (pr != null) { site.Representation = null; pr.Destruct(true); } } db.WriteFile(filename); }
internal static void parseFields(IfcElementAssembly a, List<string> arrFields, ref int ipos) { IfcElement.parseFields(a, arrFields, ref ipos); string str = arrFields[ipos++]; if (str.StartsWith(".")) a.mAssemblyPlace = (IfcAssemblyPlaceEnum)Enum.Parse(typeof(IfcAssemblyPlaceEnum), str.Replace(".", "")); str = arrFields[ipos++]; if (str.StartsWith(".")) a.mPredefinedType = (IfcElementAssemblyTypeEnum)Enum.Parse(typeof(IfcElementAssemblyTypeEnum), str.Replace(".", "")); }
internal static IfcElementAssembly Parse(string strDef) { IfcElementAssembly a = new IfcElementAssembly(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return a; }
internal IfcElementAssembly(IfcElementAssembly a) : base(a) { mPredefinedType = a.mPredefinedType; }
internal IfcElementAssembly(DatabaseIfc db, IfcElementAssembly a, bool downStream) : base(db,a,downStream) { mPredefinedType = a.mPredefinedType; }