Skip to content
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

Facade_Engine: Added Facade GeneralMaterialTakeoff methods #3103

Merged
merged 5 commits into from
Jul 13, 2023

Conversation

enarhi
Copy link
Member

@enarhi enarhi commented Jul 10, 2023

Issues addressed by this PR

Closes #3091

Added GeneralMaterialTakeoff methods for Facade namespace, so that takeoffs for these elements properly account for area and volumes.

Test files

Test File

To test, check the Panel, Opening, etc elements and confirm area takeoffs and LCA values work correctly for the Area EPD/material applied.

Additional comments

I have implemented this for Facade elements within Facade_Engine. Technically we could implement higher, but it seems to make sense with how @IsakNaslundBh has implemented this and others, allowing for specific approaches within namespaces as needed. It makes for a bit more redundant code, but allows for custom bits such as the implementation of opening area accounting for frame width required for Facade Openings.

@enarhi enarhi self-assigned this Jul 10, 2023
@enarhi enarhi added the type:feature New capability or enhancement label Jul 10, 2023
@enarhi enarhi requested a review from vgreen-BH July 10, 2023 20:46
Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please include engine being changed in the PR title 😉

Facade_Engine/Query/GeneralMaterialTakeoff.cs Outdated Show resolved Hide resolved
Facade_Engine/Query/GeneralMaterialTakeoff.cs Outdated Show resolved Hide resolved
Facade_Engine/Query/GeneralMaterialTakeoff.cs Show resolved Hide resolved
Facade_Engine/Query/GeneralMaterialTakeoff.cs Show resolved Hide resolved
Facade_Engine/Query/GeneralMaterialTakeoff.cs Show resolved Hide resolved
Copy link
Member

@adecler adecler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To the exception of the need for a fallback already mentioned by @FraserGreenroyd , the code looks sound.

As for the functionality itself, it would be good to have someone that understand the inputs and outputs better to review this PR. For me, I stared at the text Confirm Areas Exist for Layer Materials with a big arrow pointing to a NaN wondering if that was normal 😋 (for those the mass was not null so was that enough?).

image

@enarhi enarhi changed the title Added Facade GeneralMaterialTakeoff methods Facade_Engine: Added Facade GeneralMaterialTakeoff methods Jul 11, 2023
@enarhi
Copy link
Member Author

enarhi commented Jul 11, 2023

@adecler I'll have @vgreen-BH review for functionality, but yea, the NaN for the first material and value for the second is as expected since the first material corresponds to the frame edge which is not an area based element.

@enarhi enarhi requested a review from FraserGreenroyd July 11, 2023 15:29
@enarhi
Copy link
Member Author

enarhi commented Jul 11, 2023

@BHoMBot check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 11, 2023

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

  • check installer

Facade_Engine/Query/GeneralMaterialTakeoff.cs Outdated Show resolved Hide resolved
Facade_Engine/Query/GeneralMaterialTakeoff.cs Outdated Show resolved Hide resolved
Facade_Engine/Query/GeneralMaterialTakeoff.cs Outdated Show resolved Hide resolved
@enarhi enarhi requested a review from FraserGreenroyd July 11, 2023 17:20
Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a code perspective, everything looks fine now, but will need functional review by @vgreen-BH before merging.

Copy link
Contributor

@vgreen-BH vgreen-BH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested using referenced test script and latest alpha. Script performs as expected.

@enarhi
Copy link
Member Author

enarhi commented Jul 12, 2023

@BHoMBot check compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 12, 2023

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

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

@enarhi
Copy link
Member Author

enarhi commented Jul 12, 2023

@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 12, 2023

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

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 12, 2023

The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 12, 2023

The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@enarhi
Copy link
Member Author

enarhi commented Jul 13, 2023

@BHoMBot check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 13, 2023

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

  • check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 13, 2023

FAO: @FraserGreenroyd
@FraserGreenroyd is seeking dispensation on this Pull Request to skip a required check. Please can you provide authorisation for the check to be skipped, or provide assistance as appropriate.

The check they wish to have dispensation on is unit-tests.

If you are providing dispensation on this occasion, please reply with:

@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 14998198547

@FraserGreenroyd
Copy link
Contributor

@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 14998198547

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 13, 2023

@FraserGreenroyd I have now provided a passing check on reference 14998198547 as requested.

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented Jul 13, 2023

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

  • check ready-to-merge

@FraserGreenroyd FraserGreenroyd merged commit d6e9b04 into develop Jul 13, 2023
@FraserGreenroyd FraserGreenroyd deleted the Facade_Engine-#3091-AreaTakeoffFix branch July 13, 2023 09:52
@bhombot-ci bhombot-ci bot mentioned this pull request Sep 11, 2023
@bhombot-ci bhombot-ci bot mentioned this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Matter_Engine: IGeneralMaterialTakeoff does not return Area, Mass, etc
4 participants