Problem Description
When I try to synchronize the geometry between COMSOL and SOLIDWORKS, the error message
Failed to connect to SOLIDWORKS. Please make sure SOLIDWORKS is running.
is displayed, and the COMSOL Multiphysics tab in SOLIDWORKS is not available.
Solution
If you have licensed LiveLink for SOLIDWORKS, the COMSOL Installer creates an add-in in SOLIDWORKS called LiveLink for COMSOL. This add-in should appear in the SOLIDWORKS user interface, listed in the Add-Ins dialog box, accessible from the Tools menu.
The connection between COMSOL and SOLIDWORKS can fail if the add-in cannot be loaded by SOLIDWORKS. This could happen for example if the COMSOL installation is moved to a different folder. In the case of such a failure, you can reinstall LiveLink for SOLIDWORKS, or repair the installation as described in knowledgebase 1221.
Manual Repair
It is possible to set up the connection manually as follows:
- Close SOLIDWORKS if it is running on your computer.
- Click the Start menu symbol in the lower-left corner of your Windows desktop.
- Enter
cmd
in the Start Search field. - cmd.exe appears in the list of programs. Right-click on it and select Run as administrator.
- In the command window that appears enter one of the following, depending on your operating system:
Note: For the specified version, all commands need to be entered, and each complete command string must be written on a single row.
COMSOL 6.1 and newer:
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "C:\Program Files\COMSOL\COMSOLXX\Multiphysics\ext\LiveLink\SolidWorks\win64\cslivelinksw.dll" /codebase
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "C:\Program Files\COMSOL\COMSOLXX\Multiphysics\ext\LiveLink\SolidWorks\win64\cscomactivex.dll" /codebase
In the above C:\Program Files\COMSOL\COMSOLXX\Multiphysics
is the local path to your COMSOL installation. Use the version number corresponding to your installation, for example C:\Program Files\COMSOL\COMSOL62
for COMSOL Multiphysics 6.2.
COMSOL 5.4 to COMSOL 6.0:
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "C:\Program Files\COMSOL\COMSOLXX\Multiphysics\ext\LiveLink\SolidWorks\win64\cslivelinksw.dll" /codebase
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "C:\Program Files\COMSOL\COMSOLXX\Multiphysics\ext\LiveLink\SolidWorks\win64\cscomactivex.dll" /codebase
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "C:\Program Files\COMSOL\COMSOLXX\Multiphysics\ext\LiveLink\SolidWorks\win64\Comsol.LiveLink.SOLIDWORKS.OneWindow.dll" /codebase
In the above C:\Program Files\COMSOL\COMSOLXX\Multiphysics
is the local path to your COMSOL installation. Use the version number corresponding to your installation, for example C:\Program Files\COMSOL\COMSOL60
for COMSOL Multiphysics 6.0.
COMSOL 5.0 to COMSOL 5.3a:
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "C:\Program Files\COMSOL\COMSOLXX\Multiphysics\ext\LiveLink\SolidWorks\win64\cslivelinksw.dll" /codebase
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "C:\Program Files\COMSOL\COMSOLXX\Multiphysics\ext\LiveLink\SolidWorks\win64\cscomactivex.dll" /codebase
In the above C:\Program Files\COMSOL\COMSOLXX\Multiphysics
is the local path to your COMSOL installation. Use the version number corresponding to your installation, for example C:\Program Files\COMSOL\COMSOL53a
for COMSOL Multiphysics 5.3a.
Activate the Add-in
To complete the registration you may also have to activate the add-in in SOLIDWORKS:
- Open SOLIDWORKS and on the Tools menu select Add-Ins.
- In the Add-Ins dialog box that opens, make sure that the LiveLink for COMSOL item is active by selecting the appropriate check boxes.
Recherche par catégorie
Messages d'erreur (65)Import (10)
Géométrie (14)
Physiques (10)
Solveur (35)
Installation (40)
Maillage (14)
Général (34)
Mécanique des structures (2)
Mécanique des fluides (1)
Post-traitement (4)
Export (1)
Dessin (1)
Informations produit (6)
Multiphysique (1)
Modèles utilisateurs (1)
Electromagnétisme (1)
COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.