Skip to main content
Dec 18, 2020 8:38 AM UTC
Acknowledged

Stop also copying relations when using the copy paste function

Related products:Creo Parametric

When you have a relation in a part or assembly and use the copy paste functionality to copy-paste a part or assembly to another assembly, the relations are also copied. This leads to unwanted relations in the relations file.

 

See also article CS282060

https://www.ptc.com/en/support/article/CS282060?&language=en&posno=1&q=CS282060&source=search

6 replies

Jun 27, 2021 5:21 PM UTC

Ideally this could be controlled by a configuration option. In my experience 80% of the time I don't want to paste the relations, but sometimes it can be very handy.

 

One hacky work around I do now is to always add a line at the end of my relations for all parts and assemblies:
/*End of Relations

And if I see any code after that line then I know it was copy-pasted in. That way it's really fast and easy to delete if I don't want to keep it.

RobertHAuthor
Jul 22, 2022 11:16 AM UTC

That extra line in the relation is also in our startpart template for exactly the same reason.

Controlling it by a config option is a solution but when you need it to be copied, I don't think you are gonna change the configuration for that.So you turn the automatic copying off and when you need it you just copy paste the relation. 

Aug 7, 2024 3:22 PM UTC

I like have the relations carried over.   I've used it to make a bunch of repeated feature sets that were relation driven.   Big time saver.

Aug 14, 2024 1:44 PM UTC

I think it's important to note that this occurs when the feature being copied has a relation driving it in some way.  In my opinion it is OK that any relations related to that feature gets copied, although I do agree a config option to control that would be good.  However the problem here is that all relations get copied from the source model to the target model.  I really struggle with PTC calling that intended functionality as it just doesn't make any sense.  If you delete a feature with a relation driving it only that relation is deleted, not all relations, so why would copying a feature work any differently?

Aug 15, 2024 11:30 AM UTC

I think the key thing to note here, that a lot of people are missing, is that the problem is that it copies extra relations that are not associated to the feature that is being copied. It copies the feature related relation, but it also copies relations, above, in the relation screen, that are not related. Usually these are relations that we use in our start part or other added relations. That is where it is not working correctly. We have also added a text line at the end of start part relations and got in the habit of adding relations to the top of the relation window, but it is not a fix, it only gives us an easy point to delete the unwanted extra relations.

Community Manager
Feb 12, 2025 11:32 AM UTC
Status changed to: Acknowledged

Hello,

Thank you for your idea. Based on the details and popularity of your idea, we are acknowledging it as the Community management team. This is not a commitment from the Product team.