Anonymous
314 Views, 1 Reply
08-28-2018
01:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-28-2018
01:13 AM
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.
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
