-
Notifications
You must be signed in to change notification settings - Fork 10
Add Support for Groups #516
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
base: develop
Are you sure you want to change the base?
Conversation
Unnecessary since groupname information is going to be stored in tags.
Add feature allowing to assign pushed bars to corresponding groups.
The Method GetGroupAssign() is not supported in any ETABS API earlier than v18.
|
@BHoMBot check installer |
1 similar comment
|
@BHoMBot check installer |
|
Groups pushed and pulled successfully! |
|
Tested this for ETABS Version 22.7.0 using Rhino 7 using the test script provided in @GCRA101's original comment. The script works as intended:
|
|
@BHoMBot check installer |
|
@GCRA101 to confirm, the following actions are now queued:
|
albertbg028
left a comment
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.
New feature works as intended.
|
@BHoMBot check ready-to-merge |
|
@GCRA101 to confirm, the following actions are now queued:
|
|
@peterjamesnugent, @Chrisshort92, |
peterjamesnugent
left a comment
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.
A few changes needed to make some methods generic - also how much does this PR conflict with htppotps://github.com//pull/518 ? One supports unique names whilst the other is supporting tags? I would favour using tags over the unique name PR personally.
peterjamesnugent
left a comment
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.
@samuelbasimalla do you want to test this again with the methods being a bit more generic now.
In the test can you use the folowing workflow:
- User pushes objects with Tags
- User pulls all objects e.g.
Bar,Paneletc. - User uses the
FilterRequest in https://github.com/BHoM/BHoM/blob/c7a25f7799782f9025ead7f532b04a6cd33c7ff0/Data_oM/Requests/FilterRequest.cs#L28 to specify theTags` - User makes user of https://github.com/BHoM/BHoM_Engine/blob/ee49f81ea511d7ee0c66a3c13d0d73f1a3677bd8/Data_Engine/Compute/FilterData.cs#L37 to filter the data as needed.
@GCRA101
| /* 1. CHECK ASSIGNED GROUPS */ | ||
|
|
||
| /* Get the list of unique groupNames assigned to the BHoM Bar */ | ||
| List<string> groupNames = obj.Tags.Distinct().ToList(); |
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.
Tags are a Hashset<string> so you don't need to get Distinct() here.
Happy to test this as per suggested workflow. |


Issues addressed by this PR
Fixes #509 #500
ETABS Toolkit now allows to push/pull and update objects (i.e. bars, nodes, panels, rigid links and openings) handling corresponding assignments to Groups via Tags.
Test files
Grasshopper File
https://burohappold.sharepoint.com/:u:/r/sites/BHoM/02_Current/12_Scripts/02_Pull%20Request/BHoM/ETABS_Toolkit/%23513-AddSupportforGroups/[TestScript.gh](https://burohappold.sharepoint.com/:u:/r/sites/BHoM/02_Current/12_Scripts/02_Pull%20Request/BHoM/ETABS_Toolkit/%23513-AddSupportforGroups/TestScript.gh?csf=1&web=1&e=NzN4CF)?csf=1&web=1&e=NzN4CF
Changelog