예제 #1
0
 public static IEnumerable <GCMass> CollectSelectedLevels(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCMass>(doc, GCMass.IsMass, GCMass.CreateGCMass));
 }
예제 #2
0
 public static IEnumerable <GCColumnInPlace> CollectAllInPlaceColumns(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCColumnInPlace>(doc, BuiltInCategory.OST_StructuralColumns, GCColumnInPlace.IsColumnInPlace, GCColumnInPlace.CreateGCColumnInPlace));
 }
예제 #3
0
 public static IEnumerable <GCColumnSlanted> CollectAllSlantedColumns(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCColumnSlanted>(doc, BuiltInCategory.OST_StructuralColumns, GCColumnSlanted.IsColumnSlanted, GCColumnSlanted.CreateGCColumnSlanted));
 }
예제 #4
0
 public static IEnumerable <GCGridMulti> CollectAllMultiGrids(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCGridMulti>(doc, BuiltInCategory.OST_Grids, GCGridMulti.IsGridMulti, GCGridMulti.CreateGCGridMulti));
 }
예제 #5
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));
        }
예제 #6
0
 public static IEnumerable <GCFoundationInstance> CollectSelectedFoundationInstance(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCFoundationInstance>(doc, GCFoundationInstance.IsFoundationInstance, GCFoundationInstance.CreateGCFoundationInstance));
 }
예제 #7
0
 public static IEnumerable <GCLevel> CollectSelectedLevels(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCLevel>(doc, GCLevel.IsLevel, GCLevel.CreateGCLevel));
 }
예제 #8
0
 public static IEnumerable <GCViewDrafting> CollectAllDraftingViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCViewDrafting>(doc, BuiltInCategory.OST_Views, GCViewDrafting.IsViewDrafting, GCViewDrafting.CreateGCViewDrafting));
 }
예제 #9
0
 public static IEnumerable <GCViewDrafting> CollectSelectedDraftingViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCViewDrafting>(doc, GCViewDrafting.IsViewDrafting, GCViewDrafting.CreateGCViewDrafting));
 }
예제 #10
0
 public static IEnumerable <GCFrameBrace> CollectAllBraceFraming(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFrameBrace>(doc, BuiltInCategory.OST_StructuralFraming, GCFrameBrace.IsBrace, GCFrameBrace.CreateGCFrameBrace));
 }
예제 #11
0
 public static IEnumerable <GCFrameBrace> CollectSelectedBraceFraming(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCFrameBrace>(doc, GCFrameBrace.IsBrace, GCFrameBrace.CreateGCFrameBrace));
 }
예제 #12
0
 public static IEnumerable <GCFrameBeam> CollectSelectedBeamFraming(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCFrameBeam>(doc, GCFrameBeam.IsBeam, GCFrameBeam.CreateGCFrameBeam));
 }
예제 #13
0
 public static IEnumerable <GCFrameBeam> CollectAllBeamFraming(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFrameBeam>(doc, BuiltInCategory.OST_StructuralFraming, GCFrameBeam.IsBeam, GCFrameBeam.CreateGCFrameBeam));
 }
예제 #14
0
        public static IEnumerable <AGCFrameCurveDriven> CollectSelectedCurveDrivenFraming(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.CollectSelectedElements <AGCFrameCurveDriven>(doc, isElem, createElem));
        }
예제 #15
0
 public static IEnumerable <GCFoundationFloor> CollectSelectedFoundationFloors(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCFoundationFloor>(doc, GCFoundationFloor.IsFoundationFloor, GCFoundationFloor.CreateGCFoundationFloor));
 }
예제 #16
0
 public static IEnumerable <GCViewLegend> CollectAllLegendViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCViewLegend>(doc, BuiltInCategory.OST_Views, GCViewLegend.IsViewLegend, GCViewLegend.CreateGCViewLegend));
 }
예제 #17
0
 public static IEnumerable <GCFoundationInstance> CollectAllFoundationInstance(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFoundationInstance>(doc, BuiltInCategory.OST_StructuralFoundation, GCFoundationInstance.IsFoundationInstance, GCFoundationInstance.CreateGCFoundationInstance));
 }
예제 #18
0
 public static IEnumerable <GCViewLegend> CollectSelectedLegendViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCViewLegend>(doc, GCViewLegend.IsViewLegend, GCViewLegend.CreateGCViewLegend));
 }
예제 #19
0
 public static IEnumerable <GCLevel> CollectAllLevels(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCLevel>(doc, BuiltInCategory.OST_Levels, GCLevel.IsLevel, GCLevel.CreateGCLevel));
 }
예제 #20
0
 public static IEnumerable <GCViewLive> CollectAllLiveViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCViewLive>(doc, BuiltInCategory.OST_Views, GCViewLive.IsViewLive, GCViewLive.CreateGCViewLive));
 }
예제 #21
0
 public static IEnumerable <GCGrid> CollectSelectedGrids(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCGrid>(doc, GCGrid.IsGrid, GCGrid.CreateGCGrid));
 }
예제 #22
0
 public static IEnumerable <GCViewLive> CollectSelectedLiveViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCViewLive>(doc, GCViewLive.IsViewLive, GCViewLive.CreateGCViewLive));
 }
예제 #23
0
 public static IEnumerable <GCGridMulti> CollectSelectedMultiGrids(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCGridMulti>(doc, GCGridMulti.IsGridMulti, GCGridMulti.CreateGCGridMulti));
 }
예제 #24
0
 public static IEnumerable <GCViewSheet> CollectAllSheetViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCViewSheet>(doc, BuiltInCategory.OST_Views, GCViewSheet.IsViewSheet, GCViewSheet.CreateGCViewSheet));
 }
예제 #25
0
        public static IEnumerable <AGCColumnCurveDriven> CollectSelectedCurveDrivenColumns(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.CollectSelectedElements <AGCColumnCurveDriven>(doc, isElem, createElem));
        }
예제 #26
0
 public static IEnumerable <GCViewSheet> CollectSelectedSheetViews(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCViewSheet>(doc, GCViewSheet.IsViewSheet, GCViewSheet.CreateGCViewSheet));
 }
예제 #27
0
 public static IEnumerable <GCColumnInPlace> CollectSelectedInPlaceColumns(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCColumnInPlace>(doc, GCColumnInPlace.IsColumnInPlace, GCColumnInPlace.CreateGCColumnInPlace));
 }
예제 #28
0
 public static IEnumerable <GCFoundationFloor> CollectAllFoundationFloors(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCFoundationFloor>(doc, BuiltInCategory.OST_StructuralFoundation, GCFoundationFloor.IsFoundationFloor, GCFoundationFloor.CreateGCFoundationFloor));
 }
예제 #29
0
 public static IEnumerable <GCColumnSlanted> CollectSelectedSlantedColumns(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectSelectedElements <GCColumnSlanted>(doc, GCColumnSlanted.IsColumnSlanted, GCColumnSlanted.CreateGCColumnSlanted));
 }
예제 #30
0
 public static IEnumerable <GCMass> CollectAllLevels(GCRevitDocument doc)
 {
     return(GCElementCollector.CollectAllElementsOfCategory <GCMass>(doc, BuiltInCategory.OST_Mass, GCMass.IsMass, GCMass.CreateGCMass));
 }