
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all
I was like a kid to VB programming... and i copied one of the program from this forum for renaming fllets... But it was always giving an error...
So can any one help me out from this please...
Sub changeFilletname()
Dim ptDoc As PartDocument
If ThisApplication.ActiveDocument.DocumentType <> kPartDocumentObject Then
MsgBox "please open a part document"
Exit Sub
End If
Set ptDoc = ThisApplication.ActiveDocument
Dim Fillet As FilletFeature
Dim j As Integer
Dim prefix As String
prefix = "Fillet_"
j = 1
For Each Fillet In ptDoc.Feature.FilletFeatures
Fillet.Name = prefix + IIf(j < 10, "0" + CStr(j), CStr(j))
j = j + 1
Next
End Sub
Solved! Go to Solution.