public object Regenerate(object app, object modelDoc, object feature)
        {
            Init(app, modelDoc, feature);
            var modeller = (IModeler)SwApp.GetModeler();

            try
            {
                return(Regenerate(modeller));
            }
            catch (Exception e)
            {
                return(e.Message);
            }
        }
        public void CanSelect()
        {
            CreatePartDoc(doc =>
            {
                var modeller = (IModeler)SwApp.GetModeler();
                var box      = modeller.CreateBox(0.1, 0.1, 0.1);
                var part     = (PartDoc)doc;
                part.CreateFeatureFromBody3(box, false, 0);

                new Action(() =>
                {
                    doc.SelectionObservable((selectTypeE, mark) => true)
                    .FirstAsync()
                    .Timeout(TimeSpan.FromSeconds(5))
                    .Wait();
                }).ShouldThrow <TimeoutException>("Because you didn't select anything in time");
            });
        }