Community
BIM 360 API Forum
Welcome to Autodesk’s BIM 360 API Forums. Share your knowledge, ask questions, and explore popular BIM 360 API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fetch hidden properties of an element

1 REPLY 1
Reply
Message 1 of 2
mizrachi_amir
250 Views, 1 Reply

Fetch hidden properties of an element

Hello,

 

I am trying to read the value also of hidden elements in my BIM360 app - but to no avail.

This is my code snippet that supposed to do that, but only the visible properties are printed:

    for (const dbid of dbids) {
      model.getProperties(dbid, (result) => {
        if (
          result &&
          result.properties &&
          result.name.startsWith("BE_Sphere_")
        ) {
          console.log(`Properties of dbid ${dbid}:`, result);

        } else {
          console.log(`No properties found for dbid ${dbid}.`);
        }
      });

console.log(`Fetching hidden properties for dbid ${dbid}`);
          model.getProperties(dbid, (hiddenResult) => {
            if (hiddenResult && hiddenResult.properties) {
              hiddenResult.properties.forEach((hiddenProp) => {
                console.log(`Hidden - ${hiddenProp.displayName}: ${hiddenProp.displayValue}`);
              });
            }
          }, (error) => {
            console.error('Error fetching hidden properties:', error);
          }, { includeHidden: true });

    }

 

Someone has an idea why is that?

Thank you!

1 REPLY 1
Message 2 of 2
ronekvokes
in reply to: mizrachi_amir

I'm stripping a copy of a dom down to just mainly text so I can send it to a server. It's for an android application, otherwise I would be using jquery and not having so much trouble.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report