예제 #1
0
        public static IEnumerable <AGCColumnCurveDriven> CollectAllCurveDrivenColumns(GCRevitDocument doc)
        {
            var isElem = new List <GCElementCollector.IsElement> {
                GCColumnSlanted.IsColumnSlanted,
                GCColumnVertical.IsColumnVertical
            };
            var createElem = new List <GCElementCollector.CreateElement <AGCColumnCurveDriven> >()
            {
                GCColumnSlanted.CreateGCColumnSlanted,
                GCColumnVertical.CreateGCColumnVertical
            };

            return(GCElementCollector.CollectAllElementsOfCategory <AGCColumnCurveDriven>(doc, BuiltInCategory.OST_StructuralColumns, isElem, createElem));
        }
예제 #2
0
        public static IEnumerable <AGCRoofBase> CollectAllRoofSystems(GCRevitDocument doc)
        {
            var isElem = new List <GCElementCollector.IsElement> {
                GCRoofExtrusion.IsRoofExtrusion,
                GCRoofFootPrint.IsRoofFootPrint
            };
            var createElem = new List <GCElementCollector.CreateElement <AGCRoofBase> >()
            {
                GCRoofExtrusion.CreateGCRoofExtrusion,
                GCRoofFootPrint.CreateGCRoofFootPrint
            };

            return(GCElementCollector.CollectAllElementsOfCategory <AGCRoofBase>(doc, BuiltInCategory.OST_Roofs, isElem, createElem));
        }
예제 #3
0
        public static IEnumerable <AGCFrameCurveDriven> CollectAllCurveDrivenFraming(GCRevitDocument doc)
        {
            var isElem = new List <GCElementCollector.IsElement> {
                GCFrameBeam.IsBeam,
                GCFrameBrace.IsBrace
            };
            var createElem = new List <GCElementCollector.CreateElement <AGCFrameCurveDriven> >()
            {
                GCFrameBeam.CreateGCFrameBeam,
                GCFrameBrace.CreateGCFrameBrace
            };

            return(GCElementCollector.CollectAllElementsOfCategory <AGCFrameCurveDriven>(doc, BuiltInCategory.OST_StructuralFraming, isElem, createElem));
        }
예제 #4
0
        public static IEnumerable <AGCGridBase> CollectAllGridsAndMultiGrids(GCRevitDocument doc)
        {
            var isElem = new List <GCElementCollector.IsElement> {
                GCGrid.IsGrid,
                GCGridMulti.IsGridMulti
            };
            var createElem = new List <GCElementCollector.CreateElement <AGCGridBase> >()
            {
                GCGrid.CreateGCGrid,
                GCGridMulti.CreateGCGridMulti
            };

            return(GCElementCollector.CollectAllElementsOfCategory <AGCGridBase>(doc, BuiltInCategory.OST_Grids, isElem, createElem));
        }
예제 #5
0
        public static IEnumerable <AGCViewBase> GetAllViews(GCRevitDocument doc)
        {
            var isElem = new List <GCElementCollector.IsElement> {
                GCViewDrafting.IsViewDrafting,
                GCViewLegend.IsViewLegend,
                GCViewLive.IsViewLive,
                GCViewSheet.IsViewSheet
            };
            var createElem = new List <GCElementCollector.CreateElement <AGCViewBase> >()
            {
                GCViewDrafting.CreateGCViewDrafting,
                GCViewLegend.CreateGCViewLegend,
                GCViewLive.CreateGCViewLive,
                GCViewSheet.CreateGCViewSheet
            };

            return(GCElementCollector.CollectAllElementsOfCategory <AGCViewBase>(doc, BuiltInCategory.OST_Views, isElem, createElem));
        }
예제 #6
0
 public static IEnumerable <GCLevel> CollectAllLevels(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCLevel>(doc, BuiltInCategory.OST_Levels, GCLevel.IsLevel, GCLevel.CreateGCLevel));
 }
예제 #7
0
 public static IEnumerable <GCColumnInPlace> CollectAllInPlaceColumns(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCColumnInPlace>(doc, BuiltInCategory.OST_StructuralColumns, GCColumnInPlace.IsColumnInPlace, GCColumnInPlace.CreateGCColumnInPlace));
 }
예제 #8
0
 public static IEnumerable <GCFoundationFloor> CollectAllFoundationFloors(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFoundationFloor>(doc, BuiltInCategory.OST_StructuralFoundation, GCFoundationFloor.IsFoundationFloor, GCFoundationFloor.CreateGCFoundationFloor));
 }
예제 #9
0
 public static IEnumerable <GCFoundationInstance> CollectAllFoundationInstance(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFoundationInstance>(doc, BuiltInCategory.OST_StructuralFoundation, GCFoundationInstance.IsFoundationInstance, GCFoundationInstance.CreateGCFoundationInstance));
 }
