Exemple #1
0
        /***************************************************/

        private static void FamilyAndTypeNames(this IBHoMObject bHoMObject, out string familyName, out string familyTypeName)
        {
            familyName = bHoMObject.FamilyName();
            if (string.IsNullOrEmpty(familyName))
            {
                familyName = bHoMObject.Name.FamilyName();
            }

            familyTypeName = bHoMObject.FamilyTypeName();
            if (string.IsNullOrEmpty(familyTypeName))
            {
                familyTypeName = bHoMObject.Name.FamilyTypeName();
            }

            if (string.IsNullOrEmpty(familyTypeName))
            {
                familyTypeName = bHoMObject.Name;
            }
        }