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

Offset openings #375

Merged
merged 6 commits into from
Dec 2, 2019
Merged

Offset openings #375

merged 6 commits into from
Dec 2, 2019

Conversation

MajaLindroth
Copy link
Contributor

NOTE: Depends on

Issues addressed by this PR

Closes #243

Openings will be offset if they are bigger than or equal to the size of the host panel. Added a setting to XML Settings to change the distance.

Test files

Test file

Changelog

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.

Sorry @MajaLindroth , slight change requested to the error message!

{
if (offsetDistance >= 0)
{
BH.Engine.Reflection.Compute.RecordWarning("Please set offset distance to be a negative number");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why should the offset distance be a negative number?

I agree it should be, but the user might not - I would recommend a better error message such as:
Offset distance should be negative to offset the openings inwards, away from the edges of the host panel and ensuring opening area is less than the host panel area. A positive offset will result in openings being larger than the host panel

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.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XML_Toolkit: Opening Issue taking to large area normally when come from Curtain Wall
2 participants