Exemple #1
0
 public RunEntry(string filename, string result, string log, string runtime, TreComponent component)
 {
     this.FileName = filename;
     this.Result = result;
     this.Log = log;
     this.RunTime = runtime;
     this.ComponentRead = component;
 }
Exemple #2
0
        public TreComponent(TreComponent c)
        {
            Unknown1 = c.Unknown1;
            Unknown2 = c.Unknown2;
            Unknown3 = c.Unknown3;
            Unknown4 = c.Unknown4;
            Unknown5 = c.Unknown5;
            Unknown6 = c.Unknown6;
            Unknown7 = c.Unknown7;
            Unknown8 = c.Unknown8;
            Unknown9 = c.Unknown9;
            Unknown10 = c.Unknown10;
            Unknown11 = c.Unknown11;
            Unknown12 = c.Unknown12;
            Unknown13 = c.Unknown13;
            Unknown14 = c.Unknown14;
            Unknown15 = c.Unknown15;
            Unknown16 = c.Unknown16;

            DisplayUnits = c.DisplayUnits;
            InternalUnits = c.InternalUnits;

            CSIFailure = c.CSIFailure;
            SSIFailure = c.SSIFailure;
            SummaryResultOfAnalyze = c.SummaryResultOfAnalyze;
            GeoconvertFailure = c.GeoconvertFailure;
            AllJointsArePlated = c.AllJointsArePlated;
            TrussUnstable = c.TrussUnstable;
            EstimateHasBeenDone = c.EstimateHasBeenDone;
            TrussDeflectionFailure = c.TrussDeflectionFailure;
            CamberStatus = c.CamberStatus;
            ReactionFailure = c.ReactionFailure;
            HorizontalTotalDeflectionFailure = c.HorizontalTotalDeflectionFailure;
            HorizontalLiveDeflectionFailure = c.HorizontalLiveDeflectionFailure;
            BearingOutOfScarf = c.BearingOutOfScarf;
            WedgeFailure = c.WedgeFailure;
            HeelFailure = c.HeelFailure;
            FloorSpliceJointFailure = c.FloorSpliceJointFailure;
            BearingNotAtJointFailure = c.BearingNotAtJointFailure;
            BirdsmouthHeelFailure = c.BirdsmouthHeelFailure;
            LSLFailure = c.LSLFailure;
            MinChordGradeFailureCanada = c.MinChordGradeFailureCanada;
            Span2x3ExceededCanada = c.Span2x3ExceededCanada;
            Min2x3WebGradeFailureCanada = c.Min2x3WebGradeFailureCanada;
            Min2x4WebGradeFailureCanada = c.Min2x4WebGradeFailureCanada;
            DryLbrWithMetalWebFailCanada = c.DryLbrWithMetalWebFailCanada;
            MaxAllowedSpanCanada = c.MaxAllowedSpanCanada;
            NailingPatternFailureCanada = c.NailingPatternFailureCanada;
            MissedLoadingCanada = c.MissedLoadingCanada;
            UnspecifiedDesignFailCanada = c.UnspecifiedDesignFailCanada;
            ChangedRequirementsCanada = c.ChangedRequirementsCanada;
            PanelRackingDeflectionFailure = c.PanelRackingDeflectionFailure;
            AnalysisResult = c.AnalysisResult;
            TreVersionNumber = c.TreVersionNumber;

            ProgramMode = c.ProgramMode;
            TypeOfTruss = c.TypeOfTruss;

            RoofOrFloorTruss = c.RoofOrFloorTruss;

            Quantity = c.Quantity;
            TrussSpan = c.TrussSpan;
            TopSlope = c.TopSlope;
            BottomSlope = c.BottomSlope;
            LeftOverhangLength = c.LeftOverhangLength;
            RightOverhangLength = c.RightOverhangLength;
            Part6Spacing = c.Part6Spacing;
            RoofSetupTrusses = c.RoofSetupTrusses;
            LeftTopChordOverhang = c.LeftTopChordOverhang;
            RightTopChordOverhang = c.RightTopChordOverhang;
            DesignConnectionStatus = c.DesignConnectionStatus;

            RightBearingSize = c.RightBearingSize;
            RightSeatCut = c.RightSeatCut;
            LeftBearingSize = c.LeftBearingSize;
            LeftSeatCut = c.LeftSeatCut;
            RightHeelHeight = c.RightHeelHeight;
            LeftHeelHeight = c.LeftHeelHeight;

            Spacing = c.Spacing;
            RightButtCut = c.RightButtCut;
            LeftButtCut = c.LeftButtCut;

            RightHeelMatch = c.RightHeelMatch;
            LeftHeelMatch = c.LeftHeelMatch;

            RightOverhangType = c.RightOverhangType;
            LeftOverhangType = c.LeftOverhangType;

            LoadingFileName = c.LoadingFileName;
            GirderTrussIndicator = c.GirderTrussIndicator;

            AtticVersatruss = c.AtticVersatruss;
            UserLevel = c.UserLevel;

            SquareCutRoofWebs = c.SquareCutRoofWebs;
            TOWOptimizeNonApexVerts = c.TOWOptimizeNonApexVerts;
            TOWOptimizeApexVerts = c.TOWOptimizeApexVerts;
            TOWKeepVerticalsVertical = c.TOWKeepVerticalsVertical;
            TOWDoNotMoveVerticals = c.TOWDoNotMoveVerticals;
            OptimizeTurbo = c.OptimizeTurbo;
            RoofDetailMode = c.RoofDetailMode;
            PosiRoof = c.PosiRoof;
            TurboWebSquare = c.TurboWebSquare;
            TurboWeb = c.TurboWeb;
            TrussApplicationType = c.TrussApplicationType;
            RightHeelReductionType = c.RightHeelReductionType;
            LeftHeelReductionType = c.LeftHeelReductionType;
            UseAlternateSpacing = c.UseAlternateSpacing;
            FirstAlternateSpacing = c.FirstAlternateSpacing;
            SecondAlternateSpacing = c.SecondAlternateSpacing;

            PiggybackFlag = c.PiggybackFlag;
            PiggybackStyle = c.PiggybackStyle;
            PiggybackGableFlag = c.PiggybackGableFlag;
            PiggybackBottomChordOffset = c.PiggybackBottomChordOffset;
            PiggybackTailOffset = c.PiggybackTailOffset;
            PiggybackTopChordButtCutFlag = c.PiggybackTopChordButtCutFlag;
            PiggybackTopChordButtCutLength = c.PiggybackTopChordButtCutLength;
            PiggybackBottomChordButtCutFlag = c.PiggybackBottomChordButtCutFlag;
            PiggybackBottomChordButtCutLength = c.PiggybackBottomChordButtCutLength;

            PiggybackMinimumStudLength = c.PiggybackMinimumStudLength;
            PiggybackStudSpacing = c.PiggybackStudSpacing;
            PiggybackGableStudLayout = c.PiggybackGableStudLayout;
            PiggybackStringIdentifier = c.PiggybackStringIdentifier;

            FloorSetupTrusses = c.FloorSetupTrusses;
            RoofFloorPosi = c.RoofFloorPosi;
            UseMitekAutomatedMach = c.UseMitekAutomatedMach;
            ShowTrimmableIcon = c.ShowTrimmableIcon;
            TrimmableEnd = c.TrimmableEnd;
            UseFullMetalWebOnly = c.UseFullMetalWebOnly;

            TrussDepth = c.TrussDepth;
            NumberOfTopChords = c.NumberOfTopChords;
            NumberOfBottomChords = c.NumberOfBottomChords;
            Bearing1Size = c.Bearing1Size;
            Bearing2Size = c.Bearing2Size;
            TopChordRibbon1 = c.TopChordRibbon1;
            TopChordRibbon2 = c.TopChordRibbon2;
            BottomChordRibbon1 = c.BottomChordRibbon1;
            BottomChordRibbon2 = c.BottomChordRibbon2;

            NumberOfDetails = c.NumberOfDetails;

            DetailType = c.DetailType;

            XCoordinateLocation = c.XCoordinateLocation;
            NumberOfFullEndVertical = c.NumberOfFullEndVertical;
            NumberOfShortEndVertical = c.NumberOfShortEndVertical;
            TopRibbonDepth = c.TopRibbonDepth;
            BottomRibbonDepth = c.BottomRibbonDepth;
            NumberOfEndVerticals = c.NumberOfEndVerticals;
            FireCutOffset = c.FireCutOffset;
            BearingSize = c.BearingSize;
            GapDistance = c.GapDistance;
            NumberOfTopPlies = c.NumberOfTopPlies;
            BottomChordHoldBack = c.BottomChordHoldBack;
            FortyFiveDegreeFirstWeb = c.FortyFiveDegreeFirstWeb;
            WhichEnd = c.WhichEnd;
            NumberOfWebsFortyFiveDegreeCase = c.NumberOfWebsFortyFiveDegreeCase;
            LengthOfExtraTcPlies = c.LengthOfExtraTcPlies;
            MeasureFromTop = c.MeasureFromTop;
            BlockLocation = c.BlockLocation;
            MaterialListIndex = c.MaterialListIndex;
            RecutBottomChordByNumberOfEndVerticals = c.RecutBottomChordByNumberOfEndVerticals;
            DoubleTopChordLength = c.DoubleTopChordLength;
            NumberOfVerticals = c.NumberOfVerticals;
            NumberOfDrops = c.NumberOfDrops;
            SideMeasuredFrom = c.SideMeasuredFrom;
            LapDistance = c.LapDistance;
            BearingCondition = c.BearingCondition;
            NotUsed = c.NotUsed;
            WhichSideIsDropped = c.WhichSideIsDropped;
            RibbonBlockWidthIfUsed = c.RibbonBlockWidthIfUsed;
            Width = c.Width;
            Height = c.Height;
            NumberOfLeftVerticals = c.NumberOfLeftVerticals;
            NumberOfRightVerticals = c.NumberOfRightVerticals;
            ContinuousBottomChordFlag = c.ContinuousBottomChordFlag;
            AddAdditionalVerticalAtEndOfTopChord = c.AddAdditionalVerticalAtEndOfTopChord;
            HorizontalLengthOfFirstWeb = c.HorizontalLengthOfFirstWeb;
            WindCCAutoRoofZones = c.WindCCAutoRoofZones;
            NumWindCCAutoRoofZones = c.NumWindCCAutoRoofZones;
            NumWindCCUsedRoofZones = c.NumWindCCUsedRoofZones;
            NumWindMWFRS1stPerpAutoRoofZones = c.NumWindMWFRS1stPerpAutoRoofZones;
            NumWindMWFRS1stPerpUsedRoofZones = c.NumWindMWFRS1stPerpUsedRoofZones;
            NumWindMWFRS2ndPerpAutoRoofZones = c.NumWindMWFRS2ndPerpAutoRoofZones;
            NumWindMWFRS2ndPerpUsedRoofZones = c.NumWindMWFRS2ndPerpUsedRoofZones;
            NumWindMWFRS1stParaAutoRoofZones = c.NumWindMWFRS1stParaAutoRoofZones;
            NumWindMWFRS1stParaUsedRoofZones = c.NumWindMWFRS1stParaUsedRoofZones;
            NumWindMWFRS2ndParaAutoRoofZones = c.NumWindMWFRS2ndParaAutoRoofZones;
            NumWindMWFRS2ndParaUsedRoofZones = c.NumWindMWFRS2ndParaUsedRoofZones;
            NumWindMWFRS3ndParaAutoRoofZones = c.NumWindMWFRS3ndParaAutoRoofZones;
            NumWindMWFRS3ndParaUsedRoofZones = c.NumWindMWFRS3ndParaUsedRoofZones;
            NumWindMWFRS4ndParaAutoRoofZones = c.NumWindMWFRS4ndParaAutoRoofZones;
            NumWindMWFRS4ndParaUsedRoofZones = c.NumWindMWFRS4ndParaUsedRoofZones;

            MemberInfo = c.MemberInfo;

            PartNumber = c.PartNumber; //Might be omitted
            TrussType = c.TrussType;
            StudSpacing = c.StudSpacing;
            OptimizeDuringAnalysis = c.OptimizeDuringAnalysis;
            WebEndCutType = c.WebEndCutType;
            TrussDifficultyFactor = c.TrussDifficultyFactor;

            DesignMethodSelected = c.DesignMethodSelected;
            BuildingCode = c.BuildingCode;
            BuildingType = c.BuildingType;
            ContinuityCode = c.ContinuityCode;
            SheathTopChord = c.SheathTopChord;
            SheathBottomChord = c.SheathBottomChord;
            DesignDeflection = c.DesignDeflection;
            MaximumPlies = c.MaximumPlies;
            MinimumPlies = c.MinimumPlies;
            MaximumBraces = c.MaximumBraces;
            TopChordPurlinSpacing = c.TopChordPurlinSpacing;
            BottomChordPurlinSpacing = c.BottomChordPurlinSpacing;
            CheckStockLength = c.CheckStockLength;
            WetService = c.WetService;
            StepLumber = c.StepLumber;
            PinnedSplices = c.PinnedSplices;
            NumberOfPlies = c.NumberOfPlies;
            BracingType = c.BracingType;
            UseBoltHoles = c.UseBoltHoles;
            BoltHoleDiameter = c.BoltHoleDiameter;
            DeflnCompositeAction = c.DeflnCompositeAction;
            ThirdPreferenceBearingDesignOption = c.ThirdPreferenceBearingDesignOption;
            SecondPreferenceBearingDesignOption = c.SecondPreferenceBearingDesignOption;
            FirstPreferenceBearingDesignOption = c.FirstPreferenceBearingDesignOption;
            UseVerticalMembersForMultiPlyNails = c.UseVerticalMembersForMultiPlyNails;
            HeelDesignMethodSelected = c.HeelDesignMethodSelected;
            CreepFactorWetLumber = c.CreepFactorWetLumber;
            CreepFactorDryLumber = c.CreepFactorDryLumber;
            BottomChordSheathingGroup = c.BottomChordSheathingGroup;
            FlatTopChordSheathingGroup = c.FlatTopChordSheathingGroup;
            TopChordSheathingGroup = c.TopChordSheathingGroup;
            BottomChordSheathingMaterial = c.BottomChordSheathingMaterial;
            Index = c.Index;
            FlatTopChordSheathingMaterialIndex = c.FlatTopChordSheathingMaterialIndex;
            TwoAnalogNodesForDado = c.TwoAnalogNodesForDado;

            MinSliderPercent = c.MinSliderPercent;
            MinSliderLength = c.MinSliderLength;
            AnalogMethod = c.AnalogMethod;
            GussetRepairInventoryID = c.GussetRepairInventoryID;
            RepairSheathingMaterialIndex = c.RepairSheathingMaterialIndex;
            GussetRepairOption3 = c.GussetRepairOption3;
            GussetRepairOption2 = c.GussetRepairOption2;
            GussetRepairOption1 = c.GussetRepairOption1;
            GussetRepairDoubleLayer = c.GussetRepairDoubleLayer;
            GussetRepairIncrementMaterial = c.GussetRepairIncrementMaterial;
            GussetRepairCheckGrainDirection = c.GussetRepairCheckGrainDirection;
            BearingMaterialIndex = c.BearingMaterialIndex;
            BearingMaterialConsiderList = c.BearingMaterialConsiderList;
            NailTrussSymmetrically = c.NailTrussSymmetrically;
            TrussSheathingInventoryID = c.TrussSheathingInventoryID;
            TrussSheathingMaterial = c.TrussSheathingMaterial;
            PlyToPlyCompositeDesign = c.PlyToPlyCompositeDesign;
            BearingSupportDepth = c.BearingSupportDepth;
            UseBearingSizeKzpFactor = c.UseBearingSizeKzpFactor;
            IgnoreFlatRoofPart9Factor = c.IgnoreFlatRoofPart9Factor;
            BracingMaterialFixity = c.BracingMaterialFixity;
            LatBracingStartMaterial = c.LatBracingStartMaterial;
            LatBracingMaterialInventoryID = c.LatBracingMaterialInventoryID;
            ForintekTrussOverride = c.ForintekTrussOverride;
            UseModifyBendingCapacityFactor = c.UseModifyBendingCapacityFactor;
            BearingCapacity = c.BearingCapacity;
            DistanceToCombineAnalogNodesForDado = c.DistanceToCombineAnalogNodesForDado;
            FirstAndThirdLength = c.FirstAndThirdLength;

            Span = c.Span;
            MaxSpan = c.MaxSpan;
            PriceQuantity = c.PriceQuantity;
            AdditionalTrussInfoQuantity = c.AdditionalTrussInfoQuantity;
            QuantityForMDSM = c.QuantityForMDSM;
            PliesOnGirder = c.PliesOnGirder;
            PliesOnTruss = c.PliesOnTruss;
            NoOfGirders = c.NoOfGirders;
            MDSMUsed = c.MDSMUsed;
            Ply = c.Ply;
            TopChordLiveLoad = c.TopChordLiveLoad;
            TopChordDeadLoad = c.TopChordDeadLoad;
            BottomChordLiveLoad = c.BottomChordLiveLoad;
            BottomChordDeadLoad = c.BottomChordDeadLoad;
            AdditionalTrussInfoSpacing = c.AdditionalTrussInfoSpacing;
            LeftOverhang = c.LeftOverhang;
            RightOverhang = c.RightOverhang;
            AdditionalTrussInfoLeftButtCut = c.AdditionalTrussInfoLeftButtCut;
            AdditionalTrussInfoRightButtCut = c.AdditionalTrussInfoRightButtCut;
            AdditionalTrussInfoLeftHeelHeight = c.AdditionalTrussInfoLeftHeelHeight;
            AdditionalTrussInfoRightHeelHeight = c.AdditionalTrussInfoRightHeelHeight;
            AdditionalTrussInfoLeftSeatCut = c.AdditionalTrussInfoLeftSeatCut;
            AdditionalTrussInfoRightSeatCut = c.AdditionalTrussInfoRightSeatCut;
            TrussHeight = c.TrussHeight;
            LeftHeelToPeak = c.LeftHeelToPeak;
            RightHeelToPeak = c.RightHeelToPeak;
            MaxTopChordCSI = c.MaxTopChordCSI;
            MaxBottomChordCSI = c.MaxBottomChordCSI;
            SSI = c.SSI;
            Girder = c.Girder;
            SpanCarried = c.SpanCarried;
            TotalBearings = c.TotalBearings;
            LeftStub = c.LeftStub;
            RightStub = c.RightStub;
            VerticalDeflection = c.VerticalDeflection;
            VerticalLLDeflection = c.VerticalLLDeflection;
            VerticalTLDeflection = c.VerticalTLDeflection;
            HorizontalDeflection = c.HorizontalDeflection;
            VerticalLLDeflectionLocation = c.VerticalLLDeflectionLocation;
            VerticalTLDeflectionLocation = c.VerticalTLDeflectionLocation;
            HorizontalDeflectionLocation = c.HorizontalDeflectionLocation;
            LeftCantilever = c.LeftCantilever;
            RightCantilever = c.RightCantilever;
            Gable = c.Gable;
            RegularGable = c.RegularGable;
            StructuralGable = c.StructuralGable;
            LouveredGable = c.LouveredGable;
            GableStudSpacing = c.GableStudSpacing;
            TopChordLumber = c.TopChordLumber;
            BottomChordLumber = c.BottomChordLumber;
            Valley = c.Valley;
            NumberTopChordNailRows = c.NumberTopChordNailRows;
            TopChordInchesOnCenter = c.TopChordInchesOnCenter;
            NumberBottomChordNailRows = c.NumberBottomChordNailRows;
            BottomChordInchesOnCenter = c.BottomChordInchesOnCenter;
            NumberWebNailRows = c.NumberWebNailRows;
            WebInchesOnCenter = c.WebInchesOnCenter;
            TotalChords = c.TotalChords;
            TotalWebs = c.TotalWebs;
            Wedges = c.Wedges;
            Sliders = c.Sliders;
            Blocks = c.Blocks;
            NumberOfBlockSplices = c.NumberOfBlockSplices;
            Date = c.Date;
            DifficultyFactor = c.DifficultyFactor;
            Warning = c.Warning;
            TestedTruss = c.TestedTruss;
            CornerJoints = c.CornerJoints;
            Reaction1 = c.Reaction1;
            Reaction2 = c.Reaction2;
            Reaction3 = c.Reaction3;
            Reaction4 = c.Reaction4;
            Reaction5 = c.Reaction5;
            Reaction6 = c.Reaction6;
            Reaction7 = c.Reaction7;
            MaxHorz1 = c.MaxHorz1;
            MaxUplift1 = c.MaxUplift1;
            MaxUplift2 = c.MaxUplift2;
            MaxUplift3 = c.MaxUplift3;
            MaxUplift4 = c.MaxUplift4;
            UseToeNails = c.UseToeNails;
            RealSpliceBlocksSaved = c.RealSpliceBlocksSaved;
            ComponentLoads = c.ComponentLoads;
            RepStressStatus = c.RepStressStatus;
            GID = c.GID;

            TotalBoardFeet = c.TotalBoardFeet;
            TrussWeight = c.TrussWeight;
            TotalPlateArea = c.TotalPlateArea;

            NumberOfPlates = c.NumberOfPlates;
            NumberOfPlatesSetup = c.NumberOfPlatesSetup;

            Batched = c.Batched;
            Printed = c.Printed;

            TopChordSegments = c.TopChordSegments;
            TopChordPanels = c.TopChordPanels;
            TotalOfTopChordPanels = c.TotalOfTopChordPanels;
            TopChordSlopes = c.TopChordSlopes;
            BottomChordSegments = c.BottomChordSegments;
            BottomChordPanels = c.BottomChordPanels;
            TotalOfBottomChordPanels = c.TotalOfBottomChordPanels;
            BottomChordSlopes = c.BottomChordSlopes;

            HeelSolved = c.HeelSolved;
            CantileverSingleCut = c.CantileverSingleCut;
            CantileverToBearingEdge = c.CantileverToBearingEdge;
            RightEndVerticalThroughBC = c.RightEndVerticalThroughBC;
            LeftEndVerticalThroughBC = c.LeftEndVerticalThroughBC;
            DefaultReinforcingMember = c.DefaultReinforcingMember;
            LeftHeelReinforcementType = c.LeftHeelReinforcementType;
            RightHeelReinforcementType = c.RightHeelReinforcementType;
            LeftHeelMaterial = c.LeftHeelMaterial;
            RightHeelMaterial = c.RightHeelMaterial;
            SingleCutBottomChord = c.SingleCutBottomChord;
            LeftSliderLength = c.LeftSliderLength;
            RightSliderLength = c.RightSliderLength;
            LeftHeelLumberID = c.LeftHeelLumberID;
            RightHeelLumberID = c.RightHeelLumberID;
            Dummy1 = c.Dummy1;
            Dummy2 = c.Dummy2;
            LeftWedgeMaterialIndex = c.LeftWedgeMaterialIndex;
            RightWedgeMaterialIndex = c.RightWedgeMaterialIndex;
            LeftSliderLengthMultiPoint = c.LeftSliderLengthMultiPoint;
            RightSliderLengthMultiPoint = c.RightSliderLengthMultiPoint;
            LeftSliderIncrementValue = c.LeftSliderIncrementValue;
            RightSliderIncrementValue = c.RightSliderIncrementValue;
            LeftSliderIncreasePercentage = c.LeftSliderIncreasePercentage;
            RightSliderIncreasePercentage = c.RightSliderIncreasePercentage;
            LeftSliderIncreasedLengthOrPct = c.LeftSliderIncreasedLengthOrPct;
            RightSliderIncreasedLengthOrPct = c.RightSliderIncreasedLengthOrPct;
            LeftSliderIncrementalIncrease = c.LeftSliderIncrementalIncrease;
            RightSliderIncrementalIncrease = c.RightSliderIncrementalIncrease;
            GlobalChangeSliderLength = c.GlobalChangeSliderLength;
            EndVerticalUseWebLumber = c.EndVerticalUseWebLumber;

            LeftHeelType = c.LeftHeelType;
            RightHeelType = c.RightHeelType;
            LeftHeelSolveReason = c.LeftHeelSolveReason;
            RightHeelSolveReason = c.RightHeelSolveReason;
            LeftHeelChanged = c.LeftHeelChanged;
            RightHeelChanged = c.RightHeelChanged;
            LeftWedgeSize = c.LeftWedgeSize;
            RightWedgeSize = c.RightWedgeSize;
            LeftHeelPreviousGroup = c.LeftHeelPreviousGroup;
            RightHeelPreviousGroup = c.RightHeelPreviousGroup;
            LeftHeelPreviousMaterial = c.LeftHeelPreviousMaterial;
            RightHeelPreviousMaterial = c.RightHeelPreviousMaterial;
            LeftHeelPreviousMaterialID = c.LeftHeelPreviousMaterialID;
            RightHeelPreviousMaterialID = c.RightHeelPreviousMaterialID;

            LeftCantileverWebOption = c.LeftCantileverWebOption;
            RightCantileverWebOptions = c.RightCantileverWebOptions;

            LeftStubLegDownFlag = c.LeftStubLegDownFlag;
            LeftStubDistance = c.LeftStubDistance;
            RightStubLegDownFlag = c.RightStubLegDownFlag;
            RightStubDistance = c.RightStubDistance;

            CuttingInfo = c.CuttingInfo;
            HangerOptions = c.HangerOptions;

            DOLSDeadOnly = c.DOLSDeadOnly;
            SeismicDOL = c.SeismicDOL;
            GeometryOption = c.GeometryOption;
            LCDeleted = c.LCDeleted;
            LoadCases = c.LoadCases;

            LiveLoads = c.LiveLoads;
            TotalLoad = c.TotalLoad;
            WindLive = c.WindLive;
            WindTotal = c.WindTotal;
            LayoutLoadDistributionMethod = c.LayoutLoadDistributionMethod;
            BasicLoadInfo = c.BasicLoadInfo;
            DragLoadCases = c.DragLoadCases;
            TrussApp = c.TrussApp;
            CountryBasicLoadInfo = c.CountryBasicLoadInfo;
            SnowLoadInfo = c.SnowLoadInfo;
            WindLoadInfo = c.WindLoadInfo;
            FloorLoadInfo = c.FloorLoadInfo;

            AdditionalLumberInfo = c.AdditionalLumberInfo;
            TS = c.TS;
            BS = c.BS;

            LumberPullList = c.LumberPullList;
            TotalSawUnits = c.TotalSawUnits;
            TotalFabUnits = c.TotalFabUnits;
            TotalOtherUnits = c.TotalOtherUnits;

            DefaultMaterials = c.DefaultMaterials;
            DefaultMaterialsMap = c.DefaultMaterialsMap;

            ShopNotes = c.ShopNotes;

            PlateInventoryID = c.PlateInventoryID;
            PlatingInfo = c.PlatingInfo;
            Plates = c.Plates;

            NumberOfReactionCases = c.NumberOfReactionCases;
            TreReactions = c.TreReactions;
            SheathingInfo = c.SheathingInfo;

            MasterTruss = c.MasterTruss;
            AlignWebs = c.AlignWebs;
            AlignSplices = c.AlignSplices;

            GableStudAllPlies = c.GableStudAllPlies;
            GableStudPly = c.GableStudPly;
            GableStudPlies = c.GableStudPlies;
            FillerAllPlies = c.FillerAllPlies;
            FillerPly = c.FillerPly;
            FillerPlies = c.FillerPlies;

            LeftByDistance = c.LeftByDistance;
            LeftMaintainSeatCut = c.LeftMaintainSeatCut;
            LeftLegDown = c.LeftLegDown;
            LeftMaintainOverhangs = c.LeftMaintainOverhangs;
            LeftBearingHeight = c.LeftBearingHeight;
            LeftDistance = c.LeftDistance;
            RightByDistance = c.RightByDistance;
            RightMaintainSeatCut = c.RightMaintainSeatCut;
            RightLegDown = c.RightLegDown;
            RightMaintainOverhangs = c.RightMaintainOverhangs;
            RightBearingHeight = c.RightBearingHeight;
            RightDistance = c.RightDistance;

            ChordEndFixityForMatrix = c.ChordEndFixityForMatrix;
            AutoFixUnstables = c.AutoFixUnstables;
            MinSpanForFixedPitchBreaksOrHeels = c.MinSpanForFixedPitchBreaksOrHeels;

            NumberOfEndFixitiesChanged = c.NumberOfEndFixitiesChanged;

            NumberOfBearings = c.NumberOfBearings;
            WallLength = c.WallLength;

            TreBearings = c.TreBearings;

            ApplyDropToAllIndicator = c.ApplyDropToAllIndicator;
            MoveVertWebsTrussIndicator = c.MoveVertWebsTrussIndicator;
            CornerRafterIndicator = c.CornerRafterIndicator;
            CaliforniaHipFrontAngle = c.CaliforniaHipFrontAngle;
            CaliforniaHipCornerThickness = c.CaliforniaHipCornerThickness;
            DropHipThickness = c.DropHipThickness;
            DropHipAngle = c.DropHipAngle;
            DropHipIndicator = c.DropHipIndicator;
            CaliforniaHipExtension1 = c.CaliforniaHipExtension1;
            CaliforniaHipExtension2 = c.CaliforniaHipExtension2;
            CaliforniaHipIndicator = c.CaliforniaHipIndicator;
            RHPoint = c.RHPoint;
            NumberOfProfile = c.NumberOfProfile;

            BearingPoints = c.BearingPoints;

            NumberOfSegments = c.NumberOfSegments;

            NumberOfPanelsForSegmentAtIndex = c.NumberOfPanelsForSegmentAtIndex;

            NumberOfCalHipExtensions = c.NumberOfCalHipExtensions;

            HipExtensions = c.HipExtensions;

            NumberOfDropTops = c.NumberOfDropTops;

            DropTops = c.DropTops;
        }
 public void Parse_Tre()
 {
     Component component = new TreComponent(Encoding.UTF8.GetString(ComponentFiles.mitek));
     Assert.Pass();
 }
 private void button1_Click(object sender, EventArgs e)
 {
     readingProgress.Value = 0;
     readingProgress.Step = 1;
     readingProgress.Maximum = openFileDialog.FileNames.Length;
     int percent = (int)(((double)readingProgress.Value / (double)readingProgress.Maximum) * 100);
     readingProgress.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(readingProgress.Width / 2 - 10, readingProgress.Height / 2 - 7));
     
     for (int i = 0; i < openFileDialog.FileNames.Length; i++)
     {
         DateTime start = DateTime.Now;
         TimeStamp = "[" +  DateTime.Now.ToString() + "]";
         fileBox.Text = openFileDialog.FileNames[i];
         fileExtensionBox.Text = Path.GetExtension(openFileDialog.FileNames[i]);
         logBox.Clear();
         resultsBox.Clear();
         logBox.AppendText(TimeStamp + " " + "Opening " + openFileDialog.FileNames[i] + "...");
         TreComponent component = null;
         AnsFile file = null;
         if (fileExtensionBox.Text.Equals(".ans", StringComparison.OrdinalIgnoreCase))
         {
             /*
             try
             {
                 file = new AnsFile(File.ReadAllText(fileBox.Text));
                 logBox.AppendText("DONE!\n\n");
                 logBox.AppendText(component.SerializeToLogJson());
                 resultsBox.Text = "PASSED";
                 resultsBox.BackColor = Color.Green;
             }
             catch (Exception ex)
             {
                 logBox.AppendText(ex.Message + "\n" + ex.InnerException + "\n" + ex.StackTrace);
                 resultsBox.Text = "FAILED";
                 resultsBox.BackColor = Color.Red;
             }
             */
         }
         else if (fileExtensionBox.Text.Equals(".kxr", StringComparison.OrdinalIgnoreCase))
         {
             /*
             try
             {
                 KxrComponent component = new KxrComponent(File.ReadAllText(fileBox.Text));
                 logBox.AppendText("DONE!\n\n");
                 logBox.AppendText(component.SerializeToLogJson());
                 resultsBox.Text = "PASSED";
                 resultsBox.BackColor = Color.Green;
             }
             catch (Exception ex)
             {
                 logBox.AppendText("ERROR!\n\n");
                 logBox.AppendText(ex.Message + "\n" + ex.InnerException + "\n" + ex.StackTrace);
                 resultsBox.Text = "FAILED";
                 resultsBox.BackColor = Color.Red;
             }
             */
         }
         else if (fileExtensionBox.Text.Equals(".tre", StringComparison.OrdinalIgnoreCase))
         {
             try
             {
                 component = new TreComponent(File.ReadAllText(fileBox.Text));
                 logBox.AppendText("DONE!\n\n");
                 logBox.AppendText(component.SerializeToLogJson());
                 resultsBox.Text = "PASSED";
                 resultsBox.BackColor = Color.Green;
             }
             catch (Exception ex)
             {
                 logBox.AppendText("ERROR!\n\n");
                 logBox.AppendText(ex.Message + "\n" + ex.InnerException + "\n" + ex.StackTrace);
                 resultsBox.Text = "FAILED";
                 resultsBox.BackColor = Color.Red;
             }
         }
         else if (fileExtensionBox.Text.Equals(".trs", StringComparison.OrdinalIgnoreCase))
         {
             /*
             try
             {
                 component = new TrsComponent(fileBox.Text);
                 logBox.AppendText("DONE!\n\n");
                 logBox.AppendText(component.SerializeToLogJson());
                 resultsBox.Text = "PASSED";
                 resultsBox.BackColor = Color.Green;
             }
             catch (InvalidDataException)
             {
                 try
                 {
                     component = new OldTrsComponent(fileBox.Text);
                     logBox.AppendText("DONE!\n\n");
                     logBox.AppendText(component.SerializeToLogJson());
                     resultsBox.Text = "PASSED";
                     resultsBox.BackColor = Color.Green;
                 }
                 catch (Exception ex)
                 {
                     logBox.AppendText("ERROR!\n\n");
                     logBox.AppendText(ex.Message + "\n" + ex.InnerException + "\n" + ex.StackTrace);
                     resultsBox.Text = "FAILED";
                     resultsBox.BackColor = Color.Red;
                 }
             }
             catch (Exception ex)
             {
                 logBox.AppendText("ERROR!\n\n");
                 logBox.AppendText(ex.Message + "\n" + ex.InnerException + "\n" + ex.StackTrace);
                 resultsBox.Text = "FAILED";
                 resultsBox.BackColor = Color.Red;
             }
             */
         }
         else
         {
             throw new FormatException();
         }
         DateTime end = DateTime.Now;
         TimeSpan runtime = end - start;
         if(resultsBox.Text.Equals("PASSED"))
         {
             PassedHistory.Add(new RunEntry(fileBox.Text, resultsBox.Text, logBox.Text, runtime.ToString(), component));
         }
         else
         {
             FailedHistory.Add(new RunEntry(fileBox.Text, resultsBox.Text, logBox.Text, runtime.Seconds.ToString(), component));
         }
         readingProgress.PerformStep();
         percent = (int)(((double)readingProgress.Value / (double)readingProgress.Maximum) * 100);
         readingProgress.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(readingProgress.Width / 2 - 10, readingProgress.Height / 2 - 7));
     }
     double successRate = (double)PassedHistory.Count / (double)(PassedHistory.Count + FailedHistory.Count) * 100.0;
     double failedRate = 100.0 - successRate;
     passedLabel.Text = "Passed (" + successRate.ToString("N2") + "%)";
     failedLabel.Text = "Failed (" + failedRate.ToString("N2") + "%)";
 }
 private void button5_Click(object sender, EventArgs e)
 {
     RunEntry entry = (RunEntry)passedHistory.SelectedItem;
     DialogResult result = saveComponentDialog.ShowDialog();
     if (result == DialogResult.OK)
     {
         if (saveComponentDialog.FileName.Contains(".ans") || saveComponentDialog.FileName.Contains(".ANS")) //ANS
         {
             //AnsFile fileToWrite = new AnsFile(entry.FileRead);
         }
         else if (saveComponentDialog.FileName.Contains(".kxr") || saveComponentDialog.FileName.Contains(".KXR")) //KXR
         {
             //KxrComponent componentToWrite = new KxrComponent(entry.ComponentRead);
         }
         else if (saveComponentDialog.FileName.Contains(".tre") || saveComponentDialog.FileName.Contains(".TRE")) //TRE
         {
             TreComponent componentToWrite = new TreComponent(entry.ComponentRead);
             componentToWrite.Export(saveComponentDialog.FileName);
         }
         else if (saveComponentDialog.FileName.Contains(".trs") || saveComponentDialog.FileName.Contains(".TRS")) //TRS
         {
             try
             {
                 //TrsComponent componentToWrite = new TrsComponent(entry.ComponentRead);
             }
             catch(Exception)
             {
                 //OldTrsComponent componentToWrite = new OldTrsComponent(entry.ComponentRead);
             }
         }
     }
 }