-
Notifications
You must be signed in to change notification settings - Fork 2
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
Pull and push Rigid constraints #297
Pull and push Rigid constraints #297
Conversation
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.
See comment below. Think good to have a call to chat through
2db92e9
to
3920d68
Compare
ae47668
to
7499005
Compare
3920d68
to
7e9cf9c
Compare
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.
I have tested using the test script for both GSA 10.7 and 8.1 - I have had to made two minor changes for it to function correctly (and to minimise altering the intent of the original PR):
- Change the delimiter from
','
to' '
when pulling RigidConstraints from GSA that have a 1:many relationship - Change how secondary nodes are handled for pushing RigidLinks to GSA
The one issue I do have is pulling Nodes
from a model, using them to create a RigidLink
, creating a New File and then pushing the RigidLink
. The Node
s are not assigned properly - this may be because of the GSAId
not being able to force a number - outside the scope of this PR and not sure whether that is a desire from a user point of view.
I would suggest one other reviews this PR for completeness.
This reverts commit 85da751.
…ix""" This reverts commit bed84d1.
…res_RigidLinks. Rigid Constraints are now treated by BHoM as a Rigid Link object but with a fragment that if true tells GSA it is a Rigid Constraints. Removed previously added RigidConstraint Type and ENUM from this PR and instead adjusted the RigidLink methods. Also added more possible LinkConstraint options to the FromGsa - LinkConstraint method.
…gidConstraint based on previous comments
ff83d23
to
a0e4ee9
Compare
Review summary: No new issues found in tests. Rigid links and rigid constraints push and pull functions work as expected. Comments: GSA8.7 does not start automatically when the adapter is activated. The start model needs to be open in GSA separately before activating the adapter. In the initial tests, pushed rigid constraints did not appear in GSA. After rerunning the same process, the push function worked as expected. GSA8.7 was generally very unstable and prone to crashing in the tests. Hence, the initial glitch with pushing the RCs may be attributed to GSA8.7 and not the updated BHoM code. None of the above issues were observed with GSA 10.1. Features tested: |
@FraserGreenroyd to confirm, the following actions are now queued:
|
The check |
The check |
The check |
Isak's not around to dismiss his own review, Peter and Artem have handled it.
@BHoMBot check ready-to-merge |
@FraserGreenroyd to confirm, the following actions are now queued:
|
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.
Approving based on @peterjamesnugent and @Artem-Holstov reviews.
@BHoMBot check ready-to-merge |
@FraserGreenroyd to confirm, the following actions are now queued:
|
Added feature to read, pull and push rigid constraints from/to GSA. RigidConstraints are treated by BHoM as a RigidLink but with a added Fragment that tells GSA that it is a RigCon instead. Previously added unique methods for RigCons have been removed and this is now an adjustment to existing Rigid Link methods.
NOTE: Depends on
Issues addressed by this PR
Closes #296
Test files
https://burohappold.sharepoint.com/:f:/r/sites/BHoM/02_Current/12_Scripts/02_Pull%20Request/BHoM/GSA_Toolkit/%23297-Pull%20and%20Push%20Constraints?csf=1&web=1&e=fDky6R
Changelog
Additional comments