Example #1
0
		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);
		}
Example #2
0
        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);
        }
Example #3
0
		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(".", ""));
		}
Example #4
0
		internal static IfcElementAssembly Parse(string strDef) { IfcElementAssembly a = new IfcElementAssembly(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return a; }
Example #5
0
		internal IfcElementAssembly(IfcElementAssembly a) : base(a) { mPredefinedType = a.mPredefinedType; }
Example #6
0
		internal IfcElementAssembly(DatabaseIfc db, IfcElementAssembly a, bool downStream) : base(db,a,downStream) { mPredefinedType = a.mPredefinedType; }