Changing a part template
Changing a part template
(OP)
I have a part that used an incorrect template so plane names, custom properties, etc. are not right.
Can I switch the template after the part is made?
This thread thread559-230898: change a part template refers me to a macro that lets me switch Drawing templates, but not Part templates.
If I can't switch the template, is there a way to grab all the features from the part and move them to a new part that uses the correct template?
Thanks,
Steve
Can I switch the template after the part is made?
This thread thread559-230898: change a part template refers me to a macro that lets me switch Drawing templates, but not Part templates.
If I can't switch the template, is there a way to grab all the features from the part and move them to a new part that uses the correct template?
Thanks,
Steve






RE: Changing a part template
I'm not sure about the Ref plane names though.
RE: Changing a part template
If I could replace the template, or copy all the features to a new part, I wouldn't have to worry.
Thanks,
Steve
RE: Changing a part template
RE: Changing a part template
Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group
RE: Changing a part template
http://gu
Deepak Gupta
SW2009 SP3.0
SW2007 SP5.0
MathCAD 14.0
RE: Changing a part template
Thanks for posting. Unfortunately, according to the notes in the Excel file, "It works only with drawings".
Now, it also says it "may be enchanced easily to work with other document types and even with the Solidworks system options", but my VBA is not that good, and the code is commented in German.
Isn't there some way to copy features from one part to another?
RE: Changing a part template
RE: Changing a part template
No, there's no way to do what you want in the way that you want. There are other options. If you wish to copy features, you can save them from your source file to your design library, and then insert them into your other part. There's no way to automatically rename stuff or do a lot of what you are asking without some VERY specific API. You'll spend more time writing the code then just manual making the changes in your new file.
Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group
RE: Changing a part template
RE: Changing a part template
This may give you what you want... i've done it a couple of times to achieve a similar thing you seem to want to do...
Create a new part using your desired part template...
Go to pulldown menu "Insert"
Then "Part..."
Select the part you wish to update...
In the "Insert Part" property manager select "Break link to original part" check box.
Select the origin to insert it at that point.
Now you should find SW has inserted the part and zoomed extents also having created a folder containing all the features of that part you inserted. to make it "normal" you can simply delete the folder and all features will be at the root level. At this point you can save it off as the same part number and overwrite existing (tho i'd recommend checking the part out thoroughly in case, before doing that).
I havent found any problem with this yet so it seems to do what i want to which seems to be exactly what you want to do. :)
RE: Changing a part template
RE: Changing a part template
It never truly breaks the link though. The file will always remember where it came from. This can be an issue when using PDM.
Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group
RE: Changing a part template
RE: Changing a part template
The macro listed in this link (http://gu
Deepak Gupta
SW2009 SP3.0
SW2007 SP5.0
MathCAD 14.0