09-21-2016
06:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-21-2016
06:52 AM
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