Get "True-VB.Net" code from iLogic

Get "True-VB.Net" code from iLogic

Maxim-CADman77
Advisor Advisor
332 Views
1 Reply
Message 1 of 2

Get "True-VB.Net" code from iLogic

Maxim-CADman77
Advisor
Advisor

@MjDeck , @JelteDeJong

I'd like to know how to convert iLogic code to true-VB.Net code (meant not using any Autodesk.iLogic. ... libraries).

Recently I've converted my favorite iLogic Rule to addin but it keeps two iLogic references:

1. Autodesk.iLogic.Interfaces (ICadDoc interface).

2. Autodesk.iLogic.Runtime (CadDoc class and InputListBox function).

 

I'd like to know what "generic"-items should I use instead of those iLogic-items listed in brackets to get "true" VB.Net code.

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Accepted solutions (1)
333 Views
1 Reply
Reply (1)
Message 2 of 2

Michael.Navara
Advisor
Advisor
Accepted solution

ICadDoc interface and its implementation in CadDoc class provided by ThisDoc variable in rule is wrapper for Inventor.Document with some added functionality. I usually use just ThisDoc.Document. How to obtain this see Accessed From part of page mentioned above.

InputListBox function has no equivalent in .NET and you need to implement your own. For example create custom form with WinForms and use them instead.

 

 

0 Likes