Inventor won’t reload add-in toolbars!

So here I am toiling away on making some updates to the two apps I have in the Inventor App Store, Swift Prints and Design Notes. I’ve been trying to correct an issue where if a user manually unloads the add-in the custom toolbar will be removed and then when they manually reload the add-in, the toolbar reloads.

Load-Unload

The toolbar does currently unload but a reload does nothing and you have to restart Inventor to get the custom toolbar back again. After fiddling with the code for a few hours, looking through the API documentation, posting to all the forums I know I still couldn’t resolve the issue.

 

 

 

 

 

Then I found this post from 2012.

I’m  add Add button on exists inventor ribbon  tab  After reload my add-in from Inventor buttons is invisible

Please help me solve my problem

The post doesn’t contain a solution, but it did get me thinking. Certainly someone else solved this issue. I was going to try and download another Inventor add-in in the app store to try the behavior. The first one I downloaded had the same behavior as my add-ins and the toolbar didn’t reappear. Ok, fluke… right? Try another… same issue. Try another… same issue… Try another… I couldn’t find a single add-in in the Autodesk App Store (yet) that works correctly.

This is the offending API code:

oPanel.CommandControls.AddButton(m_ButtonDef, True, True)

From what I understand, Inventor does not properly destroy the button definition on unload of the add-in and a subsequent reload will fail because it thinks the button is already on the Ribbon panel.

To all of you who also develop apps, try it out on your add-ins and let me know your results. You can post a reply here or tweet me at @cadtoolbox

 

…for now, my OCD programming prevents me from eating, sleeping or thinking of anything else until I figure this out.

 

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Permanent link to this article: http://cadtoolbox.com/2016/03/07/inventor-wont-reload-add-in-toolbars/

Tip: StackExchange for 3D Printing

If you’re one of those people who is into 3D printing and are looking for a place to ask questions or lend some advice to others, I encourage you to check out 3D Printing Stack Exchange.

The Q&A community dedicated to 3D printing has 588 users and averages 203 visitors per day.

3D Printing Stack Exchange is a question and answer site for 3D printing enthusiasts. It’s 100% free, no registration required.

Some of the typical questions on the community are:

  • Is it possible to use an aftermarket controller on a MakerBot?
  • How small can I expect FDM 3d printers to print?
  • What are the best air filtration options for enclosures?

 

As useful as a resource as StackExchange is, it would also be cool to see a community dedicated to CAD users. Do you agree?

 

VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)

Permanent link to this article: http://cadtoolbox.com/2016/02/16/stack-exchange/

Localhost making you Muy Loco?

Every once in a while I come across one of those handy computing tips that are almost impossible to find but that can relieve hours of headaches. If you’ve upgraded your workstation to Windows 10, use the new Microsoft Edge browser and have a need to create and or test some website designs or other projects locally using your local IIS http://localhost instance, you’ll find that the Edge browser can’t connect.

You might spend hours trying to figure out which firewall setting has it blocked only to discover it’s not firewall related. Microsoft Edge browser runs with network isolation by default for security reasons. To fix the issue, open a command prompt as an Administrator and enter the following command:

CheckNetIsolation LoopbackExempt -a -n=Microsoft.Windows.Spartan_cw5n1h2txyewy

Once you do this, you’ll be able to view localhost from the Edge browser without any issues.

 

 

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Permanent link to this article: http://cadtoolbox.com/2016/02/15/localhost/

My list of go to CAD websites & blogs

We all have our own list of favorite websites related to our jobs that we really can’t do without. Here’s my list of 2015 and the list of those one high on my list that are now those I even forget I have bookmarked. Of course, there is a few dozen more I visit regularly but not on a daily basis.

My 2015 list:

Social Media (in a very particular order)
Twitter Business and networking is what Twitter is all about. It’s an amazing resource for the CAD world.
Facebook It may be the worlds biggest, but that doesn’t mean the best.
Google+ Wouldn’t even make the list if it wasn’t for the Community functionality. The Google+ Inventor community is a truly remarkable tool for all of you Inventor users out there.

Autodesk Discussion Forums
The only discussion forum worth visiting with it’s fast responses and built in experts. If you don’t know who JD Mather is, you’re missing out.

Autodesk BETA
I would love to tell you more about the Autodesk beta program but I can’t. Just go check it out yourself.

Design & Motion
These guys obviously have figured out a way to add an extra day to the week or a few hours to each day. Scott Moyse, John Evans  and the rest of the D&M crew are content machines with new goodies coming out almost daily.

CADSetterOut
Paul Munford is yet another non-stop CAD ninja. Between his blog, forum posts, social media presence and published books I think Paul and Chuck Norris are in the same category.

 

Falling off the wagon this year:

CADtoolbox.com
Yes, I added my own forum to the declining list. My lack of fresh posts and content is obvious. Let’s hope the trend turns around and I get back on the CAD saddle soon. Honesty is always the best policy.

mCADForums
The once dominate forum was purchased by Sold Smack and as a forum in a social media world… it’s struggling to stay relevant. With most posts with just a few replies, you can see only the hard core anti hashtaggers stuck around.

 

So what sites do you visit regularly?

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Permanent link to this article: http://cadtoolbox.com/2015/09/28/my-list-of-go-to-cad-websites-blogs/