Region Properties for Section View
By Adam NagyThe code which is getting Region Properties information for a given sketch can be extended for Section Views as well. You just need to create a sketch on the Section View and project the...
View ArticleTrack End Of Part change in part document
By Adam NagyIf you want to track how the 'End Of Part' symbol is moved around the part then you could listen to the DocumentEvents.OnChange event and store it's current position. clsEndOfPart:Dim...
View ArticleMake Components command implemented via API
By Adam NagyIf you want to customize the behaviour of Manage >> Layout >> Make Components command then doing the whole thing via the API might be a good alternative. Here is the code which...
View ArticleReorder browser pane nodes
By Adam NagyIn the UI you can drag&drop some of the nodes in the Browser Pane to reorder them. You can do the same through the API. This sample swaps the order of the first two relationships in the...
View ArticleSketch extents
By Adam NagyThough the sketch object itself has no RangeBox that could be used to tell its extents, you can iterate through its entities and combine their extents into a single Box2d object that will...
View ArticleiLogic search path for custom references
By Philippe LeefsmaIt is possible to use functionalities from custom dlls in your iLogic rules, you just need to declare the AddReference “adn.dll” (replaced by the name of your dll obviously) at the...
View ArticleFile vs Document
By Adam NagyNote: this information is from https://github.com/ADN-DevTech/Inventor-Training-Material/tree/master/Module%2014%20-%20Assembly%20AdvancedThe File object represents a file on disk and a...
View ArticleChange equation curve values
By Adam NagyThe equation curve values are fully accessible from the API and can be changed as well. One thing that can be difficult to spot, unless you read the API Help Reference carefully, is that...
View ArticleType mismatch error with VBA code in .NET
By Adam NagyWhen migrating VBA code to .NET there are a couple of things to watch out for and I hope all of them are listed in this document from Brian Ekins:...
View ArticleAdd Workgroup search path at first position
By Adam NagyIt seems that using the WorkgroupPaths.Add(Name, Path, Index) function there is no way to insert the new path at the first position in the list. If you pass in 0 as Index, then it's placed...
View ArticleCreate dimension relative to other dimension
By Adam NagyWhen you want to use the value of a dimension from another dimension, then you actually need to use the Parameter of that dimension. If you click on a dimension which is referencing another...
View ArticlePlace component occurrences on separate layers
By Adam NagyIf you want to place the component occurrences of an assembly inside a drawing on separate layers, then you could do it like this. There is a blog post on how to create new layers:...
View ArticleList sheet names in iLogic Form
By Adam NagyYou can get the list of drawing sheets from any language/environment that can use the Inventor API: .NET, VBA, iLogic, etc. If you want to store the last selection you could store that in a...
View ArticleGet Ribbon images
By Adam NagyAs shown in a previous post, the Ribbon API provided in Autodesk.Windows namespace by AdWindows.dll is not product specific. It provides an additional way of accessing things from the...
View ArticleUsing Apprentice from a Windows Service
By Adam NagyFirst of all, we have to clarify that using Apprentice or Inventor from a Windows Service is not supported. So if you really get into issues with it for one reason or another then we cannot...
View ArticleCreate UCS constraints
By Adam NagyYou may have UCS's (UserCoordinateSystem object) defined in your assembly and its subcomponents that you want to constrain together. You can try to find out if they are already constrained,...
View ArticleDebug iLogic code
By Adam NagyUnfortunately, in iLogic you do not have the same features you get in case of VBA or Visual Studio projects. Stepping through the code, checking variable values, setting up breakpoints are...
View ArticleAn online event with an opportunity to receive up to US $100 per app...
By Virupaksha AithalWe are excited to announce the 2014 Autodesk® Exchange Apps Hackathon. While similar in concept to the Portathon that we held in 2013, this event is bigger, better, has new...
View ArticleAutodesk Fusion 360 Meetup in San Francisco
By Philippe LeefsmaHave you been wondering what Fusion 360 is all about? If you are in the Bay area, now is your chance to find out. The San Francisco Fusion 360 Meetup group is holding a Meetup the...
View ArticleF1 help for Ribbon buttons
By Adam NagyWhen the user hovers over a Ribbon button, then if the tooltip is progressive (i.e. provides an expanded description that shows only after a couple of seconds) then a message at the bottom...
View Article