Unable to read element properties
23:53 02 Mar 2026

I’m working through the Autodesk Tandem REST tutorial https://github.com/autodesk-tandem/tutorial-rest/blob/master/elements/list-element-source-properties.js and using the list-element-source-properties.js example to query element attributes from my facility models.

I’m trying to retrieve a property definition like this:

const propDef = schema.attributes.find(
  p => p.fam === ColumnFamilies.Source &&
       p.category === 'Identity Data' &&
       p.name === 'Type Name'
);

However, I’m not getting any results.

After digging deeper, I noticed that in my model schema the category values contain non-English (localized) characters. When I pass the localized category string instead of "Identity Data", it works.

I’d like to support both English and non-English models in a generic way.

My questions:

  1. What is the recommended way to handle localized schema category names when querying attributes?

  2. Is there a language-independent identifier I should use instead of category?

  3. Can a model schema contain both English and localized category names at the same time, or is it always stored in a single localized form?

Appreciate any guidance or best practices on making this robust across different language models. Thanks!

autodesk-viewer autodesk autodesk-tandem