-
Notifications
You must be signed in to change notification settings - Fork 10
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
ETABS_Toolkit: Set material design parameters during push #405
ETABS_Toolkit: Set material design parameters during push #405
Conversation
@BHoMBot check compliance |
@JosefTaylor to confirm, the following actions are now queued:
|
I looked at this today: Overall, the compressive force, modulus of elasticity and other design parameters came in without an issue. Still, there were some other things that might be worth fixing. First, for both steel and concrete, there are parameters that are not defined by BHoM Materials (effective yield stress, expected rupture, nonlinear material data, etc) that need to be set. Firstly, do we want want to set a value, or do we want to make it 0? If we do set a value, we should be very clear about which parameters are being set by us, and not the user. Secondly, within the Material Property Design Data for steel and concrete, the "grade" parameter does not take the name of the material. It should, to avoid confusion. Upon talking to Joe, it seems like this is a problem on the ETABS side to figure out and dive in to. I'll be happy to look at it again after we solve this, but the overall functionality of transferring compressive strength and modulus of elasticity (the two more important properties) works, which is a win :) |
Changed _Read to check for types which share an interface (i.e. Steel, Concrete are both IMaterialFragment) Changed ReadMaterial to conform to SAP2000 which works a bit nicer Changed CreateMaterial to try ETABS.AddMaterial() first, which is the new method which theoretically looks in the database, however it would be difficult to implement. If AddMaterial fails, it goes to SetMaterial, which is the old method. Change the default push type to CreateNonExisting, so that if materials are pre-loaded, they are not altered (they would be altered in undesirable ways).
Diving into the issues Mel raised uncovered a few more - if a user pushed a material (not a bar or property containing a material), it would trigger Create, instead of Update, and the Create checked if it already existed, which is normally superfluous. Fixing this meant that properties on existing materials are overwritten, which is usually not desired. So, I changed the default push type to CreateNonExisting, so that a user could pre-load any materials they need to use before pushing dependent types, and those materials will not be changed by an unintended update. |
@BHoMBot check compliance |
@JosefTaylor to confirm, the following actions are now queued:
There are 2 requests in the queue ahead of you. |
@BHoMBot check required |
@JosefTaylor to confirm, the following actions are now queued:
There are 22 requests in the queue ahead of you. |
The check |
The check |
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.
General functionality works well, but some of the changes are a bit to american code centric, and makes pushing items raise warnings that does not make sense for for example Eurocode.
Think this needs a quick discussion before being merged in.
…if density is low.
@BHoMBot check required |
@JosefTaylor to confirm, the following actions are now queued:
There are 37 requests in the queue ahead of you. |
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.
Happy now with the changes made!
@IsakNaslundBh to confirm, the following actions are now queued:
There are 29 requests in the queue ahead of you. |
@IsakNaslundBh to confirm, the following actions are now queued:
There are 16 requests in the queue ahead of you. |
Following a request by @IsakNaslundBh , I have reviewed this PR and its mergeability given the current feature freeze for the 5.3 beta release, and am happy this PR conformed to the guidelines laid out for the previous sprint and may be merged today prior to the test beta artefacts being produced for inclusion in the 5.3 beta. |
NOTE: Depends on
Issues addressed by this PR
Closes #378
Test files
https://burohappold.sharepoint.com/:f:/r/sites/BHoM/02_Current/12_Scripts/02_Pull%20Request/BHoM/ETABS_Toolkit/%23405-set-design-parameters-during-material-push?csf=1&web=1&e=RXiDVc
Changelog
Additional comments