Exemple #1
0
def ViewsProcessing(openedDoc):
    collectorView = EwrQcUtils.ViewsCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'VIEWS', 1, 0, collectorView)
Exemple #2
0
def FamiliesProcessing(openedDoc):
    collectorFamily = EwrQcUtils.FamilyNameCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'FAMILY NAME', 1, 0, collectorFamily)
Exemple #3
0
def DimensionProcessing(openedDoc):
    collectorDim = EwrQcUtils.DimensionsCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'DIMENSIONS', 1, 0, collectorDim)
Exemple #4
0
def SettingsProcessing(openedDoc):
    collectorSettings = EwrQcUtils.SettingsCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'SETTINGS', 1, 0, collectorSettings)
Exemple #5
0
def PositionProcessing(openedDoc):
    collectorPosition = EwrQcUtils.PositionCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'PROJECT INFO', 1, 0, collectorPosition)
Exemple #6
0
            'Please do not use lightly'
uiapp = UIApplication(doc.Application)
application = uiapp.Application


def ElementsProcessing(openedDoc, name):
    collectorFamily = EwrQcUtils.ElementinWorksetCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, name, 1, 0, collectorFamily)


# Transaction
if len(collectorFiles) > 0:
    t = Transaction(doc, 'Check QAQC Elements')
    t.Start()
    fileName = destinationFolder + '\\' + 'LOD Check File' + '.xlsx'
    excelFile = EwrQcUtils.ExcelOpener(fileName)
    for aDoc in collectorFiles:
        openedDoc = OpenFiles(aDoc, application, audit=False)
        print(str(openedDoc.Title) + ' Opened')
        workshareOp = WorksharingSaveAsOptions()
        # Define the name and location of excel file
        rawTitle = re.split('detached', openedDoc.Title)[0]
        title = rawTitle[0:len(rawTitle) - 1]

        # Define and Open Excel File
        threading.Thread(name=title,
                         target=ElementsProcessing(openedDoc, title))
        # Close Excel and Revit File
        openedDoc.Close(False)
    excelFile.close()
    print('File Saved')
Exemple #7
0
def FilledRegionsProcessing(openedDoc):
    collectorFilledRegion = EwrQcUtils.FilledRegionCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'FILLED REGIONS', 1, 0, collectorFilledRegion)
Exemple #8
0
def SheetsProcessing(openedDoc):
    collectorSheet = EwrQcUtils.SheetsCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'SHEETS', 1, 0, collectorSheet)
Exemple #9
0
def SheetElementsProcessing(openedDoc):
    collectorSheetElements = EwrQcUtils.SheetElementCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'SHEET ELEMENT', 1, 0, collectorSheetElements)
Exemple #10
0
def LinesProcessing(openedDoc):
    collectorLines = EwrQcUtils.LineCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'LINE', 1, 0, collectorLines)
Exemple #11
0
def LevelsProcessing(openedDoc):
    collectorLevels = EwrQcUtils.LevelCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'LEVEL', 1, 0, collectorLevels)
Exemple #12
0
    collectorWorkset = EwrQcUtils.WorksetCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'WORKSETS', 1, 0, collectorWorkset)
# Transaction
if len(collectorFiles) > 0:
    t = Transaction(doc, 'Check QAQC Elements')
    t.Start()
    for aDoc in collectorFiles:
        openedDoc = OpenFiles(aDoc, application, audit = False)
        print(str(openedDoc.Title) + ' Opened')
        workshareOp = WorksharingSaveAsOptions()
        # Define the name and location of excel file
        rawTitle = re.split('detached', openedDoc.Title)[0]
        title = rawTitle[0:len(rawTitle) -1]
        fileName = destinationFolder +'\\' + title + '.xlsx'
        # Define and Open Excel File
        excelFile = EwrQcUtils.ExcelOpener(fileName)
        # Create a blank intro Sheet
        blank =[]
        EwrQcUtils.ExcelWriter(excelFile, 'INTRO', 1, 0, blank)
        # Checking
        threading.Thread(name='DimensionsCheck', target = DimensionProcessing(openedDoc))
        threading.Thread(name='SettingsCheck', target=SettingsProcessing(openedDoc))
        threading.Thread(name='ViewssCheck', target=ViewsProcessing(openedDoc))
        threading.Thread(name='FamiliesCheck', target=FamiliesProcessing(openedDoc))
        threading.Thread(name='LinksCheck', target=LinksProcessing(openedDoc))
        threading.Thread(name='TitleBlockCheck', target=TitleBlocksProcessing(openedDoc))
        threading.Thread(name='SheetsCheck', target=SheetsProcessing(openedDoc))
        threading.Thread(name='TextsCheck', target=TextsProcessing(openedDoc))
        threading.Thread(name='PositionsCheck', target=PositionProcessing(openedDoc))
        threading.Thread(name='CateinWorksetsCheck', target=CateinWorksetsProcessing(openedDoc))
        threading.Thread(name='LevelssCheck', target=LevelsProcessing(openedDoc))
Exemple #13
0
def ElementsProcessing(openedDoc, name):
    collectorFamily = EwrQcUtils.ElementinWorksetCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, name, 1, 0, collectorFamily)
Exemple #14
0
def LinksProcessing(openedDoc):
    collectorLink = EwrQcUtils.LinkCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'LINKS', 1, 0, collectorLink)
Exemple #15
0
def AnnotationsProcessing(openedDoc):
    collectorAnnotationSymbol = EwrQcUtils.AnnotationSymbolCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'ANNOTATION SYMBOLS', 1, 0, collectorAnnotationSymbol)
Exemple #16
0
def TitleBlocksProcessing(openedDoc):
    collectorTitleBlock = EwrQcUtils.TitleBlockCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'TITLE BLOCK', 1, 0, collectorTitleBlock)
Exemple #17
0
def CadImportsProcessing(openedDoc):
    collectorCADImports = EwrQcUtils.CadImportsCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'CAD LINKS AND IMPORTS', 1, 0, collectorCADImports)
Exemple #18
0
def TextsProcessing(openedDoc):
    collectorText = EwrQcUtils.TextCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'TEXT STYLE', 1, 0, collectorText)
Exemple #19
0
def WorksetsProcessing(openedDoc):
    collectorWorkset = EwrQcUtils.WorksetCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'WORKSETS', 1, 0, collectorWorkset)
Exemple #20
0
def CateinWorksetsProcessing(openedDoc):
    collectorCateinWorkset = EwrQcUtils.CateinWorksetCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, 'CATEGORIES IN WORKSETS', 1, 0, collectorCateinWorkset)
Exemple #21
0
def FamiliesProcessing(openedDoc, name):
    collectorFamily = EwrQcUtils.FamilyNameCheck(openedDoc)
    EwrQcUtils.ExcelWriter(excelFile, name, 1, 0, collectorFamily)