> For the complete documentation index, see [llms.txt](https://utc.gitbook.io/umt-manual-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utc.gitbook.io/umt-manual-book/install/plugins/solidworksplugininstall.md).

# Solidworks插件安装

### 安装过程

如果您正在使用 Solidworks，请关闭正在运行的 Solidworks；

打开`RegistShellScriptAndExe` 文件夹，用管理员权限运行`Register.bat`批处理文件，即可将插件`.dll`安装到 Solidworks 中。安装完毕，按任意键退出即可；

![](/files/zpuJgvH7jX8ufFZnw7s0)

打开 Solidworks，观察右边栏，看插件是否载入成功（安装后请勿移动文件夹位置，否则会导致无法加载插件）；

![drawing](https://github.com/HanochZhu/UMT-Manual/blob/UMT-0.2-Manual/install/plugins/.gitbook/assets/install/installsolidworks/umtpluginmainpageinsolidworks.png)

如果找不到，则点击界面上方的`Options`（齿轮状按钮）右侧的小三角打开下拉菜单，然后点击 `Add-Ins`；

![](/files/f0VAZDfkogp3BcBSxfyF)

然后找到`UMT`，并勾选左侧的复选框加载插件，也可以将右侧的勾选框一并勾选，从而在下次打开 Solidworks 时能够自动加载插件。

![](/files/86nawG7b0bNS3NBfRzTe)

如果在添加插件过程中，您遇到任何报错，请先查看[常见问题](/umt-manual-book/commonproblem.md)。

安装完成后，打开`Unity Hub`，通过左上角`Active`进行激活。

![umt license active state](/files/mysMADFgWlfvNOdBsE8c)

### 可能遇到的问题

#### Solidworks 注册表注册ID冲突

曾试用过旧版本插件，安装新的插件后，可能会遇到Solidworks里面没有得到更新，并且错误也没有得到修复的问题。解决方案如下：

由于 Plugin 是通过注册表注册，因此更新的时候会自动更新注册表。如果插件没有得到更新，可能是注册表中注册 ID 冲突。需要通过以下步骤进行修复：

打开注册表；

进入`HKEY_LOCAL_MACHINE/SOFTWARE/SolidWorks/AddIns`目录下，手动删除含有`LUBAN`或者`UMT`字样的所有内容（存在多个，需要全部删除）；

![](/files/QhF24ga0f75524DKwY0U)

重新安装插件。

#### 文件没有读取权限

RegAsm : rooro RA000 : 未能加载文件或程序集“file:///../RegistShellScriptAndExe/RegAsm.exe"或它的某一个依赖项。不支持操作……

![](/files/rEQzaPHKgio45YRjIn5p)

请您定位到 RegAsm.exe 文件，右键选择属性打开。在常规标签内，找到最下方安全描述，勾选解除锁定即可。

![](/files/dxpsYVLxttZj4zxUk1rW)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://utc.gitbook.io/umt-manual-book/install/plugins/solidworksplugininstall.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
