Inserted part as material

Hi,

We're manufacturing machined parts made from castings. To do the machining drawings we're inserting the casting as a new part in the new part and applying the maching, i.e milling and turning. When we do the production drawing we want the casting part to show as the material for the machined casting and when we do a drawing of a part made from raw material we want the material to show as the assigned material, i.e AISI316.

An example:

We need a threaded axle with the article code CMM-12345 which is made from a casting with the name CMC-12345. We make a part named CMC-12345, apply a material, EN42000, and save it. We then start a new part and insert the casting under "Insert/Part" and do the thread on it, apply the same material, EN42000, and save it as CMM-12345. When we do the 2D drawing we want the part CMC-12345 to show under material.

I've tried to do a custom property tab with radio buttons to choose if it's one or the other with the machined raw material to get it's material properties from "SW-Material" but what can I put on the machined casting? Is there a link to the inserted parts file name?

Or are we going about this the wrong way?

If I'm unclear please let me know and I'll try to clarify.

BR

Henrik

SolidworksParts And Features
Answers 9
DG
DG 2011-04-09 Best Answer

Welcome to SW forums Henrik

The only way I can think of via some macro which will pull the name of inserted part (the feature name in the tree) and add that as a value in the file properties.

Also read this post for your future reference: Forum Posting

SM
SM 2011-04-09

Henrik,

Welcome to the forum.  The way you are creating your casting to machining

is not wrong.  I have done it this way for years. 

http://help.solidworks.com/2010/English/SolidWorks/sldworks/legacyhelp/sldworks/Parts/HIDD_DVE_IMPORT_FEATURES.htm

And your issue is not new either.

See this thread.  I is very similar you your issue.

https://forum.solidworks.com/message/216479#216479

I know that you can select different materials for different configurations by RCing on the edit

material in the feature manager and selecting edit material configuration.

http://help.solidworks.com/2010/English/SolidWorks/sldworks/LegacyHelp/Sldworks/Configuration/Materials_in_Configurations.htm?id=469e8c3014a14f77ab6cca2c1a8cd940

I also know and this is what might help you, is you can specify different materials for different

solid bodies.

http://help.solidworks.com/2010/English/solidworks/whatsnew/allcontent/solidworks/core/materials/wn_2010/wn_2010_materials_and_multibody_parts.html

If you can't adapt to what I mentioned above the only other suggestion I can think of and it is doing it

twice I get that, is to assign a material custom property and link it to the material file and select the

material in both.

I my experience what we did was on the machining drawing we just did a make from the casting p/n note.

Didn't make sense to us to call out the raw material twice.

I hope this helps you and good luck.

SF
SF 2011-04-10

Thanks for the answers I'll try some of your suggestions. I tried importing the custom properties but in SW 2011 Sp 2.0 this fature didn't work but it working again in Sp 3.0.

I'm still trying to perfect it but it's still not as conveinient as getting the info automaticly.

Regarding the Macro, I don't know the first thing about Macros. How would you do this?

I've also submitted a ER to Soild Works, which suggested a checkbox when inserting a part that this will be used as material for the new part. We'll see what happens.

Also I'm quite new to this custom properties, is there a list of the properties that you can link to? For example SW- File Name and so on?

Thanks again!

SM
SM 2011-04-10

Henrik,

Here is a thread that has the list of properties in it.

https://forum.solidworks.com/thread/41599

If you go to File>properties that dialog gives you the ability to create your own properties

as well as linking to existing.  I believe that in my last posting I gave you a link where

I layed out how to create the properties and use the tab builder.

As far as macros, if you look at the list of toolbars under the customize dialog after

you RC on the top toolbar you will see a macro toolbar.  This one allows for the recording

of command sequences.  Beyond that you are looking at writing one which is more API.

Please let us know how you make out.  I would be interested in hearing.

SF
SF 2011-04-10

Henrik,

It seems like you might want to have different drawing templates for your cast parts and your machined parts. The cast parts drawing would link the material callout to the material property of the file. The machined parts drawing would link to the file name of the imported part. I'm guessing that you would have to put a property in your machined part that links to the file name of the imported part. This could be set up in your part template for machined parts, so you might need to have different templates for cast and machined parts as well.

Jerry Steiger

SF
SF 2011-04-11

Hi again,

I've got a bit on the way but still not all the way.

I've made a custom property "Cast material" which will be assigend all new part the filename.

When I insert the new part I import all the custom properties.

I've made a custom proprety tab with radio buttons where I can choose what kind of product it is.

These radio buttons are linked to the custom propety Material. When chosing Casting or Machined Part it will assign the SW-Material to this property.

When chosing Machined Casting it will assign Cast material to Material.

When I do the 2D drawing the Casting and Machined Part drawing works fine but for the Machined Casting something happens.

All other properties works fine (description, roughness et.c) but material doesn't.

Does someone have any idea why?

Thanks!

comment imagecomment imagecomment imagecomment imagecomment imagecomment imagecomment imagecomment image
SM
SM 2011-04-12

I am not sure where the  "from parent" prefix comes from, but you should let the tab

builder drive everything.  After I have my tab builder setup I rarely if ever go back to the

file>properties dialog.

I personally think there are too many material properties.  There should be one.  SW-Material

in the tab builder call out and have that drive both the casting and machining print.

If anything have a seperate line item or category setup in your material file strictly

for the machining operation.  This way you have one part template that drives both operations.

I hope this makes sense.

DG
DG 2011-04-12

Henrik,

I believe that instead of the property cast material, it should be the file name property of the cast part.

Scott,

When you insert part into part, then you have the option to import custom properties too. So if a property gets inserted, "fromparent+" get automatically tagged as prefix for that property.

SM
SM 2011-04-12

Deepak, Thanks for that.  Like I said in my earlier posting I rarely go back to the file>properties

and mostly use the tab builder, so I never noticed that before.

Nice to know though.