I have recently been creating a single file of about 200+ configurations of a sheet metal part.
My company plans to upgrade to solidworks 2020 in a month or two and am trying to get ahead on figuring this out.
I need to include the blank size of my part in a custom property. There are two givens for my blank size that I can get easily(gauge and length) and I need the third that tells me what the width is when it is flattened.
Is there a way to get this dimension with perhaps using the bounding box? I would like to automate this process if possible instead of manually going through each 200+ configurations and figuring out the details.
I am on 2017 currently and the bounding box is available for 2018 and up.
I’m assuming you’d want each of these properties to update dynamically as well? I know that manually doing this 200 times is tedious, but you could just create a new custom property and link it to:
I was looking into this “@@@” format and it seems like this is a cutlist property callout?
This doesn’t work for my 2017 version at the moment and will need to wait another month or two before I can upgrade and apply this.
Unfortunately you’ll have to manually add these properties after you know the cutlist and part names, unless you invoke some sort of API, but that wouldn’t be trivial
Can anybody upload a part, where this works? Can’t get it working and don’t know how to link Bounding Box -dims to properties in sheet metal parts. I’m using SW 2022.
Added some rows to the macro and looks better now:
Sub Init(Optional dummy As Variant = Empty)
Set Map = New Collection
Map.Add CreateMapValue("T1", "Sheet Metal Thickness", "")
Map.Add CreateMapValue("W1", "Bounding Box Width", "")
Map.Add CreateMapValue("L1", "Bounding Box Length", "")
End Sub
To the end of main sub:
Dim newVal2 As String
newVal2 = "PL$PRP:" & """T1""" & " .. $PRP:" & """W1""" & " x $PRP:" & """L1"""
swTargetCustPrpMgr.Add2 "Dim2", swCustomInfoType_e.swCustomInfoText, newVal2
swTargetCustPrpMgr.Set "Dim2", newVal2
Remember upgrade custom properties from old documents (possible with SW2022 ->).