Esempio n. 1
0
        // Token: 0x060000F3 RID: 243 RVA: 0x000094E0 File Offset: 0x000076E0
        protected override bool IsMountPartOfThisShell(RevitElement <FamilyInstance> mountingPart, RevitElement <Part> part)
        {
            bool flag = mountingPart.Element.getHostId() == part.Id;
            bool result;

            if (flag)
            {
                result = true;
            }
            else
            {
                List <ItSolid> solids = ItSolid.getSolids(mountingPart, ItGeMatrix3d.kIdentity, false);
                bool           flag2  = solids.none <ItSolid>();
                if (flag2)
                {
                    ItFailures.PostFailure(ItFailures.CAMMountPartInUnknownShell, mountingPart.Id);
                    result = (part.shellType() == ShellType.FirstShell);
                }
                else
                {
                    result = this.hasSolidIntersection(part, solids);
                }
            }
            return(result);
        }
Esempio n. 2
0
        // Token: 0x06000078 RID: 120 RVA: 0x0000563C File Offset: 0x0000383C
        private bool IsCorrectShell(Element instance)
        {
            RevitElement <Part> part = instance.getHostingPart();

            return(part.shellType() == ((this.Mode == ItMachineDataWallDB.DoubleWallMode.SecondShell) ? ShellType.SecondShell : ShellType.FirstShell));
        }