BHoM / BHoM/Revit_Toolkit

Exceptions in converts for PadFoundation and PileFoundation

Open
#1,596 0 comments 0 reactions 1 assignee Claimed by @pawelbaran View on GitHub
type:bug
Dominant language
C#
Stars
35
Forks
16
Avg merge
7d 29m
Merged PRs (30d)
2

Description

#### Description:

#1579 introduced a more precise mechanism to distinguish between different types of foundations in `BHoMType` method, which means that for a typical pile, it returns `typeof(Pile)`, and accordingly for pad and pile foundations. That works well. However, the improvement causes an exception downstream because `ConvertMethod` does not find correspondent convert methods for `PileFoundation` and `PadFoundation` because they simply do not exist. So we need a temp fix that will make `BHoMType` return `null` for nonexistent types until they get properly implemented.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.