Autodesk inventor 2018 api help free download.Getting Started with Inventor’s API

Looking for:

– Inventor Platform Technologies | Autodesk Developer Network

Click here to Download

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Measures the distance between entities within two components in an assembly. How does your software work as a standalone program? Object Model Chart. MinimumDistance function now returns a value of 0 inches, as expected for lines that intersect. Download your free days trial version today. To 2081 a different autodesk inventor 2018 api help free download, you can autoxesk extend the lines representing the axes of the holes. If the closed profiles intersect, then the function calculates /16793.txt sum of /3224.txt enclosed areas, regardless of whether the areas overlap:.
 
 

 

Measure Functions Reference (iLogic) | Inventor | Autodesk Knowledge Network.

 

For those of you who are new to customizing applications by writing programs, the first question might be: what is an API? API, or Application Programming Interface, is a term used to describe the functionality exposed by an application that allows it to be used through a program.

For example, you can use Inventor’s API to write a program that will perform the same types of operations you can perform when using Inventor interactively.

Having an API is important because it allows you to add functionality to Inventor that is specific to your needs. Inventor, by necessity, is a general CAD system, meaning that it’s not aimed at any specific industry or used to model only certain types of products. By providing an API, Inventor allows you to add additional functionality and optimize repetitive operations to make it more productive for your individual needs.

By providing an API, Inventor also provides you the ability to better integrate Inventor into your overall Enterprise process.

For example, you might write a program that interfaces with your company’s inventory database to obtain the current price for components so that the price shown in a part list is always up-to-date. You might also write a program that extracts data from assemblies to provide MRP systems with their required information. All of this can be done manually, but by automating it using a program you’re able to significantly increase productivity and minimize errors.

An API is also important for the reason that it allows third-party applications to integrate with Inventor. For example, Microsoft Word and Excel expose Automation interfaces to allow you to customize them.

They refer to them as ActiveX interfaces. There are some significant advantages to providing an API through an Automation interface. Second, if designed correctly, it exposes the functionality using standard concepts. This means that if you already have experience programming a well-designed Automation interface like Word or Excel, you already understand many of the concepts that are used by the Inventor API. Finally, it exposes the application’s functionality in an object-oriented manner.

All of them are useful in certain cases, so it’s important to have a basic understanding of the ways to connect to the API so you can make the best decision about how to write your program. The diagram below illustrates the different ways of accessing Inventor’s API. A brief overview of each of the methods follows. First, a quick explanation of the figure below.

The white boxes represent components that provide access to Inventor’s API. These are Inventor and Apprentice Server. We’ll talk about Apprentice more in a minute. The blue cylinder at the bottom represents the Inventor data you’re accessing, i. All of the yellow boxes represent programs that you write. When one box encloses another box this indicates that the enclosed box is running in the same process as the box enclosing it.

For example, VBA runs in the same process as Inventor. An “in-process” program will run faster than a program running out of process. Programs written using VBA are frequently referred to as “macros.

When deciding which method to use when programming Inventor, there are a few advantages to consider when using VBA. First, VBA is delivered with Inventor and does not require you to purchase an additional programming language.

Second, you are able to embed programs within Inventor documents. If you have a program that is data-specific, this is a convenient way to keep the program with the data it is designed to use.

You’re not forced to save your programs in Inventor documents. You can also save programs in separate files so they can be shared among users and documents.

Third, VBA runs in the same process as Inventor so you gain the performance advantages of being in the same process. Add-Ins are a special type of Inventor program. This has a huge advantage in that the add-in is able to insert itself into Inventor’s user-interface and connect to events to be able to watch for and respond to activity within Inventor.

This allows add-in functionality to appear the same as built-in Inventor functionality. Add-ins also have a distinct advantage over VBA in delivering your program to users and managing your source code. Add-Ins cannot be created with VBA.

A standalone EXE is a program that runs on its own and connects to Inventor. This type of program is typically used in the case where you have a program that has its own interface and doesn’t require the user to interactively work with Inventor.

