Listview to iLogic

Listview to iLogic

Anonymous
Not applicable
529 Views
3 Replies
Message 1 of 4

Listview to iLogic

Anonymous
Not applicable

I have been searching for an answer to this and so far I've come up with nothing. I am trying to find out if it's possible to populate a listbox in vb.net and import that date into ilogic. I can create the listbox from the excel file, but from there I'm stumped. I'd appreciate any help. Thanks

0 Likes
530 Views
3 Replies
Replies (3)
Message 2 of 4

Owner2229
Advisor
Advisor

Hi, first let us sort up some things:

1) By VB.Net you mean an AddIn or standalone application?

2) By iLogic you mean a rule, userform, parameter or iProperty?

 

You can't pass any parameters to iLogic rules, so if that's the case, you'll have to either use some kind of flag, or move all your code to the rule, VBA makro or an AddIn.

 

Basically, this is how to create a listbox in iLogic and use it to populate the Part Number:

 

Dim partNumbers As New ArrayList
partNumbers.Add("A025")
partNumbers.Add("B050")
partNumbers.Add("C075")
iProperties.Value("Project", "Part Number") = InputListBox("Part Number", partNumbers, iProperties.Value("Project", "Part Number"), Title := "Part Number", ListName := "Part Number")

 

Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
0 Likes
Message 3 of 4

Anonymous
Not applicable

Thanks for the reply. Right now I am using a stand alone GUI that I've used to populate a list view from excel cells and now I would like to pass those values to parameters in an Inventor assembly. 

0 Likes
Message 4 of 4

rikard.nilsson
Collaborator
Collaborator
Hi,


Here is a blog post how to control parameters with a form inside an iLogic rule.

http://adndevblog.typepad.com/manufacturing/2013/06/use-vbnet-dialog-in-ilogic.html

But if you have an standalone application. Why don't you write directly from the form to the assembly with ordinary API?

Regards
Rikard
0 Likes