ilogic Help Please BOM Work Features

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following code and use them with an event Trigger before save.
I am wondering if anyone can help me piece together ilogic that I can do the Other to Both Parts & Assemblies regardless of the BOM
So what I need is ALL the visiblity of WORK FEATURES OFF and 'ZOOM to EXTENTS and BOM REORDER BY PARTNUMBER
_____________________________________________________
i = MessageBox.Show("Reorder the BOM by PartNumber", "My iLogic Dialog", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1)
'sort parts list
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
Dim oPartsList1 As PartsList
oPartsList1 = oDrawDoc.ActiveSheet.PartsLists.Item(1)
'If oPartsList1 Is Nothing Then Resume Next
oPartsList1.Sort("PART NUMBER")
oPartsList1.Renumber
_______________________________________________
'zoom Extents Code
ThisApplication.CommandManager.ControlDefinitions.Item("AppIsometricViewCmd").Execute
'BOM ReOrder
________________________________________________