本文整理汇总了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);
}
示例2: IfcParse
public override void IfcParse(int propIndex, IPropertyValue value)
{
if (propIndex == 0)
_position = (IfcAxis2Placement3D) value.EntityVal;
else
this.HandleUnexpectedAttribute(propIndex, value);
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例6: IfcParse
public override void IfcParse(int propIndex, IPropertyValue value)
{
if (propIndex == 0)
_outer = (IfcClosedShell) value.EntityVal;
else
this.HandleUnexpectedAttribute(propIndex, value);
}
示例7: IfcParse
public override void IfcParse(int propIndex, IPropertyValue value)
{
if (propIndex == 0)
_edgeList.Add((IfcOrientedEdge) value.EntityVal);
else
this.HandleUnexpectedAttribute(propIndex, value);
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例13: IfcParse
public override void IfcParse(int propIndex, IPropertyValue value)
{
if (propIndex == 0)
_contents.Add((IfcDraughtingCalloutElement) value.EntityVal);
else
this.HandleUnexpectedAttribute(propIndex, value);
}
示例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;
}
}
示例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;
}
}