When saving a drawing as a DXF/DWG, in some cases views may be missing from the resultant saved file and the message “The assembly contains at least one component that contains invalid geometry” may also be displayed, when the file is being saved.
Required display setting for creating a DWG/DXF file
SolidWorks uses draft quality at the component level to increase performance. Views in the drawing can also be set to draft quality. In order for drawing to be saved as a DWG/DXF file, the views must be converted to high quality. If the component contains invalid geometry, the views cannot be converted to high quality. When dragging the mouse cursor over a view, a symbol of view with a lightning bolt through it will be seen.
Finding the component with invalid geometry
Determining the component that contains the invalid geometry can take some time. The process involves setting the display to “hidden lines removed” from View > Display.
Also from View > Display select the option Draft quality HLR/HLV. If the display disappears, then the component contains invalid geometry.
Alternative Check Entity method
Another way to find invalid geometry is using Tools > Check (check the options “stringent solid/surface check”, “invalid faces” and “invalid edges”).
If the drawing is of an assembly, each component may have to be checked for invalid geometry. Invalid geometry can be a result errors in imported geometry, rebuild errors, and may also indicate a corruption in the file.