-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug 📝
This code works well if the pset doesn’t exist.
I see new pset, new attribute and its value on the element if everything is new.
But if pset is already existing, nothing changes and can’t add new items to existing psets
const proprequests= [];
proprequests.push({
type: FRAGS.EditRequestType.CREATE_ITEM,
data: { data: { "Name":{value:"name",type:"IFCIDENTIFIER"}, "NominalValue" :{value:"value",type:"IFCTEXT"}, _category:{value:"IFCPROPERTYSINGLEVALUE"}}},
});
let [proplocalId] = await fragmentManager.core.editor.edit(model.modelId, proprequests);
await fragmentManager.core.editor.relate(modelId, psetlocalid, "IsDefinedBy", [proplocalId] );
await fragmentManager.core.editor.applyChanges(model.modelId);
await fragmentManager.core.update(true);
using
await fragmentManager.core.editor.applyChanges(model.modelId);
directly after
let [proplocalId] = await fragmentManager.core.editor.edit(model.modelId, proprequests);
and then relating the item to pset, didn't work as well
Reproduction ▶️
No response
Steps to reproduce 🔢
No response
System Info 💻
"@thatopen/fragments": "^3.2.10"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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working