Ejemplo n.º 1
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            Autodesk.Revit.DB.Category category = null;
            if (!DA.GetData("Category", ref category))
            {
                return;
            }

            DA.SetData("Name", category?.Name);
            DA.SetData("Parent", category?.Parent);
            DA.SetData("Type", category?.CategoryType);
            DA.SetData("AllowsParameters", category?.AllowsBoundParameters);
            DA.SetData("HasMaterialQuantities", category?.HasMaterialQuantities);
            DA.SetData("Cuttable", category?.IsCuttable);
            DA.SetData("Hidden", category is null ? (object)null : category.IsHidden());
        }