Skip to main content
Sep 11, 2013 11:29 PM UTC
Archived

Replace part

Related products:Creo Elements/Direct

At times I will have an assembly with multiple shares of a part (for example, 10 instances of the same screw). Later I find that the original part won't work and I have an entirely new part that I want to use in its place. What I would like to have is a command to replace one part, and all of its shares, with a new part. I know that I can use the Multiple Positioning option with the Create Share command, but I would like a command that was more intelligent. Obviously I would need to position and orient the replacement part to correspond with one of the existing shares, but the software should be able to take care of the rest.

6 replies

Sep 12, 2013 10:12 AM UTC

Hello Peter,

verry god idea, I use this often. 

Here you can find a lisp what is doing this for you

http://osd.cad.de/lisp_3d.en.htm#40

Sep 12, 2013 3:18 PM UTC

Thanks Friedhelm!

Sep 17, 2013 1:39 AM UTC

FriedhelmK,

I took the code that you had and made some changes. In my new version you have the option to pick which other destination part/assembly (or parts/assemblies) you want replaced, or you can choose an option to replace all shares of the destination. If you choose the "Include all shares" option, the command searches through all parts and assemblies that you have loaded and finds all shares of the destination part/assembly and will replace all of them-unless they are in a "locked" assembly, in which case they are ignored. If you are interested, let me know and I can send you my updated code.

Sep 17, 2013 6:54 AM UTC

Hello Peter,
yes I am very interested.
If you could send me the code I would be happy.
As I said, I use this often.

'll Send you a private maessage with my email address.
Thanks in advance.

Sep 27, 2013 11:28 AM UTC

Hi Pete,

The LISP tools run in Modeling, which means you must have the "parent" assembly

loaded to perform the replacement.If this works for you, fine.

Can become quite complex if you have thousands of parents and/or versions of assemblies

and/or 2D drawings of the parent assemblies (which all needs to be taken into account).

With Model Manager, you have an alternative: Re-integrate function

Regards,

      Max

Mar 17, 2019 2:45 PM UTC
Status changed to: Archived