Skip to content

Issue with ViewerAPI "getObjectProperties" with revit model #5735

@KrMDBEC

Description

@KrMDBEC

What package are you referring to?

I am referring to the Viewer API: https://github.com/specklesystems/speckle-server/tree/main/packages/viewer

Bug Description

I experience an issue with the getObjectProperties function of the viewer for a Revit model on Speckle: https://docs.speckle.systems/developers/viewer/viewer-api#getobjectproperties

I am using this function within my typescript app and it delivers for the same revit property three properties each:
const speckleProps: PropertyInfo[]= await viewer.getObjectProperties();
console.log("Speckle Props:", speckleProps)

Say, I expect the function to return just the PropertyInfo for the property key
properties.Parameters.Type Parameters.ID-Daten.Typname.

What it returns instead is three PropertyInfos for the keys
properties.Parameters.Type Parameters.ID-Daten.Typname.name,
properties.Parameters.Type Parameters.ID-Daten.Typname.value and
properties.Parameters.Type Parameters.ID-Daten.Typname.internalDefinitionName.

So the function does not recognize that name/value/internalDefinitionName are already belonging to one parameter, or am I getting something seriously wrong? :D

Cheers! Manu

Screenshots

See image from Chrome Dev Tabs:
Image

System Info

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: Version 143.0.7499.170 (64-Bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions