Inventor Engineer-to-Order

Reply
Mentor
bsee1
Posts: 208
Registered: ‎11-14-2011
Message 1 of 2 (186 Views)
Accepted Solution

Intent api bug? (UserInterfaceManager width property)

186 Views, 1 Replies
08-20-2012 08:10 AM

I'm building a user interface which will have multiple panels.  As I change panels, I'd like the new panel to be the same size as the panel it replaces.  I retrieve and store the width of the old panel, run the HideDockableWindows() function, then insert the new panel and set its width to the saved width from the old panel.  However, it isn't the same size.

 

It seems the intent api is measuring the width of a panel by measuring it's distance from the edge of the screen.  This only works if that panel is docked directly to the edge of the screen.  In my case, there is a panel between the one I'm inserting and the edge of the screen.

 

To test, insert a docked panel. Retrieve its width when it is docked to the very edge of the screen, and when it is docked to another window.  You'll notice its width is much larger when docked to another window.

*****************************
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000

Inventor 2013
ETO 6.1
Mentor
bsee1
Posts: 208
Registered: ‎11-14-2011
Message 2 of 2 (122 Views)

Re: Intent api bug? (UserInterfaceManager width property)

09-05-2012 04:43 AM in reply to: bsee1

Anyone building a gui may run into this issue.  I determined this is an Inventor bug, not ETO.  An Autodesk employee has confirmed it.  Follow any updates here: http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Panel-width-bug/m-p/3607214#M40033

*****************************
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000

Inventor 2013
ETO 6.1

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube