Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, i'm trying to renumber the itens in the Strucured View in a Assembly with a VBA Macro.
But with this line of code:
Dim oAsm As AssemblyDocument
Set oAsm = ThisApplication.ActiveDocument
Dim oBOM As BOM
Set oBOM = oAsm.ComponentDefinition.BOM
oBOM.StructuredViewEnabled = True
oBOM.StructuredViewFirstLevelOnly = False
Dim oBOMView As BOMView
Set oBOMView = oBOM.BOMViews("Structured")
oBOMView.Renumber(1, 1)
I got an error called "Compile error: Expected : =".
Can someone tell me how i renumber the itens in the structured view of an assembly with VBA?
Solved! Go to Solution.