Inventor 2015 will soon be shipping. Most of the API enhancements are keeping up with the new Inventor 2015 functionality and some of the enhancements are catching up to things that have been available from the Inventor user interface in previous releases.
Enhancements in the API for Parts
The SweepFeature has a new option for twist angle and now instead of having a method call that takes all the arguments to create a sweep you create a definition object and set all the properties on that object and provide definition as input to create the sweep. In the UI when you click the sweep command the dialog comes up it gathers all of the inputs needed to create the sweep but the sweep is not actually created until you click ok. You can consider the definition object as similar to the dialog.
Previous to Inventor 2015 you could create a mid plane between two parallel planes. Inventor now supports the creation of a plane between any two planes and they do not have to be parallel. An example of this is bisecting two perpendicular planes. A new point argument that defines which quadrant to use needs to be provided because if the planes are not parallel there are two possible solutions.
Work plane created using WorkPlanes.AddByTwoPlanes()
In the UI the direct edit feature lets you push and pull features. The API has read support and allows you to find information such as which operations were defined.
Another enhancement in the user interface is T-Spline capabilities. In the product it is referred to as a Freeform. The 2015 API has minimal support for this but should change in the future. In this release you can find the FreeformFeature and do basic feature operations such as getting its name, suppressing it or reordering it in the tree.
Inventor 2015 has changes to sketching that makes it more intuitive to use. The API has been updated because there are quite a few new settings.
These settings are exposed through the API.
Enhancements in the API for Sheet metal
Punch – cut across bend
Now when you do a punch you have an option to have the punch cut across a bend.
Punch on the right used cut across bend
You can think of it as unfolding the part and doing the punch and then folding it back. (the edges are normal to the flat)
Punch – cut normal to the flat pattern
In this case the edges will be perpendicular to the flat. Instead of being perpendicular to the sketch. This will make it easier to fabricate the part.
Cut on the left is normal to the flat
How it looks in the flat pattern.
Flat pattern orientation
You now have more control over the flat pattern orientation. In the UI there is a new dialog where you can pre define multiple orientations and switch between those and the API provides full access.
Enhancements in API for Assemblies
There are new methods to import and export the BOM customization file. The API has some support for the BOM but it does not support defining the BOM structure. A solution is to interactively create the BOM structure that you want and export it. Using the API you can import that to have a custom BOM structure.
The assembly symmetry constraint has a new option to control the orientation and the API was enhanced to provide that capability.
Enhancements in API for Drawings
Hole table title
In this release you have control over hole table title.
Foreshortened drawing dimensions are linear, angular, and arc length dimensions.
The FileManager object now has a method ReferencedDocumentCount that will allow you to get the number of referenced documents. The WillOpenExpressDefault method will allow you to find out whether the input assembly will open in Express mode by default. To use these methods you just pass in a file name and it returns the information.