Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subset does not have any children. #151

Open
ThomasvanHoutum opened this issue Feb 15, 2023 · 0 comments
Open

Subset does not have any children. #151

ThomasvanHoutum opened this issue Feb 15, 2023 · 0 comments

Comments

@ThomasvanHoutum
Copy link

I am working in a Vue 3 project with IFCjs.
Whenever I create a new subset, it does not add the given ID's under the subset.
When I log the ID's it gives me the right expressID's from that category, and the category is also correct.

createSubsetOfType: async function (category) {
      const ids = await this.getAllIDs(category);
      console.log("IDs for category: " + category + "\n" + ids);
      let scene = this.IFCManager.scene;
      let customID = this.getName(category);
      let subset = this.IFCManager.ifcLoader.ifcManager.createSubset({
        modelID: 0,
        scene,
        ids,
        removePrevious: true,
        customID,
      });
      subset.name = this.getName(category);
      console.log(subset);
      return subset;
    },

    getAllIDs: async function (category) {
      return this.IFCManager.ifcLoader.ifcManager.getAllItemsOfType(0, category, false);
    },

When I log the subset, it is complete except for the fact that it has nothing under it. The parent and type are all correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant