BHoM / BHoM/Robot_Toolkit

Robot_Toolkit: Add CRUD operation/session object collection

Open
#317 4 comments 2 reactions 1 assignee Claimed by @IsakNaslundBh View on GitHub
type:feature
Dominant language
C#
Stars
12
Forks
4
PR merge metrics
No merged PRs in 30d

Description

#### Description:

Through discussion with @IsakNaslundBh , would be good to add a `Dictionary> SessionObjects` or similar to the RobotAdapter. The session objects would store objects as part of a CRUD method - currently read methods are peppered around different objects where there are dependencies (e.g. read materials), so there are multiple reads called during an operation. The SessionObjects would store these _per adapter action_ and be flushed each time. This could be something we raise up to the parent adapter as a concept, and enforce flushing etc.

I've seen this done quite a bit informally in the past - Revit TK at one point (maybe still?) was storing objects during operations on the adapter and passing them around.

Naturally we need to be quite careful with the session objects when passing them around/making sure the collection is being updated.

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.