Trimble Connect User Forum

 View Only
Expand all | Collapse all

Trimble Connect for Desktop GetAttribute()

  • 1.  Trimble Connect for Desktop GetAttribute()

    Posted 10-16-2020 19:57

    I use Tekla Structures to create a simple model with 1 column named as "COLUMN" and another named as "100". I then export it to IFC and bring it over to Trimble Connect for Desktop.

     

    I use the following to read the object properties:

     

    IEnumerable<AttributeSet> MyAllAttributeSet = MyModelObject.GetAttribute("Product Name", null);

     

    It has no problem when the value is alphanumeric such as "COLUMN". However, it fails when the value is numeric such as "100". I get the error message:

     

    System.InvalidOperationException: 'Connection could not be used. Please confirm that Trimble Connect for Desktop is running and then try to reconnect.'

     

    Is this a bug?



  • 2.  RE: Trimble Connect for Desktop GetAttribute()

    Posted 06-02-2024 19:34

    Hi, Kelvin

    I have got same problem. Have you solve the problem?

    If you have a solution for this, please let me know, I would greatly appreciate it!

    Jason



    ------------------------------
    Yifeng Zhang
    ------------------------------