Exemple #1
0
        public void ByLoftingCurveReferences_ValidArgs()
        {
            IEnumerable <ElementCurveReference> eles =
                ElementSelector.ByType <Autodesk.Revit.DB.CurveElement>(true)
                .Cast <ModelCurve>()
                .Select(x => x.ElementCurveReference);

            Assert.AreEqual(2, eles.Count());

            var loft = Form.ByLoftingCurveReferences(eles.ToArray(), false);

            Assert.NotNull(loft);
            Assert.IsTrue(DocumentManager.Instance.ElementExistsInDocument(
                              new ElementUUID(loft.InternalElement.UniqueId)));
        }