Sample Code Revit Batch Processor 1.1.11 documentation
CAD links header used in reports
Extract the file path from CAD link type. :param cad_link_name: The cad link name :type cad_link_name: str :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param revit_file_path: The fully qualified file path to the model. :type revit_file_path: str :return: The fully qualified file path if the cad link type is a valid external reference. Otherwise it will return ‘unknown’. :rtype: str
Gets CAD link data to be written to report file. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param revit_file_path: The fully qualified file path to the model, which is added to data returned. :type revit_file_path: str :return: list of list of cad link properties. :rtype: list of list of str
revit links header used in reports
Gets Revit Link Type data for reporting. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param revit_link_type: The link type of which to get the data from. :type revit_link_type: Autodesk.Revit.DB.RevitLinkType :return: A list of string :rtype: list str
Gets link data ready for being printed to file. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param revit_file_path: The file hostname, which is added to data returned. :type revit_file_path: str :return: list of list of revit link properties. :rtype: list of list of str