When you save a list of components to an external file, you can specify to exclude hidden components from the list.
In Assembly Visualization, click the arrow to the right of the column headers and click Save as. In the Save As dialog box, select Exclude hidden components.