I work for a sheet metal fabricator and we have just purchased new robotics in our shop. The built in Solid Works sheet metal functions are extremely useful and powerful especially when it comes to multi body parts.
The problems I have are when making the drawings for a multi body part:
When multi body parts are placed on a drawing they all have the same part name/number. I am looking for a way to give a unique number to the parts that is consistent from the base part (without using a Macro).
My current approach:
The direction that I am leaning towards is to embed a variable within the cut list properties. So far I have converted my part into a Weldment. From there I have the cut-list table is generated.
Going into the cut-list properties the description is a text value that is defaulted as "Sheet"
What I am looking for:
I am wanting a way to create an equation that will output the Cut-List-Item# as a single integer.
My goal:
I want to have this number embedded into the cut-list so that when I am exporting to my CNC laser or CNC break machines that the same part number automatically appears the same on the drawings as in the part file itself.
SolidworksBill Of Materials
Hi Dylan
Not exactly what you want automatically but this may help
2018 What's New in SOLIDWORKS - Linking a Cut List Folder to a Cut List Property
I just run the macro when I want to via the Run macro command.
I attached the macro. I got it from somewhere else so no problem sharing.
Thanks for your response !
Yes this method would definitely work.
How are your cultist items being numbered (-XX)?
The only methods I can think of would be to write a Macro. I am comfortable writing in VBA, the only issue I am trying to avoid is the need to click a specific button in order to have consistency in our part numbering. I am in a growing team of 6 designers and I want to have as much fool proof automation as I can.
I have seen some articles that describe embedding a Macro into the Equation Manager, and then linking the Custom Property to the Custom Variable. I am not sure that this is the most elegant solution either.
Thanks again !
I just saw you said you have a macro that does this lol.
How is your macro executed? Through a button or is it embedded within the equation manager?
Would you be willing to share this script. I understand if you are not comfortable with this.
I don't believe SW has the string function capability in properties.
I think Jeremy's idea of renumbering is the avenue to travel.
Kevin
sure - just rename your cut-list bodies to 1, 2, 3, etc.
Kevin' approach will get you the cutlist item name if that's the only thing you're looking for. You can also combine cut list name with part number to get a combination if you want. For us the weldment file is a part number and the individual cut list items are -XX numbers. So I had to combine the part file number with the cut list item. I put the Value in our weldment template and it propagates to the individual items. I have a macro to rename the cut list items which is nice for larger weldments.
Hey Kevin, Thanks for your response!
That's SO close to what I want!
Is there a way to just get the numerical value Cut-List-Item2
I know that you can append strings but is there a way we can trim strings?
In Excel I would use some sort of a combination of MID() and INSTR() functions.
Is there anything in Solid Works that could do that??
Hello,
You're intermixing part number and cut list item number, so I may not be following you correctly.
But if you want the name of each cut list item linked to each body:
Then create a new property and assign it "Cut List Item Name":
Reference this new property in the drawing:
Kevin