Exemplo n.º 1
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            List <ParasiteObject> _data = new List <ParasiteObject>();
            bool _bake = false;

            if (!DA.GetDataList(0, _data))
            {
                return;
            }
            if (!DA.GetData(1, ref _bake))
            {
                return;
            }

            if (_bake)
            {
                //BakeToLayer.BakeTo(_data);
                AddGeometryToDocument.AddToDocument(_data, LayerFactory.CreateLayers(_data, DOC), DOC);
            }
        }