Skip to content

Conversation

@GCRA101
Copy link
Contributor

@GCRA101 GCRA101 commented Nov 5, 2025

Issues addressed by this PR

Fixes #509 #500

Test GH Script View Test ETABS Model

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

  • Add Support for Group in Push/Pull/Update of Bars
  • Add Support for Group in Push/Pull/Update of Nodes
  • Add Support for Group in Push/Pull/Update of Panels
  • Add Support for Group in Push/Pull/Update of Links
  • Add Support for Group in Push/Pull/Update of Openings

@GCRA101 GCRA101 self-assigned this Nov 5, 2025
@GCRA101 GCRA101 added type:feature New capability or enhancement severity:medium Slows progress, but workaround is possible labels Nov 5, 2025
@GCRA101
Copy link
Contributor Author

GCRA101 commented Nov 5, 2025

@BHoMBot check installer

1 similar comment
@michaelhoehn
Copy link
Contributor

@BHoMBot check installer

@myriamchourfi
Copy link

Groups pushed and pulled successfully!

@samuelbasimalla
Copy link
Contributor

samuelbasimalla commented Nov 8, 2025

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:

  1. Each object is assigned to different group tags using "Set Property" and pushed to ETABS
  2. Groups of objects are uniquely assigned to different group tags using "Set Property" and pushed to ETABS
  3. Moreover, the information on group tags is pulled from ETABS along with the BHoM objects and updated as needed and re-pushed using "Update Only" push type.
image image

@GCRA101
Copy link
Contributor Author

GCRA101 commented Nov 20, 2025

@BHoMBot check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 20, 2025

@GCRA101 to confirm, the following actions are now queued:

  • check installer

albertbg028
albertbg028 previously approved these changes Dec 1, 2025
Copy link

@albertbg028 albertbg028 left a 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.

@GCRA101
Copy link
Contributor Author

GCRA101 commented Dec 1, 2025

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 1, 2025

@GCRA101 to confirm, the following actions are now queued:

  • check ready-to-merge

@GCRA101
Copy link
Contributor Author

GCRA101 commented Dec 1, 2025

@peterjamesnugent, @Chrisshort92,
fyi, I think this one is ready for merge. Functionality tested by both Myriam and Samuel.
All BHoMBot checks have passed.

@GCRA101 GCRA101 requested a review from marinaBal December 3, 2025 12:17
Copy link
Member

@peterjamesnugent peterjamesnugent left a 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.

Copy link
Member

@peterjamesnugent peterjamesnugent left a 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:

  1. User pushes objects with Tags
  2. User pulls all objects e.g. Bar, Panel etc.
  3. User uses the FilterRequest in https://github.com/BHoM/BHoM/blob/c7a25f7799782f9025ead7f532b04a6cd33c7ff0/Data_oM/Requests/FilterRequest.cs#L28 to specify the Tags`
  4. 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();
Copy link
Member

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.

@samuelbasimalla
Copy link
Contributor

@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:

  1. User pushes objects with Tags
  2. User pulls all objects e.g. Bar, Panel etc.
  3. User uses the FilterRequest in https://github.com/BHoM/BHoM/blob/c7a25f7799782f9025ead7f532b04a6cd33c7ff0/Data_oM/Requests/FilterRequest.cs#L28 to specify the Tags`
  4. 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

Happy to test this as per suggested workflow.
@GCRA101 is the msi installer available in the SharePoint the latest one, after making the changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

severity:medium Slows progress, but workaround is possible type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Group Feature is Missing for all elements

7 participants