Hi all,
Tried searching all the usual places for a macro that does this but no luck.
I'd like a macro please that scans through a Part feature tree, identifies all Fillet features (only needs to be constant radius fillets for simplicity) and updates the feature description to read as the radius specified in the feature in the format "R<dim>", per example below.
Doesn't need to automatically update if the fillet changes or anything like that, happy to risk things being occasionally out of date. Would just like a quick visual way of identifying which fillet is which in the tree please.
Fillet Feature Description (macro request)
-
- Posts: 321
- Joined: Thu Mar 11, 2021 8:38 am
- x 48
- x 390
Re: Fillet Feature Description (macro request)
I found these two posts in the swamp. Maybe they will help.
https://r1132100503382-eu1-3dswym.3dexp ... lZFr7X6Vow
https://www.codestack.net/solidworks-ap ... type-name/
https://r1132100503382-eu1-3dswym.3dexp ... lZFr7X6Vow
https://www.codestack.net/solidworks-ap ... type-name/
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: Fillet Feature Description (macro request)
You can get the fillet radius with
Dim swFilletFeatData As SldWorks.SimpleFilletFeatureData2
swFilletFeatData.DefaultRadius
looks like radii are stored as metric meters
This will change the feature description
swFeature.Description = "Change"
Dim swFilletFeatData As SldWorks.SimpleFilletFeatureData2
swFilletFeatData.DefaultRadius
looks like radii are stored as metric meters
This will change the feature description
swFeature.Description = "Change"
- Attachments
-
- Feat Fillet Desc as Radius Dim.zip
- (8.55 KiB) Downloaded 9 times