Exemplo n.º 1
0
        private void getSelected()
        {
            _data = TeklaHandler.getPartInfo();
            string report = DataSorting.main(_data);

            print(report);
        }
Exemplo n.º 2
0
        private void selectAll()
        {
            string           statusString      = TopInFormEnum.ALL.ToString();
            TopInFormEnum    status            = (TopInFormEnum)Enum.Parse(typeof(TopInFormEnum), statusString);
            List <_Assembly> filteredAssemblys = DataSorting.filterAssemblysByTIF(_data, status);

            TeklaHandler.selectAssemblys(filteredAssemblys);
        }
Exemplo n.º 3
0
        private void select()
        {
            string           statusString      = cb_selectFrom.SelectedValue.ToString();
            TopInFormEnum    status            = (TopInFormEnum)Enum.Parse(typeof(TopInFormEnum), statusString);
            List <_Assembly> filteredAssemblys = DataSorting.filterAssemblysByTIF(_data, status);
            string           report            = "Selected " + filteredAssemblys.Count.ToString() + " assemblys \n";

            TeklaHandler.selectAssemblys(filteredAssemblys);
            print(report);
        }
Exemplo n.º 4
0
        public static void main(TSM.Part part)
        {
            List <TSM.Reinforcement> oldReinf = TeklaHandler.getReinforcements(part);

            swapHandlesChooser(part);
            swapEndForces(part);
            swapOffsetPlanes(part);
            swapTopInForm(part);
            part.Modify();

            List <TSM.Reinforcement> newReinf = TeklaHandler.getReinforcements(part);

            restoreReinforcement(oldReinf, newReinf);
        }