Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Inventor 2018 and Dockable Windows

nmunro
Collaborator

Inventor 2018 and Dockable Windows

nmunro
Collaborator
Collaborator

The improvements to the behavior of dockable windows in Inventor 2018 are mostly welcome. There is one rather big issue though. Dockable windows that contain a winform as the child control are severely hampered because they are no longer resizable by the user when the window is undocked. You can get temporary control by switching to a dockable window containing a user control (i.e iLogic) and resizing that window. You can then resize the winform based dockable window as long as you have no interaction with the form itself.

 

Converting to user control as the child solves the resizing issue. However, a user control means there are all kinds of issues with the user interface when compared to using a windows form, mostly involving a large amount of work to fix navigation and keyboard issues.

 

Dockable windows with a winform child control worked without issue in at least the last four Inventor versions. Can we get this fixed?

 

Neil

 

        


https://c3mcad.com

0 Likes
Reply
1,110 Views
6 Replies
Replies (6)

GeorgK
Advisor
Advisor

Is there a sample code for the dockable window for 2018?

0 Likes

AlexFielder
Advisor
Advisor

@GeorgK: DockableWindows Object

 

@nmunro: I've been working on an add-in that contains a DockableWindow with a child UserForm that displays textboxes for "Live" iProperties inside Inventor 2017; are you saying it doesn't work inside Inventor 2018** then or simply that it doesn't behave "normally" once undocked? I'm asking because I've also been investigating using a UserControl with little success.

 

I know @Boorda has a working example with a UserControl here; I wonder if he has had a chance to test it inside the new release yet?

 

 

**during what little I have used 2018 so far, I noticed a small bug with the way the built-in DockableWindows behave when you snap/(stack?) them to/on the edge of a monitor, but have yet to properly document/log it; when I've finished my current tranche of project work I'll stick a Screencast together showing the issue.

0 Likes

Boorda
Advocate
Advocate

Hey @AlexFielder, thanks for the mention. I haven't had a chance to play around in 2018 yet, but I will do so soon.
I'll run my example dockable window add-in in 2018 and see how it acts. I'm also still working on the WPF Add-in template I promised.

 

@nmunro what kind of issues are you experiencing with navigation and keyboard when using the UserControl?


Automation is key!
0 Likes

jaipac
Explorer
Explorer

I have an issue with the dockable window in an Inventor Add-in. I have created a WPF user control inside windows Form and that works fine in Inventor 2017. Now, In 2018, I'm unable to write directly in text boxes. I can copy, paste and delete, but not to insert text directly from the keyboard.

 

Anybody have a solution to this issue? 

 

Thanks,

 

Jaime Pacheco

0 Likes

chandra.shekar.g
Autodesk Support
Autodesk Support

Hi @jaipac,

 

Can you please provide AddIn source code to test?

 

Please make sure that source code is non confidential one. 

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes

lando7189
Advocate
Advocate

I found this and it worked:

 

https://stackoverflow.com/questions/706358/net-how-to-convert-a-windows-form-to-a-windows-control

 

Just open the .Designer.vb file and change the inheritance from 'Form' to 'UserControl' and fix the few errors that show up (for me it was commenting out the 'FormBorderStyle', 'ShowInTaskBar', and 'ShowIcon').  Totally worked great.

 

HTH - Lanny

0 Likes