08-31-2018
12:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-31-2018
12:11 AM
@Anonymous,
Renaming Browserlist is same as renaming PartFeature. So, try below VBA code to rename Features with sequence number.
Sub Main()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oDef As PartComponentDefinition
Set oDef = oDoc.ComponentDefinition
Dim oFeature As PartFeature
Dim i As Integer
i = 1
For Each oFeature In oDef.Features
oFeature.Name = i & "_" & oFeature.Name
i = i + 1
Next
End Sub
Note: if you delete any feature, sequence number will not be consistent.
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
