示例#1
0
        /// <summary>
        /// Gets the panel operation from door style operation.
        /// </summary>
        /// <param name="ifcDoorStyleOperationType">
        /// The IFCDoorStyleOperation.
        /// </param>
        /// <returns>
        /// The string represents the door panel operation.
        /// </returns>
        public static IFCDoorPanelOperation GetPanelOperationFromDoorStyleOperation(Autodesk.Revit.DB.IFC.IFCDoorStyleOperation ifcDoorStyleOperationType)
        {
            switch (ifcDoorStyleOperationType)
            {
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.SingleSwingLeft:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.SingleSwingRight:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorSingleSwing:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeLeft:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeRight:
                return(IFCDoorPanelOperation.Swinging);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleSwingLeft:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleSwingRight:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorDoubleSwing:
                return(IFCDoorPanelOperation.Double_Acting);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.SlidingToLeft:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.SlidingToRight:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorSliding:
                return(IFCDoorPanelOperation.Sliding);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.FoldingToLeft:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.FoldingToRight:
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorFolding:
                return(IFCDoorPanelOperation.Folding);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.Revolving:
                return(IFCDoorPanelOperation.Revolving);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.RollingUp:
                return(IFCDoorPanelOperation.RollingUp);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.UserDefined:
                return(IFCDoorPanelOperation.UserDefined);

            default:
                return(IFCDoorPanelOperation.NotDefined);
            }
        }
示例#2
0
 /// <summary>
 /// Gets the panel operation from door style operation.
 /// </summary>
 /// <param name="ifcDoorStyleOperationType">
 /// The IFCDoorStyleOperation.
 /// </param>
 /// <returns>
 /// The string represents the door panel operation.
 /// </returns>
 public static IFCDoorPanelOperation GetPanelOperationFromDoorStyleOperation(IFCDoorStyleOperation ifcDoorStyleOperationType)
 {
     switch (ifcDoorStyleOperationType)
     {
         case IFCDoorStyleOperation.SingleSwingLeft:
         case IFCDoorStyleOperation.SingleSwingRight:
         case IFCDoorStyleOperation.DoubleDoorSingleSwing:
         case IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeLeft:
         case IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeRight:
             return IFCDoorPanelOperation.Swinging;
         case IFCDoorStyleOperation.DoubleSwingLeft:
         case IFCDoorStyleOperation.DoubleSwingRight:
         case IFCDoorStyleOperation.DoubleDoorDoubleSwing:
             return IFCDoorPanelOperation.Double_Acting;
         case IFCDoorStyleOperation.SlidingToLeft:
         case IFCDoorStyleOperation.SlidingToRight:
         case IFCDoorStyleOperation.DoubleDoorSliding:
             return IFCDoorPanelOperation.Sliding;
         case IFCDoorStyleOperation.FoldingToLeft:
         case IFCDoorStyleOperation.FoldingToRight:
         case IFCDoorStyleOperation.DoubleDoorFolding:
             return IFCDoorPanelOperation.Folding;
         case IFCDoorStyleOperation.Revolving:
             return IFCDoorPanelOperation.Revolving;
         case IFCDoorStyleOperation.RollingUp:
             return IFCDoorPanelOperation.RollingUp;
         case IFCDoorStyleOperation.UserDefined:
             return IFCDoorPanelOperation.UserDefined;
         default:
             return IFCDoorPanelOperation.NotDefined;
     }
 }
示例#3
0
        /// <summary>
        /// Gets IFCDoorStyleOperation from Revit IFCDoorStyleOperation.
        /// </summary>
        /// <param name="operation">The Revit IFCDoorStyleOperation.</param>
        /// <returns>The IFCDoorStyleOperation.</returns>
        public static Toolkit.IFCDoorStyleOperation GetDoorStyleOperation(Autodesk.Revit.DB.IFC.IFCDoorStyleOperation operation)
        {
            switch (operation)
            {
            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorDoubleSwing:
                return(Toolkit.IFCDoorStyleOperation.Double_Door_Double_Swing);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorFolding:
                return(Toolkit.IFCDoorStyleOperation.Double_Door_Folding);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorSingleSwing:
                return(Toolkit.IFCDoorStyleOperation.Double_Door_Single_Swing);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeLeft:
                return(Toolkit.IFCDoorStyleOperation.Double_Door_Single_Swing_Opposite_Left);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeRight:
                return(Toolkit.IFCDoorStyleOperation.Double_Door_Single_Swing_Opposite_Right);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleDoorSliding:
                return(Toolkit.IFCDoorStyleOperation.Double_Door_Sliding);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleSwingLeft:
                return(Toolkit.IFCDoorStyleOperation.Double_Swing_Left);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.DoubleSwingRight:
                return(Toolkit.IFCDoorStyleOperation.Double_Swing_Right);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.FoldingToLeft:
                return(Toolkit.IFCDoorStyleOperation.Folding_To_Left);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.FoldingToRight:
                return(Toolkit.IFCDoorStyleOperation.Folding_To_Right);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.Revolving:
                return(Toolkit.IFCDoorStyleOperation.Revolving);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.RollingUp:
                return(Toolkit.IFCDoorStyleOperation.RollingUp);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.SingleSwingLeft:
                return(Toolkit.IFCDoorStyleOperation.Single_Swing_Left);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.SingleSwingRight:
                return(Toolkit.IFCDoorStyleOperation.Single_Swing_Right);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.SlidingToLeft:
                return(Toolkit.IFCDoorStyleOperation.Sliding_To_Left);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.SlidingToRight:
                return(Toolkit.IFCDoorStyleOperation.Sliding_To_Right);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.UserDefined:
                return(Toolkit.IFCDoorStyleOperation.UserDefined);

            case Autodesk.Revit.DB.IFC.IFCDoorStyleOperation.NotDefined:
                return(Toolkit.IFCDoorStyleOperation.NotDefined);

            default:
                throw new ArgumentException("No corresponding type.", "operation");
            }
        }