Ejemplo n.º 1
0
        /***************************************************/

        public static IEnumerable <ElementId> ElementIds(this FilterByActiveWorkset request, Document document, IEnumerable <ElementId> ids = null)
        {
            if (document.IsLinked)
            {
                BH.Engine.Reflection.Compute.RecordError("It is not allowed to combine active workset requests with link requests.");
                return(null);
            }

            return(document.ElementIdsByWorksets(new List <WorksetId> {
                document.ActiveWorksetId()
            }, ids));
        }
Ejemplo n.º 2
0
        /***************************************************/

        public static IEnumerable <ElementId> ElementIds(this FilterByActiveWorkset request, UIDocument uIDocument, IEnumerable <ElementId> ids = null)
        {
            return(uIDocument.Document.ElementIdsByWorksets(new List <WorksetId> {
                uIDocument.Document.ActiveWorksetId()
            }, ids));
        }