예제 #10
0
 public static IEnumerable <GCViewLive> CollectAllLiveViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCViewLive>(doc, BuiltInCategory.OST_Views, GCViewLive.IsViewLive, GCViewLive.CreateGCViewLive));
 }
예제 #11
0
 public static IEnumerable <GCViewSheet> CollectAllSheetViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCViewSheet>(doc, BuiltInCategory.OST_Views, GCViewSheet.IsViewSheet, GCViewSheet.CreateGCViewSheet));
 }
예제 #12
0
 public static IEnumerable <GCWallCurtain> CollectAllWallCurtains(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCWallCurtain>(doc, BuiltInCategory.OST_Curtain_Systems, GCWallCurtain.IsWallCurtain, GCWallCurtain.CreateGCWallCurtain));
 }
예제 #13
0
 public static IEnumerable <GCRoofExtrusion> CollectAllRoofExtrusions(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCRoofExtrusion>(doc, BuiltInCategory.OST_Roofs, GCRoofExtrusion.IsRoofExtrusion, GCRoofExtrusion.CreateGCRoofExtrusion));
 }
예제 #14
0
 public static IEnumerable <GCFrameBrace> CollectAllBraceFraming(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFrameBrace>(doc, BuiltInCategory.OST_StructuralFraming, GCFrameBrace.IsBrace, GCFrameBrace.CreateGCFrameBrace));
 }
예제 #15
0
 public static IEnumerable <GCGridMulti> CollectAllMultiGrids(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCGridMulti>(doc, BuiltInCategory.OST_Grids, GCGridMulti.IsGridMulti, GCGridMulti.CreateGCGridMulti));
 }
예제 #16
0
 public static IEnumerable <GCFrameBeam> CollectAllBeamFraming(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFrameBeam>(doc, BuiltInCategory.OST_StructuralFraming, GCFrameBeam.IsBeam, GCFrameBeam.CreateGCFrameBeam));
 }
예제 #17
0
 public static IEnumerable <GCWallCurtainPanel> CollectAllWallCurtainPanels(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCWallCurtainPanel>(doc, BuiltInCategory.OST_CurtainWallPanels, GCWallCurtainPanel.IsWallCurtainPanel, GCWallCurtainPanel.CreateGCWallCurtainPanel));
 }
예제 #18
0
 public static IEnumerable <GCMass> CollectAllLevels(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCMass>(doc, BuiltInCategory.OST_Mass, GCMass.IsMass, GCMass.CreateGCMass));
 }
예제 #19
0
 public static IEnumerable <GCFloorInPlace> CollectAllFloorsInPlace(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFloorInPlace>(doc, BuiltInCategory.OST_Floors, GCFloorInPlace.IsFloorInPlace, GCFloorInPlace.CreateGCFloorInPlace));
 }
예제 #20
0
 public static IEnumerable <GCConnection> CollectAllConnections(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCConnection>(doc, BuiltInCategory.OST_StructConnections, GCConnection.IsConnection, GCConnection.CreateGCConnection));
 }
예제 #21
0
 public static IEnumerable <GCColumnVertical> CollectAllVerticalColumns(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCColumnVertical>(doc, BuiltInCategory.OST_StructuralColumns, GCColumnVertical.IsColumnVertical, GCColumnVertical.CreateGCColumnVertical));
 }
예제 #22
0
 public static IEnumerable <GCRoofFootPrint> CollectAllRoofFootPrints(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCRoofFootPrint>(doc, BuiltInCategory.OST_Roofs, GCRoofFootPrint.IsRoofFootPrint, GCRoofFootPrint.CreateGCRoofFootPrint));
 }
예제 #23
0
 public static IEnumerable <GCColumnSlanted> CollectAllSlantedColumns(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCColumnSlanted>(doc, BuiltInCategory.OST_StructuralColumns, GCColumnSlanted.IsColumnSlanted, GCColumnSlanted.CreateGCColumnSlanted));
 }
예제 #24
0
 public static IEnumerable <GCViewDrafting> CollectAllDraftingViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCViewDrafting>(doc, BuiltInCategory.OST_Views, GCViewDrafting.IsViewDrafting, GCViewDrafting.CreateGCViewDrafting));
 }
 public static IEnumerable <GCAdaptiveComponent> CollectAllAdaptiveComponents(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCAdaptiveComponent>(doc, BuiltInCategory.OST_GenericModel, GCAdaptiveComponent.IsAdaptiveComponent, GCAdaptiveComponent.CreateGCAdaptiveComponent));
 }
예제 #26
0
 public static IEnumerable <GCViewLegend> CollectAllLegendViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCViewLegend>(doc, BuiltInCategory.OST_Views, GCViewLegend.IsViewLegend, GCViewLegend.CreateGCViewLegend));
 }