public void ExtractFrameForcesIntoDataFile(string ComboName, string GroupNamePrefix, string OutputPath, string UnitSystem) { ModelUnits units; bool IsValidUnit = Enum.TryParse(UnitSystem, out units); if (IsValidUnit == true) { //Get selected frames SelectionManager sm = new SelectionManager(ETABSModel); List <string> frames = sm.GetSelectedFrameNames(); //Use frame extractor to get frame forces FrameForceExtractor ext = new FrameForceExtractor(ETABSModel); List <FrameEnvelopeReactionResult> results = ext.GetFrameReactions(frames, GroupNamePrefix, ComboName, units); //Save file DataFileManager dfm = new DataFileManager(); dfm.WriteReactionResultsToDataFile(results, OutputPath); } else { throw new Exception("Invalid Unit System"); } }
public FrameEnvelopeForceResult GetSelectedFrameForces(string SelectedCombo, string UnitSystem, bool SpecifyStation, double StationRatio) { FrameEnvelopeForceResult result = null; ModelUnits units; bool IsValidUnit = Enum.TryParse(UnitSystem, out units); if (IsValidUnit == true) { //Get selected frames SelectionManager sm = new SelectionManager(ETABSModel); List <string> selectedFrameNames = sm.GetSelectedFrameNames(); //Use frame extractor to get frame forces FrameForceExtractor ext = new FrameForceExtractor(ETABSModel); if (SpecifyStation == false) { result = ext.GetFrameForces(selectedFrameNames, SelectedCombo, units); } else { result = ext.GetFrameForcesAtStationRatio(selectedFrameNames, SelectedCombo, units, StationRatio); } } else { throw new Exception("Invalid Unit System"); } return(result); }
public FrameEnvelopeForceResult GetFrameForces(string GroupName, string ComboName, string UnitSystem) { FrameEnvelopeForceResult result = null; ModelUnits units; bool IsValidUnit = Enum.TryParse(UnitSystem, out units); if (IsValidUnit == true) { //Get selected frames SelectionManager sm = new SelectionManager(ETABSModel); //Use frame extractor to get frame forces FrameForceExtractor ext = new FrameForceExtractor(ETABSModel); result = ext.GetFrameForces(GroupName, ComboName, units); } else { throw new Exception("Invalid Unit System"); } return(result); }