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

Creating new Pset in IFC4X3_ADD2 #438

Open
5 tasks done
Can-Gr opened this issue Jul 3, 2024 · 3 comments
Open
5 tasks done

Creating new Pset in IFC4X3_ADD2 #438

Can-Gr opened this issue Jul 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Can-Gr
Copy link

Can-Gr commented Jul 3, 2024

Describe the bug 📝

I am creating new pset in IFC4X3_ADD2 file but it gives me error of Cannot read properties of undefined (reading 'IfcGloballyUniqueId').

const { pset } = await propertiesManager.newPset(model, "New Field");

I tried the same code to create pset in IFC4, it works as expected and creates a new pset.

Reproduction ▶️

No response

Steps to reproduce 🔢

No response

System Info 💻

Browser : Chrome

Packages 
@thatopen/components: ^2.0.20,
@thatopen/components-front": ^2.0.19,
@thatopen/ui: ^2.0.8,
@thatopen/ui-obc": ^2.0.12,

Used Package Manager 📦

npm

Error Trace/Logs 📃

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.
@Can-Gr Can-Gr added the bug Something isn't working label Jul 3, 2024
@Can-Gr Can-Gr changed the title Creatin new Pset in IFC4X3_ADD2 Creating new Pset in IFC4X3_ADD2 Jul 3, 2024
@HoyosJuan
Copy link
Member

Hey @Can-Gr! This was already solved in @thatopen/[email protected]. Closing this!

@Can-Gr
Copy link
Author

Can-Gr commented Jul 18, 2024

Thank you very much @HoyosJuan ! It's working!

@Can-Gr
Copy link
Author

Can-Gr commented Sep 3, 2024

@HoyosJuan After the library updated to its latest version, adding Pset doesn’t work anymore.

It gives no error when code runs but when I download the model I can’t see the new Pset or I can’t even download the file in some versions (IFC4X3_ADD2) it gives me error of :
Download failed: TypeError: Cannot read properties of undefined (reading 'IfcRelDefinesByProperties')

Old versions of library are :
"@thatopen/components": "^2.1.21",
"@thatopen/components-front": "^2.1.23",
"@thatopen/ui": "^2.1.3",
"@thatopen/ui-obc": "^2.1.6",

@HoyosJuan HoyosJuan reopened this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants