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