BHoM / BHoM/BHoM_Adapter

UpdateOnly - Enable update individual properties only on push

Open
#185 3 comments 1 reaction 1 assignee Claimed by @alelom View on GitHub
type:question
Dominant language
C#
Stars
7
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Having recently been enabling the UpdateOnly for Robot_Toolkit (is working really well!) I'm thinking it would be good to extend/expose a bit more structured interaction to the human interface.

A specific workflow to enable could be: push property changes of objects to specific objects/a selection only, without needing to pull/construct the whole object. At the moment, the typical update only workflow means pushing an object with all properties required to be set, otherwise null or empty properties will reset the properties in the external software. Moreover, there are some object properties that the current toolkit/behavior preclude, e.g. changing of object numbering in Robot/structural adapters, as the comparers are hard coded.

As a suggestion, the specific workflow could be enabled through the current Push component, and by pushing 'bespoke' or specific classes into 'objects' input that contain:
- `ObjectType` - the types of object whose property is required to be updated;
- `Comparer` (or `ObjectComparer`) - the property of the object to compare. This needs a bit of work, as I think we should expose 'Comparerers' more generally in the human interface, so that people can compare things in any workflow;
- `PropertyName` - the name of the property to be updated;
- `PropertyValue` - the value to update the property to.

Specific workflow: modify the node numbers of a Robot analysis model by comparing the nodal coordinates and updating the numbers where they match within a human-specified tolerance.

Thoughts on a postcard @al-fisher , @alelom , @IsakNaslundBh

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.