예제 #1
0
        // Token: 0x060000D8 RID: 216 RVA: 0x00008F98 File Offset: 0x00007198
        protected override MountingPartData getOpeningData(RevitElement <Opening> opening, RevitElement <Part> part)
        {
            Floor        floor         = part.getFloor();
            ItGeVector3d viewDirection = -floor.normal(false);

            return(base.GetOpeningData(opening, part, viewDirection));
        }
예제 #2
0
        // Token: 0x060000D5 RID: 213 RVA: 0x00008ECC File Offset: 0x000070CC
        protected override bool ExportUnitechnik(AssemblyInstance assemblyInstance, IEnumerable <RevitElement <Part> > parts, int iProdNo, CNCProjectData projectData)
        {
            Floor floor;

            if (parts == null)
            {
                floor = null;
            }
            else
            {
                RevitElement <Part> revitElement = parts.FirstOrDefault <RevitElement <Part> >();
                floor = ((revitElement != null) ? revitElement.getFloor() : null);
            }
            Floor floor2 = floor;
            bool  flag   = floor2 == null;
            bool  result;

            if (flag)
            {
                ItFailures.PostFailure(ItFailures.UnitechnikFailure, assemblyInstance.Id);
                result = false;
            }
            else
            {
                result = base.ExportUnitechnik(assemblyInstance, parts, iProdNo, projectData);
            }
            return(result);
        }