I need a way to link these so they will update as the part changes.
I need a way to link these so they will update as the part changes.
Hi,
Are you asking about weldment cutlists?
I have a similar setup, I created custom properties for my x,y,z dimensions and then I added those custom property fields to my BOM.
I've made a macro feature for that. And on every rebuild, the value would be updated from cut list to custom/configuration property. Check it here: https://forum.solidworks.com/message/732698#comment-732698
Yes as it would be embedded into the model. So make change and do rebuild which would trigger the macro feature.
I've tried using the macro from there, and doing the modifications for the total length property. But it's not even embedding the code as I run it. I am using SW 2016.
Please help?
I'm on very limited connectivity for next 2-3 days so won't be able to check and respond.
For now comment out or remove this line and check again If strValue(1) <> "" Then Exit Do
I get the compile error with that. Loop without Do, and the ealier message as well. That was how I tried to correct it.
Two more wrinkles for this. Can this be modified to;
1. Choose the name of the custom part property in the code? Don't need to choose it each time, but being able to have a different name in the custom part properties may be needed to populate a drawing BOM properly.
2. Let this be used in multiple configurations? I tested this a multi-config weldment, but the macro only worked in one of the configurations. In the one it didn't work in, the custom part property was looking for cut list item 1 which didn't exsist in that configuration.
-Also, when the 'FlatArea' feature was un-suppressed in other configurations SolidWorks crashed.
You can set any property name for custom/configuration property.
I'll have to see if this can be made to use on multi config as I'm also getting the same crash behavior.
Sorry to keep bothering you and the forum about this, but your a much better programmer than I am, and being able to use this macro on multi-configurable parts would be much easier than trying to take a multi-config part and turning it into multiple parts.
Steven, no issues in bothering and sorry for a delayed response.
I had not been able to get it working for configuration, so I'm looking into making a small add-in for it which when enabled would updated the file properties for sheet metal.
Ok, let try that. Sent you a PM