Open iLogic Browser using iLogic

Open iLogic Browser using iLogic

DRoam
Mentor Mentor
2,061 Views
6 Replies
Message 1 of 7

Open iLogic Browser using iLogic

DRoam
Mentor
Mentor

I have a local rule in a part that's triggered by an Event Trigger. When this rule runs, I want it to open the iLogic Browser if it isn't already. Is this possible?

0 Likes
Accepted solutions (2)
2,062 Views
6 Replies
Replies (6)
Message 2 of 7

bradeneuropeArthur
Mentor
Mentor

What do you mean with I-logic Browser?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 7

DRoam
Mentor
Mentor

I mean the iLogic "pane". It's called the iLogic Browser. I can turn it on manually in one of two ways:

 

  1. From "Manage" tab --> "iLogic" panel --> "iLogic Browser" button, or,
  2. From "View" tab --> "Windows" panel --> "User Interface" dropdown --> Check "iLogic Browser"

I'm wondering if instead there's some iLogic code that can display it automatically.

0 Likes
Message 4 of 7

philip1009
Advisor
Advisor

I think it might be through:

 

ThisDoc.Document.BrowserPanes.Add(Name As String, InternalName As String) As BrowserPane

 

If this is correct, then we just need to find out what the names are for the iLogic Browser.  I don't want to assume you're workflows, but it might be easier to just tell people where the browser is.

 

0 Likes
Message 5 of 7

DRoam
Mentor
Mentor

Good suggestion, @philip1009. I did some investigating by opening up the iLogic browser and running the following code, to see if it would reveal the name of the iLogic browser:

 

For Each oBrowserPane In ThisDoc.Document.BrowserPanes
	MessageBox.Show(oBrowserPane.Name)
Next

...It worked, but the only names it showed were "Favorites" and "Model", so apparently the iLogic browser isn't part of a document's "BrowserPanes" collection, even if it's open.

 

(Oh and yes, just telling people to open it would be simple enough, but we're automating several other things with this rule and we'd like to automate opening the iLogic browser as well, if possible).

 

Any more suggestions?

Message 6 of 7

philip1009
Advisor
Advisor
Accepted solution

Found it:

 

SyntaxEditor Code Snippet

For Each oDockableWindow As DockableWindow In ThisApplication.UserInterfaceManager.DockableWindows
	MessageBox.Show(oDockableWindow.Title)
Next

DockableWindows.Add( ClientId As String, InternalName As String, Title As String ) As DockableWindow

Message 7 of 7

DRoam
Mentor
Mentor
Accepted solution

@philip1009 you're the man! That got me on the right track. It seems that the iLogic Browser "dockable window" already exists and so doesn't need to be added; it only needs to be made visible. Here is what I ended up with:

 

'iLogic Browser "dockable window" information:
oInternalName = "ilogic.treeeditor" oClientID = "{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}" oTitle = "iLogic" For Each oDockableWindow As Inventor.DockableWindow In ThisApplication.UserInterfaceManager.DockableWindows If oDockableWindow.InternalName = oInternalName Then If Not oDockableWindow.Visible = True Then oDockableWindow.Visible = True End If End If Next

Instead of checking for the correct Internal Name, it could instead check the Client ID or title. I felt like the internal name would be the most stable--totally a guess and I could be wrong. If anyone has issues with that, try checking for the correct Client ID or title instead.