Exemplo n.º 1
0
        public void AddPerforation()
        {
            if (IsPerforationAdded_)
            {
                return;
            }

            CatchExceptionsByMessageCenter(() => {
                TFCOM.TFPerforatorList perfoList = GetPerfoList();

                perfoList.SetSweepMode(
                    TFCOM.TFdPerforatorSweepMode.tfdPerforatorSweepModeBi);
                //perfoList.SetSenseDist(1.01 * length / 2);
                perfoList.SetPolicy(
                    TFCOM.TFdPerforatorPolicy.tfdPerforatorPolicyThroughHoleWithinSenseDist);
                perfoList.SetIsVisible(false);

                FrameList.AsTFFrame.SetPerforatorList(perfoList);
                FrameList.AsTFFrame.SetSenseDistance2(GetPerfoSenseDistance());
                FrameList.AsTFFrame.SetPerforatorsAreActive(true);
                FrameList.Synchronize(string.Empty);

                FrameList.ApplyPerforatorInModel();

                IsPerforationAdded_ = true;
            });
        }