当前位置: 首页>>代码示例>>C#>>正文


C# IPropertyValue类代码示例

本文整理汇总了C#中IPropertyValue的典型用法代码示例。如果您正苦于以下问题:C# IPropertyValue类的具体用法?C# IPropertyValue怎么用?C# IPropertyValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IPropertyValue类属于命名空间,在下文中一共展示了IPropertyValue类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _sbsmBoundary.Add((IfcShell) value.EntityVal);
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcShellBasedSurfaceModel.cs

示例2: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _position = (IfcAxis2Placement3D) value.EntityVal;
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcElementarySurface.cs

示例3: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
             base.IfcParse(propIndex, value);
             break;
         case 8:
             _topFlangeWidth = value.RealVal;
             break;
         case 9:
             _topFlangeThickness = value.RealVal;
             break;
         case 10:
             _topFlangeFilletRadius = value.RealVal;
             break;
         case 11:
             _centreOfGravityInY = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:30,代码来源:IfcAsymmetricIShapeProfileDef.cs

示例4: IfcParse

        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            if (propIndex == 0 && value.Type == IfcParserType.Real) //we have a 2x2 colour with no name
            {
                _name = ifc2x2Colour;
            }
            if (_name == ifc2x2Colour) propIndex++; //move all indices along 

            switch (propIndex)
            {
                case 0:    
                    base.IfcParse(propIndex, value);
                    break;
                case 1:
                    _red = value.RealVal;
                    break;
                case 2:
                    _green = value.RealVal;
                    break;
                case 3:
                    _blue = value.RealVal;
                    break;
                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
开发者ID:bnaand,项目名称:xBim-Toolkit,代码行数:26,代码来源:IfcColourRgb.cs

示例5: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
         case 9:
         case 10:
             base.IfcParse(propIndex, value);
             break;
         case 11:
             _projectedOrTrue =
                 (IfcProjectedOrTrueLengthEnum)
                 Enum.Parse(typeof (IfcProjectedOrTrueLengthEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcStructuralLinearAction.cs

示例6: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _outer = (IfcClosedShell) value.EntityVal;
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcManifoldSolidBrep.cs

示例7: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _edgeList.Add((IfcOrientedEdge) value.EntityVal);
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcEdgeLoop.cs

示例8: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
             base.IfcParse(propIndex, value);
             break;
         case 7:
             _predefinedType =
                 (IfcStructuralSurfaceTypeEnum)
                 Enum.Parse(typeof (IfcStructuralSurfaceTypeEnum), value.EnumVal, true);
             break;
         case 8:
             _thickness = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:25,代码来源:IfcStructuralSurfaceMember.cs

示例9: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             _subContractor = (IfcActorSelect) value.EntityVal;
             break;
         case 10:
             _jobDescription = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:25,代码来源:IfcSubContractResource.cs

示例10: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             if (_suppliers == null)
                 _suppliers = new XbimSet<IfcActorSelect>(this);
             _suppliers.Add((IfcActorSelect)value.EntityVal);
             break;
         case 10:
             _usageRatio = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:bnaand,项目名称:xBim-Toolkit,代码行数:27,代码来源:IfcConstructionMaterialResource.cs

示例11: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             _destabilizingLoad = value.BooleanVal;
             break;
         case 10:
             _causedBy = (IfcStructuralReaction) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:25,代码来源:IfcStructuralAction.cs

示例12: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
             base.IfcParse(propIndex, value);
             break;
         case 7:
             _benchmark = (IfcBenchmarkEnum) Enum.Parse(typeof (IfcBenchmarkEnum), value.EnumVal);
             break;
         case 8:
             _valueSource = value.StringVal;
             break;
         case 9:
             _dataValue = (IfcMetricValueSelect) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcMetric.cs

示例13: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _contents.Add((IfcDraughtingCalloutElement) value.EntityVal);
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcDraughtingCallOut.cs

示例14: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
             base.IfcParse(propIndex, value);
             break;
         case 8:
             _assemblyPlace = (IfcAssemblyPlaceEnum)
                 Enum.Parse(typeof(IfcAssemblyPlaceEnum), value.EnumVal, true);
             break;
         case 9:
             _predefinedType = (IfcElementAssemblyTypeEnum)
                 Enum.Parse(typeof(IfcElementAssemblyTypeEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcElementAssembly.cs

示例15: IfcParse

        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                    base.IfcParse(propIndex, value);
                    break;
                case 8:
                    _predefinedType = (IfcPileTypeEnum) Enum.Parse(typeof (IfcPileTypeEnum), value.EnumVal, true);
                    break;
                case 9:
                    _constructionType =
                        (IfcPileConstructionEnum) Enum.Parse(typeof (IfcPileConstructionEnum), value.EnumVal, true);
                    break;

                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcPile.cs


注:本文中的IPropertyValue类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。