Are you sure you want to do it for drawing?
Because, there is alredy a provision to set browser node in an assembly and I think it will be replicate same in drawings browser.
Thank you @bhavik4244 ,
Unfortunately, Alpha Sort Component doesn't work for drawings, not even for parts only for Assemblies.
Its name says it's for components, not nodes.
Does anyone know how to sort nodes by name?
Quickest way would be to use CommandManager. You have to find the BrowserFolder as a BrowserNode, select it, and execute the command:
Dim bPane As BrowserPane = ThisDoc.Document.BrowserPanes.Item("Model")
Logger.Trace(bPane.Name)
Dim resourceNode As BrowserNode = bPane.TopNode.BrowserNodes.Item("Drawing Resources")
Logger.Trace(resourceNode.BrowserNodeDefinition.Label)
Dim tbNode As BrowserNode = resourceNode.BrowserNodes.Item("Title Blocks")
Logger.Trace(tbNode.BrowserNodeDefinition.Label)
tbNode.DoSelect
ThisApplication.CommandManager.ControlDefinitions.Item("DrawingResourceSort").Execute
Let me know if you have any questions, or if this is not working as intended