添加项目文件。
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Autodesk.Revit.DB;
|
||||
|
||||
namespace IFC_Revit_Interop
|
||||
{
|
||||
// Token: 0x0200001B RID: 27
|
||||
internal class FIParentFinder
|
||||
{
|
||||
// Token: 0x06000085 RID: 133 RVA: 0x00007528 File Offset: 0x00005728
|
||||
public FIParentFinder(ParentFinder host)
|
||||
{
|
||||
this.host = host;
|
||||
}
|
||||
|
||||
// Token: 0x06000086 RID: 134 RVA: 0x00007538 File Offset: 0x00005738
|
||||
public void Find()
|
||||
{
|
||||
foreach (Element element2 in this.host.coll.Where((Element element) => element is FamilyInstance && (element as FamilyInstance).SuperComponent != null))
|
||||
{
|
||||
try
|
||||
{
|
||||
FamilyInstance familyInstance = element2 as FamilyInstance;
|
||||
this.host.ChildToParent[familyInstance.Id.IntegerValue] = familyInstance.SuperComponent.Id.IntegerValue;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.host.log.WriteException("ERR_FIParentFinder", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400007F RID: 127
|
||||
private ParentFinder host;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user