SpeckleRhino icon indicating copy to clipboard operation
SpeckleRhino copied to clipboard

ApplicationID component

Open daviddekoning opened this issue 3 years ago • 3 comments

Step 0:

Expected Behaviour

When buildings a Speckle (1.0) model in Grasshopper, we often need to extract the ApplicationID of a Speckle Object to insert into a referencing object. We know this is solved in 2.0 with the decomposition, so we where looking for a quick way to get the applicationID from an object.

We considered:

Expand Speckle Object: this has two problems:

  1. it is huge. It adds a lot of clutter to the GH canvas
  2. The order of keys is not guaranteed. Sometimes a file is re-openned and a pipe is no longer connected to the ApplicationID component, but to some other random key.

Query Speckle Object: this can (currently) only access keys in the objects properties key.

Proposed Solution

An applicationID component that accepts a SpeckleObject and returns it's ApplicationID.

This is very simple, but since the applicationIDs are used extensively in building SpeckleStructural models, this shortcut will be a signficant boost to adoption.

Our current prototype is here: https://github.com/arup-group/SpeckleRhino/tree/appIdComponent

Affected Projects

This is a grasshopper-specific intervention.

daviddekoning avatar Sep 02 '20 18:09 daviddekoning