Sample Code Revit Batch Processor 1.1.11 documentation
Gets a fully qualified file path to a file name match (revit project file extension .rvt) in given directory locations. Returns the first file name match it finds! If no match found returns None. :param fileName: Filter to identify match. Filter is string.startswith(fileName) :type fileName: str :param possibleLinkLocations: List of folders which may contain the link file. :type possibleLinkLocations: list str :param fileExtension: A file extension in format: ‘.xyz’. Use ‘.rvt’ for revit project files. :type fileExtension: str :return: Fully qualified file path if match is found otherwise None. :rtype: str
Check if the workset of the link is visible in the view :param view: The view to check :type view: View :param lnk_instance: The Revit link instance to check the workset visibility of :type lnk_instance: RevitLinkInstance :return: True if the workset of the link is visible in the view, False otherwise :rtype: bool
Check if the link is hidden in the view :param view: The view to check :type view: View :param lnk_instance: The Revit link instance to check :type lnk_instance: RevitLinkInstance :return: True if the link is hidden in the view, False otherwise :rtype: bool
The link is not hidden
The link workset is visible
view_elem (View) – The view element to check
lnk_inst (RevitLinkInstance) – The Revit link instance to check
True if the link is visible in the view, False otherwise
bool