def ViewsProcessing(openedDoc): collectorView = EwrQcUtils.ViewsCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'VIEWS', 1, 0, collectorView)
def FamiliesProcessing(openedDoc): collectorFamily = EwrQcUtils.FamilyNameCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'FAMILY NAME', 1, 0, collectorFamily)
def DimensionProcessing(openedDoc): collectorDim = EwrQcUtils.DimensionsCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'DIMENSIONS', 1, 0, collectorDim)
def SettingsProcessing(openedDoc): collectorSettings = EwrQcUtils.SettingsCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'SETTINGS', 1, 0, collectorSettings)
def PositionProcessing(openedDoc): collectorPosition = EwrQcUtils.PositionCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'PROJECT INFO', 1, 0, collectorPosition)
'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')
def FilledRegionsProcessing(openedDoc): collectorFilledRegion = EwrQcUtils.FilledRegionCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'FILLED REGIONS', 1, 0, collectorFilledRegion)
def SheetsProcessing(openedDoc): collectorSheet = EwrQcUtils.SheetsCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'SHEETS', 1, 0, collectorSheet)
def SheetElementsProcessing(openedDoc): collectorSheetElements = EwrQcUtils.SheetElementCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'SHEET ELEMENT', 1, 0, collectorSheetElements)
def LinesProcessing(openedDoc): collectorLines = EwrQcUtils.LineCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'LINE', 1, 0, collectorLines)
def LevelsProcessing(openedDoc): collectorLevels = EwrQcUtils.LevelCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'LEVEL', 1, 0, collectorLevels)
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))
def ElementsProcessing(openedDoc, name): collectorFamily = EwrQcUtils.ElementinWorksetCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, name, 1, 0, collectorFamily)
def LinksProcessing(openedDoc): collectorLink = EwrQcUtils.LinkCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'LINKS', 1, 0, collectorLink)
def AnnotationsProcessing(openedDoc): collectorAnnotationSymbol = EwrQcUtils.AnnotationSymbolCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'ANNOTATION SYMBOLS', 1, 0, collectorAnnotationSymbol)
def TitleBlocksProcessing(openedDoc): collectorTitleBlock = EwrQcUtils.TitleBlockCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'TITLE BLOCK', 1, 0, collectorTitleBlock)
def CadImportsProcessing(openedDoc): collectorCADImports = EwrQcUtils.CadImportsCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'CAD LINKS AND IMPORTS', 1, 0, collectorCADImports)
def TextsProcessing(openedDoc): collectorText = EwrQcUtils.TextCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'TEXT STYLE', 1, 0, collectorText)
def WorksetsProcessing(openedDoc): collectorWorkset = EwrQcUtils.WorksetCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'WORKSETS', 1, 0, collectorWorkset)
def CateinWorksetsProcessing(openedDoc): collectorCateinWorkset = EwrQcUtils.CateinWorksetCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, 'CATEGORIES IN WORKSETS', 1, 0, collectorCateinWorkset)
def FamiliesProcessing(openedDoc, name): collectorFamily = EwrQcUtils.FamilyNameCheck(openedDoc) EwrQcUtils.ExcelWriter(excelFile, name, 1, 0, collectorFamily)