Set DockableWindows dock and size

Set DockableWindows dock and size

Frederick_Law
Mentor Mentor
274 Views
1 Reply
Message 1 of 2

Set DockableWindows dock and size

Frederick_Law
Mentor
Mentor

Inventor always forgot iLogic windows location and size.

I tried to use a rule to put them back.

DockableWindows-02.jpg 

 

I can't set the Log windows under iLogic window.

Can't change height of either windows.

 

Sub Main()
'kDockBottom	1	Dock To bottom.
'kDockLastKnown	32	Docking To the last know state.
'kDockLeft		2	Docking To left.
'kDockRight		4	Docking To right.
'kDockTop		8	Docking To top.
'kFloat 		16	floating.

Dim oDockingState As DockingStateEnum
Dim oDockToObject As Object
Dim ologgerWindow As DockableWindow
Dim otreeWindow As DockableWindow

otreeWindow = ThisApplication.UserInterfaceManager.DockableWindows.Item("ilogic.treeeditor")
otreeWindow.GetDockingState(oDockingState, oDockToObject)
'otreeWindow.SetDockingState(kDockRight, oDockToObject)
otreeWindow.Height = 218
otreeWindow.Width = 230
otreeWindow.Visible = True
'otreeWindow.Top = 115
'otreeWindow.Left = 1600

ologgerWindow = ThisApplication.UserInterfaceManager.DockableWindows.Item("ilogic.logwindow")
'ologgerWindow.SetDockingState(kDockRight, oDockToObject)
ologgerWindow.Height = 694
ologgerWindow.Width = 230
ologgerWindow.Visible = True
'ologgerWindow.Top = 358
'ologgerWindow.Left = 1600
End Sub
0 Likes
275 Views
1 Reply
Reply (1)
Message 2 of 2

yuzeaa
Advocate
Advocate

@Frederick_Law  The window position of Inventor is always stored in the registry. You can read and modify the registry before displaying the window to change its position and size.Try to use the Process Monitor tool to monitor registry write actions of 'Inventor.exe' in an attempt to locate the registry options for the iLogic window

11111111.PNG333333.PNG