|
Welcome to the COE Discussion Forum!
|
|
|
|
To participate in the discussion forum, you must be logged in to the website. If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.
If you are new to the COE Discussion Forum and would like to participate, please register.
|
|
| Register Today |
| COE 2009 Annual PLM Conference & TechniFair |
 |
|
 |
| You are not authorized to post a reply.
|
|
| Author |
Messages |
|
COE-FORUM-USER
 |
| 08 Feb 2006 08:05 AM |
|
Hi,
I wander to add an assembly to my smarteam database. One of the assembly part already exist in my database, in a released state.
During the adding process, i wander smarteam to replace the part that is in the assembly with the one that is in the database. is it possible to acheive that with a script.
Salutations |
|
|
|
|
COE-FORUM-USER
 |
| 08 Feb 2006 08:42 AM |
|
Hi Do you want to do this automaticaly or manualy when a user select to do it??
Regards,
In the first case, you can write an script that search in the smarteam database if exists a released part with the same name of this that you are addinng (this is very dangerous).
In the second case, you can write an script that replace one part for other. This haven´t problem for SmarTeam, but you must to have care with your CAD (CATIA i think). If the CAD_REF_FILE_NAME is the same for the two parts, there is no problem (I presume that the two parts have the same geometry), if not you have to rename the original part before save and add the assembly or rename the released part but then if you use this part in other assembly, this assemblies will have problems.
Other thing, you can write in your script a part of code with the API of your CAD, a routine to update the references to the new part in this assembly. (I´d done this with SolidWorks)
The best scenario is to replace your new part for the released part if both have the same original name.
Regards |
|
|
|
|
COE-FORUM-USER
 |
| 08 Feb 2006 09:23 AM |
|
Hi rarias,
It is better to be automatic to avoid user interaction.
The parts are exacltly the same. I don't want to have duplication of parts in the database.
Is it possible to have one or two code lines for that to help me. i am really newbie in smarteam programation.
Thanks a lot. |
|
|
|
|
COE-FORUM-USER
 |
| 08 Feb 2006 09:45 AM |
|
I think that I have something similar, I´m going to look for it and I post the script
Bye |
|
|
|
|
COE-FORUM-USER
 |
| 22 Feb 2006 03:54 PM |
|
hi rarias, do you have any news about the script? Thanks |
|
|
|
|
JOBY

 |
| 14 Nov 2007 11:31 AM |
|
Hello Everyone... I have this same issue, and I was hoping someone had a canned script for me...wishful thinking I guess. I have a complete script to perform this action from CATIA only: We use shared workspaces for standard parts, and the script scans the files in those shared workspaces, and does replacements. Then, when the assembly is "seen" by SmarTeam, those standard parts are automatically recognized... But now I want the parts to be replaced directly with those in SmarTeam, without the Shared workspace. This requires some SmarTeam scripting that I'm still inexperienced with... Any bored scripting gurus out there? 
Thanks ~Joe
|
|
 |
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.6
|
|
|
|