def linkify(element_ids, title=None): """Create clickable link for the provided element ids. This method, creates the link but does not print it directly. Args: element_ids (`ElementId`) or element_ids (:obj:`list` of `ElementId`): single or multiple ids title (str): tile of the link. defaults to list of element ids Example: >>> output = pyrevit.output.get_output() >>> for idx, elid in enumerate(element_ids): >>> print('{}: {}'.format(idx+1, output.linkify(elid))) """ return coreutils.prepare_html_str( linkmaker.make_link(element_ids, contents=title))
portions = re.split(";", i) date = portions[0] time = portions[1] rawId = portions[2] rawModel = portions[3] comment = portions[4] username = portions[5] grouping = portions[6] id = re.split(':', rawId)[2] model = re.split(':', rawModel)[2] # print line info if name == model[0:len(model) - 1]: if grouping != lastId: if len(allId) > 1: good = coreutils.prepare_html_str( linkmaker.make_link(allId, contents='GROUP SELECT')) print('Select all ' + str(len(allId)) + ' elements ' + good + ' Group ID: ' + str(grouping)) print('---------------------------------------') # print ('GROUP ' + str(num) + '---------------------------------------') num += 1 allId = [] else: print('---------------------------------------') allId = [] element = doc.GetElement(ElementId(int(id[0:len(id) - 1]))) try: currentid = format(outprint.linkify(element.Id)) except: currentid = id[0:len(id) - 1] print(date + ' ' + time + ' ' + 'User: '******' ' +