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

Revit_Core_Engine: Handle null exception on Nurbs curves in beams #1289

Closed

Conversation

vietle-bh
Copy link
Contributor

Issues addressed by this PR

Closes #1288

While waiting for Bhom_Engine to add support for Nurbs, at least let's handle the exception on the Revit side by converting nurbs curves to polylines.

image

Test files

On SharePoint

Changelog

  • Convert Nurbs curves to polylines to handle a null exception

@vietle-bh vietle-bh added the type:bug Error or unexpected behaviour label Dec 13, 2022
@vietle-bh vietle-bh self-assigned this Dec 13, 2022
@vietle-bh
Copy link
Contributor Author

@BHoMBot check code-compliance
@BHoMBot check core
@BHoMBot check documentation-compliance
@BHoMBot check null-handling
@BHoMBot check project-compliance
@BHoMBot check serialisation

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 13, 2022

@vietle-bh to confirm, the following actions are now queued:

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

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 13, 2022

@vietle-bh to confirm, the following actions are now queued:

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

There are 6 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 13, 2022

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 Dec 13, 2022

The check core 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 Dec 13, 2022

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.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 13, 2022

The check null-handling 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 Dec 13, 2022

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

@vietle-bh vietle-bh changed the title Added curve conversion Revit_Core_Engine: Handle null exception on Nurbs curves Dec 13, 2022
@vietle-bh
Copy link
Contributor Author

@BHoMBot check versioning
@BHoMBot check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 13, 2022

@vietle-bh to confirm, the following actions are now queued:

  • check versioning
  • check installer

There are 13 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 13, 2022

@vietle-bh to confirm, the following actions are now queued:

  • check versioning
  • check installer

There are 14 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 13, 2022

The check installer 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 Dec 13, 2022

The check versioning 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 Dec 13, 2022

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

@vietle-bh vietle-bh requested a review from pawelbaran December 13, 2022 10:38
@vietle-bh vietle-bh changed the title Revit_Core_Engine: Handle null exception on Nurbs curves Revit_Core_Engine: Handle null exception on Nurbs curves in beams Dec 13, 2022
@pawelbaran
Copy link
Member

Thanks @vietle-bh for raising this. However, this one was left on purpose after a discussion with @IsakNaslundBh. There are 2 reasons for it:

  • we are trying to avoid incidental checks if a curve is nurbs inside the code for maintenance reasons - it is virtually impossible to keep track of this sort of checks, e.g. when support for nurbs curves gets added in BHoM_Engine (which actually is slowly happening thanks to @IsakNaslundBh's hobby 😉), then we would need to parse the entire code base in search for this sort of ifs, which is error prone and not very efficient
  • curve tessellation may generate curves that will not make sense from the engineering perspective, so we would rather not make this decision for the user - panels are a slightly different case because it is harder to draw them by hand (especially when they have funky shapes) and they usually require manual tweaks anyways

I hope this makes sense, @IsakNaslundBh please feel free to correct me if I missed something or you disagree

@vietle-bh
Copy link
Contributor Author

I hope this makes sense, @IsakNaslundBh please feel free to correct me if I missed something or you disagree

Sure, I'll close this PR. How about this other one?

@pawelbaran
Copy link
Member

Sure, I'll close this PR. How about this other one?

Responded 👍

@vietle-bh vietle-bh deleted the Revit_Core_Engine-#1288-HandleNullExceptionOnNurbs branch July 6, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Null exception on Nurbs
2 participants