From 698d6b406551487d7b6b1ed41993efb7c0c20d8b Mon Sep 17 00:00:00 2001 From: ShrlAlgo <40654941+ShrlAlgo@users.noreply.github.com> Date: Thu, 4 Sep 2025 16:18:23 +0800 Subject: [PATCH] Enhance README formatting for clarity Updated README to use code formatting for commands and properties. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fcaa040..8c07ff3 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ - 右键RevitGen项目,打包,生成nuget,可以修改版本。 - 在插件项目去引用nuget包,本地路径需要修改nuget.config中的相对路径。 -- 使用partial修饰你的命令类 -- 使用RevitCommand生成命令和面板 -- CommandHandler来定义运行的逻辑方法 +- 使用```partial```修饰你的命令类 +- 使用```RevitCommand```生成命令和面板 +- ```CommandHandler```来定义运行的逻辑方法 - 如果是路径的图标的话,需要属性窗口中把生成方式改成嵌入式资源 -- 命令自带UIApplication,UIDocument,Document,ActiveView等属性 -- 自带事务处理,不需要使用默认事务时,可以使用[RevitCommand("测试", UsingTransaction = false)] +- 命令自带```UIApplication```,```UIDocument```,```Document```,```ActiveView```等属性 +- 自带事务处理,不需要使用默认事务时,可以使用```[RevitCommand("测试", UsingTransaction = false)]``` - 命令的特性会生成一个RevitGenApplication的类,注册命令,生成面板。 ``` using Autodesk.Revit.DB;