Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
adam.nagy
in reply to: Anonymous

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