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

Some example code. I've left out a couple things for reasons so assume that the import function works as is (aside from the whole 'nothing' issue)

 

SyntaxEditor Code Snippet

Sub Main()
    
    IMPORTED = False
    ResetValues()
    InventorVb.DocumentUpdate()
    System.Threading.Thread.Sleep(10000)
    ImportValues()
    InventorVb.DocumentUpdate()
    MessageBox.Show("New design imported.", "Fini.",MessageBoxButtons.OK)
    IMPORTED = True
    
End Sub

Sub ResetValues()
    Parameter("ABC1") = ""
    Parameter("EFG2") = 0
    Parameter("RTU3") = False
End Sub

Sub ImportValues()
    'OUTPUT VARIABLE SETUP IS REMOVED BUT FUNCTIONS CORRECTLY
    output = '.DLL CONNECTION'
    
    ABC1 = output(1)
    EFG2 = output(2)
    RTU3 = output(3)
    
End Sub