Start up top, you need the sheet metal style in use for the part file.
First you start at the PartComponentDefinition, and realize that a Sheet Metal part inherits that but calls it the SheetMetalComponentDefinition. This is acquired like so:
dim smcd as SheetMetalComponentDefinition = thisapplication.activedocument.definition 'assuming active document is a sheet metal part file
Next you want the style in use that holds the properties:
dim smStyle as SheetMetalStyle = smcd.ActiveSheetMetalStyle
The style contains the properties for all the Bend data defaults.
Next you need to verify if the designer, used the default bends or overwrote them per bend feature.
smcd.Features is the list of all features in the part file. They are browken down into feature types of their own collections so smcd.Features.BendPartFeatures (which may be the standard bend and not the sheet metal bend or both, please verify), or you can just brows the list of features and ask each one it's type:
for each feat as PartFeature in smcd.Features
if feat.type = kBendFeatureObject then
'you now have a bend feature
dim oBendFeature as BendFeature
dim oBendDef as BendDefinition = oBendFeatures.Definition
dim bRad object = oBendDef.BendRadius
end if
Next
From there you should be able to accomplish your goals.
Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/