internal void IsolateObject(string filename) { DatabaseIfc db = new DatabaseIfc(mDatabase); 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; 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); }