Professional Documents
Culture Documents
Presentation 20619 SD20619-BOWSER-AU2016
Presentation 20619 SD20619-BOWSER-AU2016
Presentation 20619 SD20619-BOWSER-AU2016
© 2016 Autodesk
Key learning objectives
Learn how to capitalize on the Inventor API Help to transfer VB.NET skills to the
Inventor API
Learn how to identify and utilize resources available for advancing your
programming knowledge
Learn how to debug programs directly within the iLogic interface using a debug
viewer
© 2016 Autodesk
Introduction
© 2016 Autodesk
Speaking the Language
© 2016 Autodesk
Learning a programming language
© 2016 Autodesk
VB.NET
© 2016 Autodesk
Why VB.NET?
Simplicity
English-based Syntax (conversation like)
Compare the following samples:
VB.NET Sample C# Sample
Dim i As Integer For (Int i=0; i<=100; i++)
For i = 0 To 100 {
If i = 7 Then If (i == 7) {
MessageBox.Show(i) MessageBox.Show(i);
End If }
Next }
© 2016 Autodesk
Why VB.NET?
Flexibility
iLogic is based on the VB.NET language
© 2016 Autodesk
Where can I learn VB.NET
© 2016 Autodesk
Beyond the Programming Language
© 2016 Autodesk
Let’s Talk Semantics
© 2016 Autodesk
What is the Inventor API
© 2016 Autodesk
What is iLogic?
Inventor Add-In
Included with Inventor
© 2016 Autodesk
Additional iLogic Functionality
© 2016 Autodesk
iLogic versus the API
Inventor
iLogic
API
Functions
Response exposed
Request
to the API
VB.NET
© 2016 Autodesk
Advantages of working outside of iLogic
© 2016 Autodesk
Which one is Best for you?
© 2016 Autodesk
Transferring VB.NET Skills to Inventor
© 2016 Autodesk
Help available from Autodesk
© 2016 Autodesk
API Help Documentation
© 2016 Autodesk
API Help Documentation
Contents
Inventor API User’s Manual
Provides a look at Inventor ‘Behind
the Curtain’
Inventor API Reference Manual
Lists all Objects and Enumerators
Sample Programs
Demonstrate how to implement
© 2016 Autodesk
API Help Documentation
Index
Lists the Objects and their
Methods and Properties
Search
Allows you to search the
entirety of the Help file
© 2016 Autodesk
API Help Documentation
Object Name
Description
Methods
Behaviors
Properties
Data
Samples
© 2016 Autodesk
Help available from Autodesk
© 2016 Autodesk
Inventor API Object Model
oSheet.DrawingNotes.LeaderNotes.Item(1)
© 2016 Autodesk
Additional Resources available
1. Manufacturing DevBlog
http://adndevblog.typepad.com/manufacturing/inventor/
2. Mod the Machine
http://modthemachine.typepad.com/
3. From the Trenches with Autodesk Inventor
http://inventortrenches.blogspot.com/
4. Autodesk Knowledge Network
https://knowledge.autodesk.com/
5. Autodesk Inventor Customization Forum
http://forums.autodesk.com/...
© 2016 Autodesk
Debugging iLogic
© 2016 Autodesk
What is Debugging?
© 2016 Autodesk
Debugging iLogic
System.Diagnostics.Trace.WriteLine(“string")
© 2016 Autodesk
Debugging iLogic
Debug View
Monitoring tool available
from Microsoft
technet.microsoft.com
© 2016 Autodesk
Debugging iLogic Demonstration
© 2016 Autodesk
Summary
© 2016 Autodesk
How did I do?
Your class feedback is critical. Fill out a class survey now.
© 2016 Autodesk
More Questions? Visit the AU Answer Bar
Seek answers to all of your technical product questions
by visiting the Answer Bar.
© 2016 Autodesk
Autodesk is a registered trademark of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. Autodesk reserves the right to alter product and services offerings, and specifications and pricing
at any time without notice, and is not responsible for typographical or graphical errors that may appear in this document. © 2016 Autodesk, Inc. All rights reserved.
© 2016 Autodesk. All rights reserved.