Skip to content

Duplicated object and annotation should get unique IfcRelAssignsToProduct#7876

Open
JocelinBirling wants to merge 2 commits intoIfcOpenShell:v0.8.0from
JocelinBirling:v0.8.0
Open

Duplicated object and annotation should get unique IfcRelAssignsToProduct#7876
JocelinBirling wants to merge 2 commits intoIfcOpenShell:v0.8.0from
JocelinBirling:v0.8.0

Conversation

@JocelinBirling
Copy link
Copy Markdown

@JocelinBirling JocelinBirling commented Mar 31, 2026

Hi,
I work on the feature resolve #6621.
When you copy an object and an annotation, and they are linked together by an IfcRelAssignsToProduct, the new annotation is linked with a new IfcRelAssignsToProduct to the new objects.

Before that, the old object was still linked.

I choose to do all the code in the operator of the duplicate. This part is very dependant of the context. You need to select the annotation and the object to make it happens.

When you duplicate an object with an annotation, the two new objects are linked together.
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

Successfully merging this pull request may close these issues.

Duplicated object and annotation should get unique IfcRelAssignsToProduct

1 participant