mirror of
https://github.com/ShrlAlgo/RevitGen.git
synced 2026-03-08 09:48:53 +00:00
Enhance README formatting for clarity
Updated README to use code formatting for commands and properties.
This commit is contained in:
10
README.md
10
README.md
@@ -1,11 +1,11 @@
|
|||||||
- 右键RevitGen项目,打包,生成nuget,可以修改版本。
|
- 右键RevitGen项目,打包,生成nuget,可以修改版本。
|
||||||
- 在插件项目去引用nuget包,本地路径需要修改nuget.config中的相对路径。
|
- 在插件项目去引用nuget包,本地路径需要修改nuget.config中的相对路径。
|
||||||
- 使用partial修饰你的命令类
|
- 使用```partial```修饰你的命令类
|
||||||
- 使用RevitCommand生成命令和面板
|
- 使用```RevitCommand```生成命令和面板
|
||||||
- CommandHandler来定义运行的逻辑方法
|
- ```CommandHandler```来定义运行的逻辑方法
|
||||||
- 如果是路径的图标的话,需要属性窗口中把生成方式改成嵌入式资源
|
- 如果是路径的图标的话,需要属性窗口中把生成方式改成嵌入式资源
|
||||||
- 命令自带UIApplication,UIDocument,Document,ActiveView等属性
|
- 命令自带```UIApplication```,```UIDocument```,```Document```,```ActiveView```等属性
|
||||||
- 自带事务处理,不需要使用默认事务时,可以使用[RevitCommand("测试", UsingTransaction = false)]
|
- 自带事务处理,不需要使用默认事务时,可以使用```[RevitCommand("测试", UsingTransaction = false)]```
|
||||||
- 命令的特性会生成一个RevitGenApplication的类,注册命令,生成面板。
|
- 命令的特性会生成一个RevitGenApplication的类,注册命令,生成面板。
|
||||||
```
|
```
|
||||||
using Autodesk.Revit.DB;
|
using Autodesk.Revit.DB;
|
||||||
|
|||||||
Reference in New Issue
Block a user