载入族
此方法载入族无法覆盖原有族,即若存在相同名称的族则会载入失败
1 Family family = null; //族 2 3 Transaction transaction = new Transaction(document); //事务 4 5 transaction.Start("载入族"); 6 7 bool b = document.LoadFamily(path, out family); //载入族 8 9 if (!b) { MessageBox.Show("请删除已有族"); } 10 11 transaction.Commit(); 12 13 return family;
原文地址:https://www.cnblogs.com/xt112233/p/9850476.html
时间: 2024-10-12 04:50:48