Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a part template 1

Status
Not open for further replies.

VELCROW

Mechanical
Apr 30, 2008
92
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 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
 
Replies continue below

Recommended for you

The Copy Custom Info or mac_copydoc listed in faq559-1429 should help.

I'm not sure about the Ref plane names though.
 
Thanks CB, that covers custom properties, which is the most obvious change. But there could be many other differences (e.g. Ref plane names) that will get me in trouble down the road. Off the top of my head, anything in the Document Properties tab of Tools>Options could be different.

If I could replace the template, or copy all the features to a new part, I wouldn't have to worry.

Thanks,

Steve
 
Deepak,

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?
 
Ignore the "It works only with drawings" comment. It does work with parts and assys. Use the worksheet tabs to switch types.
 
VELCROW,

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
 
Thanks to all for your help. This will get me 99% there, which is a lot better off than I was before.
 
velcrow,

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. :)
 
That seems to do it. It doesn't copy the custom properties, but the earlier posts cover that.
 
We're small enough that we don't use PDM, so it is not an issue. Even if we do go to PDM eventually, we can use this until then.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor