Hello,
up to SW2013 it was easy to create a custom property of the thickness of sheet metal part by entering "Thickness@Sheet-Metal1". However, on newer versions (I am on SW 2014) this is not working anymore. I have found a few threads in this forum and elsewhere trying to find a solution, but they all ended up at dead end. Can anything be done to access this thickness? Maybe it is possible to access it as value of an object, by creating a macro script - to write a final value of the thickness to the custom property?
Thank you for the ideas
SolidworksSheet Metal
Hello Ben,
On custom property tab under "Value/Text expression" drop down select "thickness".
The global variable will be automatically created by solidworks whenever sheetmetal feature is used.
Look in the model tree under "Equation" -> "Global Variables".
Thanks,
Joseph.I
Hello Joseph,
thank you for your advice, it worked I also wrote a macro which checks if there is a flat pattern in the feature tree, and if it is - it creates/updates custom property "thickness" and its value. If flat pattern doesn't exist, it creates/updates custom property "thickness" with value "Not sheet metal". Macro runs on every save or "save as", so I always have the updated custom property despite of initial part condition.
Thank you for your help!
I have also noticed that after the sheet metal feature is created, the thickness can be defined in custom property this way:
"Thickness@Sheet-Metal@part_name.SLDPRT"
No need to jump through any hoops, just remove the "1"
Thickness@Sheet-Metal
Kenneth, thank you for the input. It is the easiest way to get the thickness. I changed the correct answer to yours, because that is the most accurate and the easiest way to achieve the solution. I hope other forum gentlemen won't mind for this. Thank you!