// Token: 0x0600018D RID: 397 RVA: 0x0000ACEC File Offset: 0x00008EEC internal new static SteelGroupElementAreaReinf GetInstance(RevitElement <RebarInSystem> rebarInSystem, ItMachineDataBase.CNCElementData cncElementData, ItGeMatrix3d matWcsToPalette) { bool flag = rebarInSystem.IsInvalid(); SteelGroupElementAreaReinf result; if (flag) { result = null; } else { SteelGroupElementAreaReinf steelGroupElementAreaReinf = new SteelGroupElementAreaReinf(cncElementData, matWcsToPalette); steelGroupElementAreaReinf.RebarInSystem = rebarInSystem; steelGroupElementAreaReinf.Host = rebarInSystem.Element.getHostingPart(); bool flag2 = steelGroupElementAreaReinf.Host == null; if (flag2) { result = null; } else { steelGroupElementAreaReinf.AreaReinforcement = (rebarInSystem.Document.GetElement(rebarInSystem.Element.SystemId) as AreaReinforcement); steelGroupElementAreaReinf.RebarBarType = (rebarInSystem.Document.GetElement(rebarInSystem.Element.GetTypeId()) as RebarBarType); steelGroupElementAreaReinf.Data = (steelGroupElementAreaReinf.AreaReinforcement.load <ItReinforcement>(null, false) ?? SteelGroupElement.GetEmptyData(steelGroupElementAreaReinf)); steelGroupElementAreaReinf.IronSetsSchematic = rebarInSystem.Element.getIronSets(RebarMode.Schematic); steelGroupElementAreaReinf.IronSetsRealistic = rebarInSystem.Element.getIronSets(RebarMode.Realistic); steelGroupElementAreaReinf.TransformToPalette(); steelGroupElementAreaReinf.SetMinMaxZ(steelGroupElementAreaReinf.IronSetsRealistic); steelGroupElementAreaReinf.SetGroup(); result = steelGroupElementAreaReinf; } } return(result); }
// Token: 0x06000179 RID: 377 RVA: 0x0000AA78 File Offset: 0x00008C78 internal static SteelGroupElement GetInstance(RevitElement <RebarInSystem> rebarInSystem, ItMachineDataBase.CNCElementData cncElementData, ItGeMatrix3d matWcsToPalette) { return(SteelGroupElementAreaReinf.GetInstance(rebarInSystem, cncElementData, matWcsToPalette)); }