public static BbExtrudedGeometry RetrieveFromFeature(BbFeature feature) { var ret = new BbExtrudedGeometry(); // need modification //var pDS = feature.IfcOpeningElement.Representation as IfcProductDefinitionShape; //var representations = pDS.Representations; //foreach (var representation in representations) //{ // var sR = representation as IfcShapeRepresentation; // var repItems = representation.Items; // foreach (var repItem in repItems) // { // var eAS = repItem as IfcExtrudedAreaSolid; // var semExtudedGeometry = new BbExtrudedGeometry { _ifcProductDefinitionShape = pDS, IfcGeometricRepresentationItem = eAS, _ifcShapeRepresentation = sR }; // ret = semExtudedGeometry; // } //} return(ret); }
public static BbExtrudedGeometry RetrieveFromFeature(BbFeature feature) { var ret = new BbExtrudedGeometry(); // need modification //var pDS = feature.IfcOpeningElement.Representation as IfcProductDefinitionShape; //var representations = pDS.Representations; //foreach (var representation in representations) //{ // var sR = representation as IfcShapeRepresentation; // var repItems = representation.Items; // foreach (var repItem in repItems) // { // var eAS = repItem as IfcExtrudedAreaSolid; // var semExtudedGeometry = new BbExtrudedGeometry { _ifcProductDefinitionShape = pDS, IfcGeometricRepresentationItem = eAS, _ifcShapeRepresentation = sR }; // ret = semExtudedGeometry; // } //} return ret; }
public void AssignTo(BbFeature feature) { //element.IfcElement.Name = Name; BbPropertySet.AssignTo(feature); }