<filename>CustomExtension.extension/STVTools.tab/Select.panel/Info Points.pulldown/Select Base Point.pushbutton/script.py<gh_stars>0
from pyrevit import revit, DB
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitAPIUI')
clr.AddReference("System")
from Autodesk.Revit.DB import BuiltInCategory, ElementId

doc = __revit__.ActiveUIDocument.Document

__doc__ = 'Select the base point of the model. '\
          'This is helpful check project info'

elements = DB.FilteredElementCollector(doc)\
              .OfCategory(BuiltInCategory.OST_ProjectBasePoint)\
              .ToElements()

selSet = []

for el in elements:
    selSet.append(el.Id)

revit.get_selection().set_to(selSet)
<filename>CustomExtension.extension/STVTools.tab/Select.panel/Info Points.pulldown/Select Base Point.pushbutton/script.py<gh_stars>0
from pyrevit import revit, DB
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitAPIUI')
clr.AddReference("System")
from Autodesk.Revit.DB import BuiltInCategory, ElementId

doc = __revit__.ActiveUIDocument.Document

__doc__ = 'Select the base point of the model. '\
          'This is helpful check project info'

elements = DB.FilteredElementCollector(doc)\
              .OfCategory(BuiltInCategory.OST_ProjectBasePoint)\
              .ToElements()

selSet = []

for el in elements:
    selSet.append(el.Id)

revit.get_selection().set_to(selSet)