Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

replace component in an assembly

apilikov

New member
Hi all!
And here is my question to the community. I can easily replace component in assembly interactively just by clicking the right mouse button on the component and selecting "Replace". But I have no idea how to perfom this operation programmatically. Please, I'm waiting for your advise.
Thank you very much.
 
It works only for interchange components or for family table instances. What component are you trying to replace?
 
_TL_ said:
It works only for interchange components or for family table instances. What component are you trying to replace?

I'm trying to replace same components. The difference is ussually in dimensions.
 
If you are selecting in the "Replace" dialog the option "Family Table" or "Interchange", then it is possible to use the prodevelop function. If not, you have to disassemble the component and assemble the new one. And it is not a simple code to do it.
 
_TL_ said:
If you are selecting in the "Replace" dialog the option "Family Table" or "Interchange", then it is possible to use the prodevelop function. If not, you have to disassemble the component and assemble the new one. And it is not a simple code to do it.

and it is the only way to perfom the replace?
and what about mate constraints. If I will disassemble the component manually and then assemble it again I will loose all constraints. To avoid it I must "remember" all mates and then reinterpret them after assembling component. Is it true?
 
Yes, that's why I am writing it is not simple. I was implemented it only for components assembled through csys and I have spend few days with such an application.
But if it is possible you prepare the assembly and the component as interchange components and then you can use only the one function.
I don't know about any other possibility.


Edited by: _TL_
 
_TL_ said:
Yes, that's why I am writing it is not simple. I was implemented it only for components assembled through csys and I have spend few days with such an application.
But if it is possible you prepare the assembly and the component as interchange components and then you can use only the one function.
I don't know about any other possibility.

Ok, how can I prepare the assembly and the component as interchange components?
I see you have some experience using this functionality?
 
Have you tried using a mapkey? I am not sure if it can really solve your problem, but this can be another way of doing what you have been trying to do.
 
Hi there,


I was reading the existing Pro Engineer foruns and I sawthis topic. It's quite late since you posted it but I'm writing anyway.


I made ahuge programmatically interchange assembly by using excel and interchange assemblies. You mustcreate a spreadsheet able tobuild the BOM or the parts/assy you want to interchange and design each of these parts to an variable. Export it to an txt.


In the Pro-E you can use Pro/Program to indicate the variables to the parts already inserted in the assembly. To interchange you have to go inregenerate/read file a write the path of the txt.


If youknow an easier way to do it or any question, please make contact!
 

Sponsor

Back
Top