//using FeMM.Common.Helpers;
//using FeMM.Common.Models;
//using FeMM.Grasshopper.Helpers;
//using Grasshopper.Kernel;
//using System;
//using System.Runtime.Versioning;
//namespace FeMM.Grasshopper.Components.Sections
//{
// [SupportedOSPlatform("windows")]
// public class Nomenclature2BeamPropertyComponent : GH_Component
// {
// /// <summary>
// /// Initializes a new instance of the BeamPropertyComponent class.
// /// </summary>
// public Nomenclature2BeamPropertyComponent()
// : base("Maffeis Name 2 Beam Property v2.0", "BP", "The Maffeis naming convention", CategoryNameConstants.CATEGORY_FEMM, CategoryNameConstants.SUBCATEGORY_PROPERTIES)
// {
// }
// /// <summary>
// /// Registers all the input parameters for this component.
// /// </summary>
// protected override void RegisterInputParams(GH_InputParamManager pManager)
// {
// pManager.AddTextParameter("Section Name", "N", "The section name with Maffeis Nomenclature", GH_ParamAccess.item);
// }
// /// <summary>
// /// Registers all the output parameters for this component.
// /// </summary>
// protected override void RegisterOutputParams(GH_OutputParamManager pManager)
// {
// pManager.AddGenericParameter("Beam Property", "BP", "Beam property", GH_ParamAccess.item);
// }
// /// <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)
// {
// string maffeisName = "";
// if (!DA.GetData(0, ref maffeisName))
// return;
// BeamPropertyModel bp = null;
// if (GhFeMMInfo.FeMMDatabase != null)
// {
// Database.Database db = GhFeMMInfo.FeMMDatabase;
// bp = NamingConventionHelper.GetBeamProperty(db, maffeisName, ModelModel.ModelUnits.Nmm, out string log);
// if (bp == null || !string.IsNullOrEmpty(log))
// {
// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, log);
// return;
// }
// }
// int item = 0;
// DA.SetData(item++, bp);
// }
// /// <summary>
// /// Provides an Icon for the component.
// /// </summary>
// protected override System.Drawing.Bitmap Icon => Properties.Resources.SectionRevit2GeometricIcon;
// public override GH_Exposure Exposure => GH_Exposure.tertiary;
// /// <summary>
// /// Gets the unique ID for this component. Do not change this ID after release.
// /// </summary>
// public override Guid ComponentGuid => new Guid("d9f34ff2-7a46-4cc6-b7c5-99b27ad50cc3");
// }
//}