Пример #1
0
        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);
        }
Пример #2
0
 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;
 }
Пример #3
0
 public void AssignTo(BbFeature feature)
 {
     //element.IfcElement.Name = Name;
     BbPropertySet.AssignTo(feature);
 }
Пример #4
0
 public void AssignTo(BbFeature feature)
 {
     //element.IfcElement.Name = Name;
     BbPropertySet.AssignTo(feature);
 }