What's new

New functionality in the 11.2 API

sigseven

Senior Member
V11.2 included some much needed enhancements to the API. For the full details of all the new methods and properties check out the updated API Help document.

Querying Loft Features
IADLoftFeature has been updated to allow all properties of loft features to be queried.

Querying 3D Sketch Figures
The collection of 3D Sketch figures IAD3DSketchFigures can now be obtained from the new Figures property of IAD3DSketch. The pattern here is very similar to the one for 2D Sketch figures. IAD3DSketchFigure is the base interface for the new 3D sketch figure interfaces IAD3DSketchPoint, IAD3DSketchLine, IAD3DSketchCircularArc, and IAD3DSketchBspline.

Get/Set the Active Selection Filters
The API can now be used to control what selection filters are active in the user's workspace. IADDesignSelectionFilter for all the the IADDesignSession workspaces (Part, Sheet metal, Assembly) and IADDrawingSelectionFilter for the drawing workspace.

Query Vault Information
IADVaultInfo was added to allow the user's vault-related options in Alibre to be queried. This is just the basics that can be seen in the Vault section in Tools->Options. M-Files has it's own API if you need to do anything advanced with it.

Persistent Key for Sketches
Just like the existing Key properties on IADFace, IADEdge, IADVertex, and IADOccurrence, a Key property has been added to IADSketch.

Get the Topmost Session
By popular demand! Added TopmostSession property to IADRoot which will allow API users to get the session that is currently the highest in the Z-order of open Alibre windows. Since Alibre uses a single document interface, calling it the Active session wouldn't be accurate, but this is about as close to that as it gets for Alibre. Be aware that it will return null if no sessions are open.

Feel free to post any questions or comments you may have.
 
Top