{"id":239106,"date":"2023-03-16T15:11:43","date_gmt":"2023-03-16T15:11:43","guid":{"rendered":"https:\/\/tms-scotland.com\/solidworks\/?p=239106"},"modified":"2023-03-16T15:45:01","modified_gmt":"2023-03-16T15:45:01","slug":"how-to-fix-missing-files","status":"publish","type":"post","link":"https:\/\/tms-scotland.com\/solidworks\/2023\/03\/how-to-fix-missing-files\/","title":{"rendered":"How to fix Missing Files"},"content":{"rendered":"

[et_pb_section fb_built=”1″ _builder_version=”4.17.4″ _module_preset=”default” custom_padding=”6px|||||” global_colors_info=”{}” theme_builder_area=”post_content”][et_pb_row _builder_version=”4.17.4″ _module_preset=”default” custom_padding=”1px|||||” global_colors_info=”{}” theme_builder_area=”post_content”][et_pb_column type=”4_4″ _builder_version=”4.17.4″ _module_preset=”default” global_colors_info=”{}” theme_builder_area=”post_content”][et_pb_text _builder_version=”4.17.4″ _module_preset=”default” min_height=”185px” global_colors_info=”{}” theme_builder_area=”post_content”]<\/p>\n

If you have used SOLIDWORKS for any length of time you have certainly come across a scenario where you have tried to open an assembly or drawing and found yourself faced with a message saying that SOLIDWORKS is unable to find one or more files.<\/p>\n

In this blog, we will look at why this message appears in the first place and how we can resolve this issue.<\/p>\n

Why do you get this error?<\/h2>\n

The message \u201cUnable to locate the file\u2026\u201d shown below appears when SOLIDWORKS is unable to find the exact file in the expected location.<\/p>\n

[\/et_pb_text][et_pb_image src=”https:\/\/tms-scotland.com\/solidworks\/wp-content\/uploads\/sites\/5\/2023\/03\/Missing-fles2.png” title_text=”Missing fles2″ align=”center” _builder_version=”4.17.4″ _module_preset=”default” global_colors_info=”{}” theme_builder_area=”post_content”][\/et_pb_image][et_pb_text _builder_version=”4.17.4″ _module_preset=”default” global_colors_info=”{}” theme_builder_area=”post_content”]<\/p>\n

To understand the logic behind this better, we need to understand two main concepts. How does SOLIDWORKS know the difference between files, and what file search logic does SOLIDWORKS use?<\/p>\n

How SOLIDWORKS differentiates files<\/h3>\n

Most people may think that SOLIDWORKS just uses the File Name<\/strong> to know \u2018which file is which\u2019 but this is not the case, otherwise, you would never get an error message similar to the one below.<\/p>\n

[\/et_pb_text][et_pb_image src=”https:\/\/tms-scotland.com\/solidworks\/wp-content\/uploads\/sites\/5\/2023\/03\/Missing-fles3.png” title_text=”Missing fles3″ align=”center” _builder_version=”4.17.4″ _module_preset=”default” global_colors_info=”{}” theme_builder_area=”post_content”][\/et_pb_image][et_pb_text _builder_version=”4.17.4″ _module_preset=”default” hover_enabled=”0″ global_colors_info=”{}” theme_builder_area=”post_content” sticky_enabled=”0″]<\/p>\n

In this example, SOLIDWORKS has a file called \u201cPin_&.SLDPRT\u201d already open (used in another assembly) and is now trying to open a new assembly which contains a part with the same name. However, rather than simply using this part, SOLIDWORKS knows that the two files are not the same, but merely that someone has created a duplicate file name.<\/p>\n

This is because SOLIDWORKS assigns all files a unique \u201cID\u201d which is what SOLIDWORKS uses for all references between files. This is not a value which is commonly known (or set) by the user, although users can obtain this ID value if required. This is how SOLIDWORKS was able to determine that the two Pins were not the exact same file.<\/p>\n

In the above example, you would want to fully close any files with the same name and files which reference\/use the file with the same name.<\/p>\n

Both the file name and ID must match for SOLIDWORKS to open the file as expected.<\/p>\n

Where does SOLIDWORKS search for files?<\/h3>\n

When opening a SOLIDWORKS file with references, SOLIDWORKS follows a set list of locations to look for the file in question before prompting the user to manually browse to the file (or suppress the file).<\/p>\n

The search routine that SOLIDWORKS uses to find referenced files is:<\/p>\n