For example a batch plotting utility can be an EXE that runs independently of Inventor. It might monitor a database watching for new records to be added which describe documents that need to be plotted. When a new record is created in the database, the standalone EXE starts Inventor, if it’s not already running, opens the desired document and plots it, all without any user interaction. Standalone EXEs run out-of-process to Inventor, so there is some performance penalty, but since they are not usually used for interactive processes it’s rarely an issue.

Even in the case where performance is an issue it’s possible to combine the use of an add-in and an exe. You can have an add-in that does the majority of the work and an exe that calls the add-in. For example, if you write a program using Excel’s VBA that connects to Inventor, your VBA program is running in the process space of Excel and is communicating with Inventor out of process. Apprentice is an ActiveX server that can be used by other applications to get access to Inventor data.

Apprentice is essentially a subset of Inventor that runs in-process to the application using it. Apprentice doesn’t have a user interface and the only way to interact with it is through its API.

Apprentice provides access to a limited set of full Inventor functionality with the primary areas being assembly structure, B-Rep, geometry, and iProperties.

Most access to information through Apprentice is read-only; a couple of exceptions to this are iProperties and file references. Apprentice is useful in any standalone application that needs access to information contained within Inventor documents. The alternative is to use Inventor.

Using Apprentice is much more efficient than using Inventor to perform the same operations because Apprentice is able to run in the same process as your application and because it doesn’t have a user interface it can perform many operations faster. Another advantage of Apprentice Server is that it’s available at no cost and is available on the public Autodesk website as part of Inventor View.

More detailed information about Apprentice can be found in the Apprentice Server section. A COM Automation interface exposes it functions through a set of objects. A programming object has many similarities to real-world objects. A company that sells chairs might allow a customer to design their own chair by filling out an order form, like the one shown below.

The options on the order form define the various properties of the desired chair. By setting the properties to the desired values the customer is able to describe the specific chair they want. In addition to properties, objects also support methods. Methods are basically instructions that the object understands. In the real world, these are actions you would perform with the chair. For example, you could move the chair, cause it to fold up, or throw it in the trash. In the programming world the objects are smarter and instead of you performing the action you tell the object to perform the action itself; move, fold, and delete.

A third aspect of objects is that they can support events. In the real-world events are equivalent to installing sensors on an object to track when certain things happen to the object.

For example, you can attach a sensor to the seat of the chair to be notified whenever anyone sits on it. In the programming world you can use events to be notified when certain things happen within Inventor. One final concept of object-oriented programming is that of a class. Going back to the chair object, you can think of the class as the order form the customer fills out to describe the specific chair they want.

The order form represents the class and the resulting chair is the object, or an instance of the class. For example, look at the extrude feature shown below. For each extrude feature that you create in a part, there is an ExtrudeFeature programming object that represents it.

The ExtrudeFeature object supports various properties and methods that allow you to query and edit the extrusion. These properties and methods provide equivalent functionality to what you specify when creating and editing an extrude feature the user interface.

For example, the ExtrudeFeature object supports the Name property. This is the name of the feature that is displayed in the object browser.

You can get the value of this property to see the current name of the feature and you can set the value of this property to change the name of the feature. The ExtentType property specifies that this is a distance extent.

The Operation specifies that this is a “new solid” operation. The Profile returns the sketch information that defines the shape of the feature.

These are the API equivalent of the options provided in the mini dialog shown below. Because the API allows you to do the same things you can do through the user-interface there are strong similarities between the two.

Having a good understanding of Inventor from the standpoint of an end-user will make the API easier to understand and use. By gaining access to these objects through the API you can use their various methods, properties, and events to control and react to Inventor. The first concept to understand before going further is the object model. The full Inventor object model is shown below. You can see that there are a lot of objects, but most programs will use only a small portion of them.

The object model is a hierarchical diagram that illustrates the relationships between objects. One of the most important objects in this hierarchy is the Application object. The Application object represents the Inventor application and is the top-most object in the hierarchy. The Application object supports methods and properties that let you control Inventor but most important, it supports properties that return other Inventor objects.

 
 

– Autodesk inventor 2018 api help free download

 
 
Welcome to Inventor Help. Acquire essential skills through video tutorials and Inventor Help. Search or browse from the table of contents or start with the. Learn more about Inventor’s API through Inventor’s Programming Help that is delivered with Inventor. It includes overviews, detailed descriptions of the.