Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
314 Views, 1 Reply

sequence number before actions at Browser list

does Inventor have the function that shows the sequence umber before actions at the browser panel?

like the below picture shows:, this will helps me a lot to modify the a big file which may has hundreds steps. thanks. 

无标题.png

 

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