Inventor Customization

Posts: 199
Registered: ‎02-25-2013
Message 11 of 16 (297 Views)

Re: Programming Inventor: VBA C# or C++?

03-01-2013 10:45 PM in reply to: bsee1

An interesting reply, but C# and VB are NOT very similar. VB is an old language with pecularities because of its decades long history. C# is a new, clean, and well designed language. Maybe you meant that their capabilities WRT Inventor are similar. Thay may be true.


C++ is not "much lower level". C++ can be as high level or low level as the programmer decides. That is its good point and bad point. It is certainly more sophisticated than C# and VB.


You are right to be concerned about the apparent lack of examples in C++. C# has more, but neither as has many examples as VB.


But you've made me think that maybe C# would be a better choice for this project than C++.


Posts: 11
Registered: ‎02-22-2013
Message 12 of 16 (284 Views)

Re: Programming Inventor: VBA C# or C++?

03-03-2013 09:27 PM in reply to: oransen

Hey I am currently working on a programme taking advantage of Inventor API with VC++.


That is a standalone application which will take a sketch (or a working plane) as input, mesh the area with Bubble packing and dig wholes on the plane.


This is a big project and I am on the start. But as you might see, there are few material on C++ with Inventor API. If you decide to implement your project with C++, pls contact me. It is always a good thing to have some one working together.



Posts: 199
Registered: ‎02-25-2013
Message 13 of 16 (282 Views)

Re: Programming Inventor: VBA C# or C++?

03-03-2013 09:55 PM in reply to: MegaJerk

"I do not know what ObjectARX" is the C++ API for AutoCAD. It was well designed and I wrote a few apps with it.


Thanks for the good wishes on my journey, it feels like I'll need them!


Posts: 199
Registered: ‎02-25-2013
Message 14 of 16 (280 Views)

Re: Programming Inventor: VBA C# or C++?

03-03-2013 09:58 PM in reply to: DifanH

"It is always a good thing to have some one working together."


Will do. The project is at an early stage and may not take some time to get. In the meantime I suppose I could write another book like my "AutoCAD programming in C/C++"


Why do you think there is so little data on C++ programming Inventor?



*Expert Elite*
Posts: 528
Registered: ‎03-29-2007
Message 15 of 16 (169 Views)

Re: Programming Inventor: VBA C# or C++?

09-30-2013 06:00 AM in reply to: oransen

My perspective - C++ was one of the first languages I seriously learned and I still love it. I have for some applications made the transition from C++ to C# and even VB.NET. However, I still miss the full power of C++. In C++ you have incredible control over the creation and even the layout of your objects as you already know. You can create an object on the stack, on the heap, or even in a particular place in memory.


With C# however you give up that level of control. When you choose the type of your object, the choice of where the object will be is implicit. Simple types are always created on the stack and classes are always created on the heap. You can't control where on the heap an object is created, you can't get its address, and you can't pin it down in a specific memory location. You no longer control the lifetime of your object as C# has no destructor. It's all up to the garbage collector and finalization is non-deterministic. In C# everything ultimately derives from Object.


Having said that C# was an easy transition and it has a portion of C++ power with the simplicity of VB. For Inventor applications I’d suggest VB.NET for those more familiar with VB, but if you have a C++ soul in you – shoot for C#.

Jonathan D. Kriek

Autodesk Inventor Certified Expert
Microsoft Certified Application Developer
Did I help you? Please choose Accept as Solution or Kudos below
Posts: 199
Registered: ‎02-25-2013
Message 16 of 16 (141 Views)

Re: Programming Inventor: VBA C# or C++?

10-01-2013 03:35 AM in reply to: jdkriek

All you say about C# is true, but I don't find them as objections but as good simplifications.


C++ is a better choice maybe for applications you want to sell.



You are not logged in.

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

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

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