Unable to found documentation for c#

Unable to found documentation for c#

PizzolatoDavide
Participant Participant
3,725 Views
7 Replies
Message 1 of 8

Unable to found documentation for c#

PizzolatoDavide
Participant
Participant

I am trying to get started using the APIs with Inventor, but I am having trouble finding the documentation for c#.

I only find tutorial for vba. (Is there still someone developing in vba?)

I haven't even found books that talk about it, can you tell me someone?

I spent the last two days looking for some documentation but I did not find anything exhaustive.

Can you help me?

Thanks.

0 Likes
Accepted solutions (1)
3,726 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable

With Inventor, the push seems to still be towards VB. Especially with the enhancements on iLogic and the internal IDE.

The logic shown in the VBA sample still translate to vb.net and c# with the necessary language differences. You can also look at a few of the customization blogs (some dating back to 2011) to get decent snippets in c#.

0 Likes
Message 3 of 8

PizzolatoDavide
Participant
Participant

Is there no other way?

Isn't there any newer guide?

0 Likes
Message 4 of 8

MechMachineMan
Advisor
Advisor

The only thing the API documentation lacks is samples. If you understand C# good enough, I don't see why you shouldn't be able to piece things together using your knowledge of the language and the API Object overview alone.

 

Why must you program in C# if you are in such need of samples? To me, it would make sense to just utilize the language that has samples or further develop your mastery of the language you wish to program in...


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 5 of 8

richard.joseph.pollak
Advocate
Advocate

I recently started using C# instead of Visual Basic because I'm developing an add-in that I want to communicate with an ASP.NET web api and want to try to keep the language consistent through both projects.

 

What are you trying to accomplish? I can try to point you to resources I've found. They're sparse, but they are out there.

0 Likes
Message 6 of 8

PizzolatoDavide
Participant
Participant

Do you have some links please?

0 Likes
Message 7 of 8

richard.joseph.pollak
Advocate
Advocate
Accepted solution

@PizzolatoDavidewrote:

Do you have some links please?


I need to know what you're trying to do with the API to provide relevant links. Are you writing an add-in? Are you making an iRule? What do you want your project to do? The API documentation included with Inventor has all the information for C#. It just doesn't have good examples.

 

Here is a good general resource:

Mod The Machine: C#

Mode The Machine: Using C# With The Inventor API

 

If you give me more information about what you're trying to accomplish, I can try to be more helpful.

I agree with @MechMachineMan that you're better off using Visual Basic unless you have a compelling reason to use C#.

Most Inventor API resources are catered to Visual Basic. It's an easier language for a beginner programmer too.

Good luck!

Message 8 of 8

mslosar
Advisor
Advisor

Thanks for that.

 

Too bad he never dim BomExport though.

0 Likes