Message 1 of 4
Having trouble with DockableWindow SetDockingState()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi. I wish to make a rule that resets the dockable windows when Inventor inevetably forgets their location on startup.
What I want to achieve:
I'm having trouble with the 'ilogic' window in the bottom right.
I'm trying to set the dockingstate to dock to the bottom of the VAULT window.
However, that seems to not be allowed.
Is there anyone that can give me some pointers?
'iLogic Browser "dockable window" information: oInternalName = "ilogic.treeeditor" VaultPane = "vault" ModelPane = "model" oClientID = "{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}" oTitle = "iLogic" For Each oDockableWindow As Inventor.DockableWindow In ThisApplication.UserInterfaceManager.DockableWindows If oDockableWindow.InternalName = VaultPane Then oObject = oDockableWindow oDockableWindow.Width = 250 oDockableWindow.SetDockingState(4) End If If oDockableWindow.InternalName = ModelPane Then oDockableWindow.Width = 300 oDockableWindow.SetDockingState(2) End If If oDockableWindow.InternalName = oInternalName Then If Not oDockableWindow.Visible = True Then oDockableWindow.Visible = True End If oDockableWindow.Width = 250 'The line below breaks on the "1" parameter since it is disabled for that windowtype ("ilogic.treeeditor"). oDockableWindow.SetDockingState(1, oObject) End If Next
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
___________________________