Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
chandra.shekar.g
in reply to: Anonymous

@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