Ai
86 Star 326 Fork 253

InspireFunction/IFoxCAD

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
TestXrefEx.cs 636 Bytes
Copy Edit Raw Blame History
vicwjb authored 2024-11-25 13:02 +08:00 . 改文件组织形式,添加大量测试函数
namespace Test;
public class TestCmd_BindXrefs
{
//后台绑定
[CommandMethod(nameof(Test_Bind1))]
public static void Test_Bind1()
{
string fileName = @"D:\Test.dwg";
using var tr = new DBTrans(fileName,
fileOpenMode: FileOpenMode.OpenForReadAndAllShare/*后台绑定特别注意*/);
tr.XrefFactory(XrefModes.Bind);
tr.Database.SaveDwgFile();
}
//前台绑定
[CommandMethod(nameof(Test_Bind2))]
public static void Test_Bind2()
{
using var tr = new DBTrans();
tr.XrefFactory(XrefModes.Bind);
tr.Database.SaveDwgFile();
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/inspirefunction/ifoxcad.git
git@gitee.com:inspirefunction/ifoxcad.git
inspirefunction
ifoxcad
IFoxCAD
v0.9

Search