With the file extension SWB, basic macro files of the 3D CAD software SolidWorks are identified. Swb files are text files that contain Visual Basic 3 code that executes commands from SolidWorks when executed. For example, mechanical components can be implemented using a SWB file. You can use the Tools -> Macros -> Execute and select a SWB file to process the macros.
Alternatively, you can drop the SWB file from the Windows Explorer via drag-and-drop method to a free working area of SolidWorks (no open document). Swb files are also compatible with older versions of SolidWorks. Newer so-called VBA projects have the extension swp.
Most often resolving problems with opening SWB files is very simple. Just install an appropriate program that supports such files. All of the listed programs support SWB files, but may vary in offered function and purpose. Some programs may be capable only of viewing contents of SWB files or offer file conversion options, but may not be capable of editing such files.
It is possible that although a compatible program has been installed on user’s system, it is not used by the system to open it. This may happen because no default application was associated with this type of files. To associate SWB files with given application, select "Open with" from drop-down menu (accessed by right-clicking on the file). Then select from the list the program or application you want to be used to open this type of file. If the Adobe Photoshop applications is not on the list, select "Browse" option in order to manually locate the directory where Adobe Photoshop has been installed.
Sometimes problems with opening SWB files may not lie with the application itself, but can arise due to other causes, such as: