GithubHelp home page GithubHelp logo

Comments (7)

agviegas avatar agviegas commented on August 29, 2024

Is this a duplicate of #100?

from components.

shailendra26-siso avatar shailendra26-siso commented on August 29, 2024

from components.

agviegas avatar agviegas commented on August 29, 2024

Ok, got it. I already mentioned this in another issue, but can you please answer in Github directly instead of answering your email? Your messages are getting bigger and bigger and it might make this a bit hard to follow. We would also need a full minimal application that we can run where we can reproduce this to fix it. Thanks a lot in advance!

from components.

HoyosJuan avatar HoyosJuan commented on August 29, 2024

@shailendra26-siso it's a bit hard to tell what is going on in your code, but a couple of things to keep in mind:

  1. In other cases you've said you're still using web-ifc-viewer. Keep in mind, web-ifc-viewer and openbim-components are not compatible between them, in other words you can't work with them interchangeably in the same codebase.
  2. In openbim-components, the IFC entity types are not strings, but numbers. So, if you want to take all entities from a particular type, then you would have to find it by its type numbers (you can find that in web-ifc).
  3. Once again, it's a bit hard to know what is going on in your code, but from the screenshots you have shown the error tell me you are working with a variable named t that you are not defining anywhere.

Hope this helps somehow.

from components.

daniel-s-goncalves avatar daniel-s-goncalves commented on August 29, 2024

@HoyosJuan I seem to be having a similar issue to this (perhaps only related). I am not sure if you can check it out.

Even when using your App viewer (Demo), or your sample code, if I use a sample IFC like the ones from here (AC20-FZK-Haus.ifc), your platform is not able to add a New Property Set to the top-level of any object. In fact, if you force it to reload the property list, by closing and opening the UI window, it will throw this error:

9249.a39bde93b4db5cf6.js:6 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'value')
    at aY.getEntityName (9249.a39bde93b4db5cf6.js:6:395616)
    at aQ.newEntityTree (9249.a39bde93b4db5cf6.js:6:423610)
    at aQ.newEntityUI (9249.a39bde93b4db5cf6.js:6:421029)
    at 0 (9249.a39bde93b4db5cf6.js:6:418216)
    at 9249.a39bde93b4db5cf6.js:6:421390
    at Y.trigger (9249.a39bde93b4db5cf6.js:1:29839)
    at set expanded [as expanded] (9249.a39bde93b4db5cf6.js:6:100764)
    at iB.toggle (9249.a39bde93b4db5cf6.js:6:101370)
    at innerElements.expandBtn.onclick (9249.a39bde93b4db5cf6.js:6:103128)

When playing around with your functions and replicating the code that is run by your UI when adding the PSET, I noticed that the expressID of the added PSET is -1 and the MAX_ID is not taken into account when doing this.

I think there's an ongoing issue with this, and I wonder if the entire property list of the IfcPropertiesManager also gets updated when the PSET is added.

from components.

HoyosJuan avatar HoyosJuan commented on August 29, 2024

Yes @daniel-s-goncalves! We're aware of that issue. What happens is that each time a new property is added, the "calculated" expressIDs are wrong. The solution should be easy enough I guess 💪

Will come back with more news about this.

from components.

HoyosJuan avatar HoyosJuan commented on August 29, 2024

This is solved in PR #214.

from components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.