示例#1
0
 /// <summary>
 ///   If the DoorLiningProperties contain a ShapeAspectStyle, returns the model whose RepresentationIdentifier equals identifier
 /// </summary>
 /// <param name = "lProps"></param>
 /// <param name = "identifier">The RepresentationIdentifier to retrieve</param>
 /// <returns></returns>
 public static IfcShapeModel GetShapeModel(this IfcDoorLiningProperties lProps, string identifier)
 {
     if (lProps.ShapeAspectStyle == null)
     {
         return(null);
     }
     else
     {
         return(lProps.ShapeAspectStyle.ShapeRepresentations.Lookup(identifier));
     }
 }
示例#2
0
 /// <summary>
 ///   if the DoorLiningProperties contain a ShapeAspectStyle, returns the the ShapeModelList
 /// </summary>
 /// <param name = "lProps"></param>
 /// <returns></returns>
 public static ShapeModelList GetShapeModels(this IfcDoorLiningProperties lProps)
 {
     if (lProps.ShapeAspectStyle == null)
     {
         return(null);
     }
     else
     {
         return(lProps.ShapeAspectStyle.ShapeRepresentations);
     }
 }
示例#3
0
 /// <summary>
 ///   if the DoorLiningProperties contain a ShapeAspectStyle, returns the the ShapeModelList
 /// </summary>
 /// <param name = "lProps"></param>
 /// <returns></returns>
 public static IItemSet <IfcShapeModel> GetShapeModels(this IfcDoorLiningProperties lProps)
 {
     return(lProps.ShapeAspectStyle == null ?
            null :
            lProps.ShapeAspectStyle.ShapeRepresentations);
 }