Inventor Customization

Reply
Distinguished Contributor
Posts: 146
Registered: ‎06-20-2006
Message 1 of 9 (792 Views)
Accepted Solution

Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

792 Views, 8 Replies
05-05-2011 02:10 PM

I have both Inventor 2011 and 2012 installed on my machine.  I wish to write custom programs when iLogic programming is not an option.

 

Can Visual Basic 2010 Express Edition be used for custom programs for BOTH Inventor 2011 AND Inventor 2012? Inventor 2012 help files suggest installing Visual Basic 2008 Express Edition.

 

Am I correct in understanding that VBA for Inventor won't be supported past Inventor 2012?  I'm trying to make sure that any programming work I do in the near future won't become obsolete in the next year or two.

 

What OTHER Microsoft programming software packages should I consider using for BOTH INV 2011 AND 2012?

 

Any tips, suggestions or errata on this subject would be most welcomed! :smileywink:

Jim Strenk

Inventor 2012 Certified Associate
AutoCAD 2012 Certified Associate

Product Design Suite Ultimate 2012, 2013 & 2014

Other than THAT, Mrs. Lincoln, how was the play??
Illinois: Where we send more Govenors to prison, than on to retirement!
Valued Mentor
Mike.Wohletz
Posts: 375
Registered: ‎07-29-2008
Message 2 of 9 (783 Views)

Re: Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

05-05-2011 08:34 PM in reply to: JimStrenk

You will have no problem doing this with VS 2010 except getting templates to install, beyond that the only thing to remember is to set the .NET frameworks version to 3.5 on any new applications and it will and does work just fine.

 

Distinguished Contributor
Posts: 146
Registered: ‎06-20-2006
Message 3 of 9 (781 Views)

Re: Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

05-05-2011 10:24 PM in reply to: Mike.Wohletz

Wouldn't I set NET Framework to Version 4.0 for Inventor 2012?  And set NET Framework 3.5 for Inventor 2011?

Jim Strenk

Inventor 2012 Certified Associate
AutoCAD 2012 Certified Associate

Product Design Suite Ultimate 2012, 2013 & 2014

Other than THAT, Mrs. Lincoln, how was the play??
Illinois: Where we send more Govenors to prison, than on to retirement!
Valued Mentor
Mike.Wohletz
Posts: 375
Registered: ‎07-29-2008
Message 4 of 9 (770 Views)

Re: Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

05-06-2011 05:13 AM in reply to: JimStrenk

It is possible to do it that way, but  if you are going to use the same application for both versions then just use .NET 3.5.

 

Valued Mentor
Posts: 431
Registered: ‎11-24-2003
Message 5 of 9 (753 Views)

Re: Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

05-06-2011 01:53 PM in reply to: Mike.Wohletz

I've experienced some problems with 2012 and Framework 4.0.  I defaulted back to 3.5.

Distinguished Contributor
Posts: 146
Registered: ‎06-20-2006
Message 6 of 9 (747 Views)

Re: Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

05-06-2011 02:31 PM in reply to: Gruff

Thanks Gruff for the follow-up response.  While INV 2012 works with NET 4.0, you've apparently seen that it doesn't work so well! :smileymad:

Jim Strenk

Inventor 2012 Certified Associate
AutoCAD 2012 Certified Associate

Product Design Suite Ultimate 2012, 2013 & 2014

Other than THAT, Mrs. Lincoln, how was the play??
Illinois: Where we send more Govenors to prison, than on to retirement!
Distinguished Contributor
Posts: 146
Registered: ‎06-20-2006
Message 7 of 9 (745 Views)

Re: Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

05-06-2011 02:42 PM in reply to: Mike.Wohletz

Thanks Mike for your response.  Based on further reading, it appears that we can using different programing languages modify Inventor 3 different ways.

 

1) iLogic

 

2) Inventor VBA

 

3) Visual Basic 2010 Express Edition

 

My follow-up question is this:

 

Under what circumstances or when would I use iLogic, Inventor VBA or VB.net?

Jim Strenk

Inventor 2012 Certified Associate
AutoCAD 2012 Certified Associate

Product Design Suite Ultimate 2012, 2013 & 2014

Other than THAT, Mrs. Lincoln, how was the play??
Illinois: Where we send more Govenors to prison, than on to retirement!
Valued Mentor
Posts: 431
Registered: ‎11-24-2003
Message 8 of 9 (715 Views)

Re: Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

05-09-2011 06:08 AM in reply to: JimStrenk

I can only relate my experice.

 

1) Creating a stand alone VB.NET program that automates Inventor has problems in that you cannot control which inventor you attach to other than a New Inventor session.  Capturing Inventor Events becomes much more difficult.

Finally you develop one step outside Inventor so chasing down bugs is not always easy.

 

2) Creatiung a VB.NET Add-In ensures you are working in the current Inventor Session.  Inventor Events are easily attached to.  Debugging can still be a chore though and I've found writing Add-Ins just plain difficult.

 

3) VBA project (Not inside a part).  Yes it is going away eventually which is too bad as it is a breeze to devekio and debug on the fly.  The controls are old and clunky so visually is looks rough.

 

4) VBA code inside a part file.  Same as above but not so bright IMHO as part has to be loaded for the program to run.

 

5) ILogic.  At first blush iLogic looks to have the same flaws as #4 above.  Recently however I've seen ways to launch external iLogic programs that are not bound to a part.  Further you can call VB.NET compiled DLL's for forms or entire programs.  I find this much  easier than trying to develop an Add-In.

ILogic is the new kid on block so I would look for new capabilities in the near future.  Hopefully they will provide friendlier ways of launching programs.  Having to right click ans select "Run" from the iLogic list is just plain lame.  It should be a single click on the Rule.

 

Mentor
Posts: 255
Registered: ‎12-17-2007
Message 9 of 9 (460 Views)

Re: Can VB 2010 Express Edition be used to program both Inventor 2011 and 2012?

09-29-2011 12:54 PM in reply to: Mike.Wohletz

Anyone know if they have fixed the issue with the templates to install in VB Express 2010 with the release of service pack 1 for inventor 2012?  I did not see anything in the readme.  Kind of at a point here to decide if I should stick with 2008 VB Express or go with 2010.  Will be working on win 7 64-bit machine.  If it's not fixed will probably just run with 2008 still.

 

Thanks,

Katie

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".

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
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

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