01-13-2017
01:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-13-2017
01:45 AM
Got a comment from a colleague that you could also try just simply running the "Update" command synchronously from your original code:
http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html
I assume that would be the "AssemblyGlobalUpdateCmd":
Public Sub RunUpdateCommand()
' Get the CommandManager object.
Dim oCommandMgr As CommandManager
Set oCommandMgr = ThisApplication.CommandManager
' Get control definition for the line command.
Dim oControlDef As ControlDefinition
Set oControlDef = oCommandMgr.ControlDefinitions.Item( _
"AssemblyGlobalUpdateCmd")
' Execute the command.
Call oControlDef.Execute2(True)
End Sub
More info on Execute and Execute2:
http://adndevblog.typepad.com/manufacturing/2015/02/execute-vs-execute2-of-controldefinition.html

Adam Nagy
Autodesk Platform Services