Skip to content

Rename GeterateIdString -> GenerateIDString #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions GSA_Adapter/Convert/ToGsa/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private static string ToGsaString<T>(this BH.oM.Base.BHoMGroup<T> group, string
string command = "LIST";
string name = group.Name;
string type = group.IElementType();
string desc = group.Elements.Select(x => int.Parse(x.GSAId().ToString())).GeterateIdString();
string desc = group.Elements.Select(x => int.Parse(x.GSAId().ToString())).GenerateIDString();

return command + ", " + index + ", " + name + ", " + type + ", " + desc;
}
Expand All @@ -58,7 +58,7 @@ public static string CreateIdListOrGroupName<T>(this IElementLoad<T> load) where
return "\"" + load.Objects.Name + "\"";

//Otherwise apply to the corresponding indecies
return load.Objects.Elements.SelectMany(x => x.GSAIds()).OrderBy(x => x).GeterateIdString();
return load.Objects.Elements.SelectMany(x => x.GSAIds()).OrderBy(x => x).GenerateIDString();

}

Expand All @@ -77,7 +77,7 @@ private static IEnumerable<int> GSAIds(this IBHoMObject obj)

/***************************************************/

public static string GeterateIdString(this IEnumerable<int> ids)
public static string GenerateIDString(this IEnumerable<int> ids)
{
string str = "";

Expand Down
2 changes: 1 addition & 1 deletion GSA_Adapter/Convert/ToGsa/Loads/AreaLoads.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static string CreateIdListOrGroupNameAreaLoad(this IElementLoad<IAreaEle
indecies.AddRange(areaLoad.Objects.Elements.Where(x => !(x is FEMesh)).Select(x => x.GSAId()));

//Otherwise apply to the corresponding indecies
return indecies.GeterateIdString();
return indecies.GenerateIDString();
}

/***************************************************/
Expand Down