cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Replace part

Replace part

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 Comments
FriedhelmK
17-Peridot

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

PeterKehoe
5-Regular Member

Thanks Friedhelm!

PeterKehoe
5-Regular Member

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.

FriedhelmK
17-Peridot

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.

MaxKublin
1-Newbie

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

PTCModerator
Emeritus
Status changed to: Archived