BHoM / BHoM/BHoM_Datasets

Add Alternative name concept to datasets

Open
#60 1 comment 2 reactions 0 assignees View on GitHub
type:feature
Dominant language
No language data
Stars
2
Forks
3
Avg merge
10d 17h
Merged PRs (30d)
1

Description

#### Description:

This will probably need to be migrated to BHoM/Engine for implementation, but raising here to start as most relevant repo.

Would want to incorporate some system of alternative names that could be used to match items in the libraries. Useful when using the match method in the library, or calling it from the side of the code. Also useful when pulling items from packages that might use a slightly different convention than the BHoM.

The library engine is already able to igonore case and whitespaces, but it can only do so much.

As an example, for the UK_SteelSections:

- RHS 50x30x4.0

Could have the alternate forms:

- RHS 50x30x4
- HRHS 50x30x4.0 (for hot formed)
- HFRHS 50x30x4.0 (for hot formed)
- RHSH 50x30x4.0 (for hot formed)
- 50x30x4.0 RHS

as well as all the permutations of the above.

Could potentially add some `AlternativeNames` fragment or similar to the Data_oM to store the names on the objects. As an alternative, could set up some mapping system for the Library_Engine that can know for a particular dataset how it can re-map the name text to an alternate form.

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.