Pretty straight forward, I'd like the assembly to have a customer property "Material" which rolls up from a component of my choosing, generally the first component in the assembly.
In general, we use assemblies to manage some "parts" - for example, plastic components that are overmolded of OTS parts, plastic parts with inserts, sheet metal parts with inserts, etc.
Let's say I have a sheet metal component, with several standard PEM type inserts. We model the sheet metal as .sldprt and the appropriate hole features and locations for the inserts. We then make an assembly with the sheet metal part, and add the overlapping component in their appropriate positions.
I want the assembly to carry the material even though SolidWorks recognizes it as an assembly, not as a component. Is there a syntax to handle this in the customer properties using @@component-1<1>@AB? It is important for our drawings as our drawing templates populate notes linking to customer properties. One of these notes is clearly material - we have to employ work-arounds to get it to work currently.
Also, before people ask why I don't just insert the PEM inserts into the part as deprived parts - it doesn't work with our workflow. PDM messes up the references, won't generate BOMs, doesn't do Contains correctly, and the placement tools and workflow are terrible as well. Assemblies really is the better way of handling this.
Cheers
~K
SolidworksAssemblies
Create your material property in your assembly and set it as:
"SW-Material@.SLDPRT"
(I used this at a different company than the one I am at now. I think we had the material for the assembly set up as above in the template. We may have had a separate sheetmetal template.)
You will have to fill in the right value for filename. I don't know if we ever figured out a way to not have to do that manually, but that is what I used to do for my sheetmetal assemblies. I haven't done a lot of sheetmetal recently.
Overall, I find it is a cleaner workflow to have an assembly that PEMs get added to than to try to just put them in the part.
Good luck,
Carrie
When I used to do this all the time, the files were named with just the part number and the SLDASM and SLDPRT had the same number. Calling your VAR sounds like a good idea.
Really strange because that's exactly what I did - it was my first instinct but no luck. It just evaluates to the exact syntax. The only thing I can think is because the assembly and the part have the same file name aside from the suffix. I suppose I can reach out to my var for whatever that's worth.
When I tried typing it in, it didn't want to take it. I copied and pasted it from the part and then it was OK with it. Here's a screenshot of my assembly with the material property. (Obviously, this isn't a sheetmetal part.)
Here's what the part had it's material assigned to:
Carrie
Can you send a screen of what you mean because if I'm understanding you correctly I did this exactly and it did not work. The Custom Property evaluated to "SW-Material@.SLDPRT"
Hello,
Part & assembly is how we do sheet metal parts as well, but like any other assembly, the material text is hard coded to "SEE BOM" (in the assembly template & pulled in by the drawing template).
In parts, the material custom property points to material on the tree and the custom property is the same one referenced in the same drawing template.
For the bare metal fab and routing, the material has to be specified.
But for the PEMs, we don't bother with the material because at this stage of the routing, it's part and PEMs for assembly.
Kevin
Would adding a BOM to your drawing solve your problems? You can have a material column on the BOM. I know that this isn't answering your question directly, but it is what I have after thinking about it for 30 seconds.
Another alternative is to first add the component only to the drawing.
Then hide that view (or drag it off the sheet). Then add the assembly to the drawing.
The material would (or could be forced to) populate based on the component view.
SW-Material@$PRPSHEET:"SW-File Name(File Name)".SLDPRT