I am able to retrieve Trim/Extend features by:
- Getting all IFeature objects where GetTypeName2() is "WeldCornerFeat"
- Calling each feature's GetDefinition() method to get an IWeldmentTrimExtendFeatureData object.
Unfortunately, I cannot see any methods or properties for gap options in IWeldmentTrimExtendFeatureData.
I have also considered deleting and recreating the feature with IFeatureManager::InsertWeldmentTrimFeature2(), but I cannot get other required information from the IWeldmentTrimExtendFeatureData, including:
- Bodies to be Trimmed - Allow extension (swWeldmentTrimExtendOption_AllowTrimmedExtensionTrim)
- Trimming Boundary - Allow Extension (swWeldmentTrimExtendOption_AllowTrimmingExtensionTriAm)
- Trimming Boundary - Simple / Coped Cut (swWeldmentTrimExtendOption_CopedCut)
- Trimming Boundary - Weld Gap (swWeldmentTrimExtendOption_WeldGap)
Ideally, I would like to be able to edit the feature and be able to change the weld gap options and not have to recreate it, but any ways to do this would be welcome!
Thanks
SolidworksApi macros