Get content from extensiblestorage

i created a Autodesk.Revit.DB.ExtensibleStorage.Schema
i applied that schema to revit elements

that is working.
when snooping my database (with jeremy’s tools) i read like:
image

meaning field “B” is loaded with “0.25”

so far so good.
whenever i try to extract the data from python i fail.
my specific code is:

the error message i receive is:

File “”, line 61, in
TypeError: The type arguments for method ‘Get’ cannot be inferred from the usage. Try specifying the type arguments explicitly.

any thoughts on how to solve that?

for anyone following my question and wondering how easy the solution is:

  1. you have to create an appropriate type. in my case:
    floatType = System.Double

  2. with that call the method:
    result = entity.Get[floatType](myschema.GetField(“Name of Field”, DisplayUnitType.DUT_METER) # or any other Displayunittype

  3. that was it

1 Like