-
Notifications
You must be signed in to change notification settings - Fork 304
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
Add FamilyUtils extensions #263
Add FamilyUtils extensions #263
Conversation
private static object ResolveProfileSymbols(Document context) | ||
{ | ||
var values = Enum.GetValues(typeof(ProfileFamilyUsage)); | ||
var capacity = values.Length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiply by 2. You have two results for one value
foreach (ProfileFamilyUsage value in values) | ||
{ | ||
variants.Add(FamilyUtils.GetProfileSymbols(context, value, false), value.ToString()); | ||
variants.Add(FamilyUtils.GetProfileSymbols(context, value, true), $"{value.ToString()}, One curve loop only"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant .ToString() inside interpolation
|
||
foreach (ProfileFamilyUsage value in values) | ||
{ | ||
variants.Add(FamilyUtils.GetProfileSymbols(context, value, false), value.ToString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to add extra description to understand context. For example, this method with $"{value} with multiple curve loops"
and next $"{value} with single curve loop"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot about this PR. I fixed it all
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Detected 202 dependenciesThird-party software listThis page lists the third-party software dependencies used in RevitLookup
Contact Qodana teamContact us at [email protected]
|
Summary of the Pull Request
I added support for 2 methods of FamilyUtils class
Description:
Quality Checklist