cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Object Browser for iLogic

Object Browser for iLogic

We need an object browser for iLogic, just like the one that can be found in the API window. This would make complex iLogic programming much easier, especially for beginners.

 

Original Author: mrattray   4/17/2013

Capture.JPG

32 Comments
Anonymous
Not applicable

ANYTHING would be helpful.  even making the ilogic window non-modal so we could browse the existing object browser... or just give us a button in the ilogic window to use the browser.

jingyi.liu
Alumni

Hi 

Please refer to below similar idea which has been implemented in Inventor 2018 R3, also refer to Help document for more details.

 

Regards,

Jingyi

Anonymous
Not applicable


That is an excellent step forward!

 

It's related, but not really the same - sometimes we don't know exactly what we are looking for and need to browse.  This still needs to be implemented, but thanks for the link to the updated functionality - it's very nice!

MjDeck
Autodesk

The iLogic objects and interfaces can now be browsed online at:
http://help.autodesk.com/cloudhelp/2019/ENU/Inventor-iLogic/iLogic_API

mrattray
Advisor

This is interesting, @MjDeck, but there seems to be a lot missing from it. On the other hand there's a lot of stuff in there that I didn't know existed. I'll definitely bookmark it as a useful resource, but it's still not a complete resource. For example: if I search for bomstructure the only result is for Autodesk.iLogic.Interfaces Namespace. When I click the link there isn't even a reference to bomstructure on the page.

MjDeck
Autodesk

@mrattray, I think this is complete for iLogic rule objects and API. Let me know if anything is missing.

 

BOMStructure is in the main Inventor API, so you can find it in the Programming Interface help. (Maybe we can merge iLogic with the main API help in a future release. We should at least have links in the iLogic help that point to the API help.)


If I search for "bom structure" (two separate words) in the iLogic help, I see the page you mentioned. That page contains separate occurrences of both the word "BOM" and the word "structure".
But if I originally search for "bomstructure" (one word), that page is not found.

Anonymous
Not applicable

Right, except we sometimes need to access ACTUAL API from iLogic (or at least I do) and you cannot use the API browser while iLogic editor is open.  THAT would be an awesome addition; and what I was aiming at with my previous comment.  Access to THE API browser while the iLogic window is open.

 

Not just iLogic objects, the full list of Inventor objects/methods/properties/etc.

MjDeck
Autodesk

@Anonymous, have you looked at the Programming/API Help? Do you prefer the Object Browser in VBA?
Programming API Help.png

Anonymous
Not applicable

@MjDeck I had not, thanks for that! But yes, I prefer the VBA browser.  Probably old habits/familiarity?  but more options are always nice.

MjDeck
Autodesk

If you want to use the VBA browser, one option would be to start up another session of Inventor just to run it. That's not very efficient, but it is a workaround.
In a future release, we want to make the iLogic editor non-modal. Then you would be able to do other things in the Inventor session while it's up.

rob_bolter
Enthusiast

Just use Visual Studio (Express / Community will work fine - free). Import a reference to Inventor Object Library, then do the following inside the forms load or consoles main() sub.

 

 

Dim ThisApplication As Inventor.Application

ThisApplication = System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")

 

Then write code around that (which will work to automate inventor) with intellisense or just press F2 to view the object browser.

 

That code can then be ported over to iLogic by making some tweaks (Inventor has some of its own "VB").

 

You can even do 

 

Sub Main()

'Code here

End Sub

 

Inside an iLogic rule. Hope this helps, its helped me out in the past.

Anonymous
Not applicable

@rob_bolter Yes, that would be ideal - however I cannot install anything, ever, on pain of pain.  The only reason I can even use iLogic is because no one cares about CAD here.  Otherwise they'd look for some way to lock that down too.

 

@MjDeck yes - I have done that in the past.  Making iLogic non-modal would solve everything handily.  I have no idea what other complications there would be, but it would make some things nice - like copy/paste stuff that's not readily available in the iLogic window...

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea