Category: Inventor
-
RangeBox of components
<?xml encoding=”UTF-8″>By Adam Nagy If you want to get the extents of a ComponentOccurrence then you can use its RangeBox for that.This will provide the information in the coordinate system of the top assembly: Sub AddPoints1( _ oCD As AssemblyComponentDefinition, oOcc As ComponentOccurrence) Dim pt1 As Point Set pt1 = oOcc.RangeBox.MinPoint Dim pt2 As Point Set pt2 =…
-
Keep selection between rule executions
<?xml encoding=”UTF-8″>By Adam Nagy There is a blog post on selecting multiple components interactively from an iLogic Rule, but it does not highlight the selected objects while the Rule is running in the Inventor versions I tested it in – something might have changed in the meantime. However, using a HighlightSet seems to work fine: Dim oSet As…
-
Customize iAssembly / iPart member creation
By Adam Nagy I've seen a few posts on the forum about trying to use iLogic code inside iAssembly and iPart factories to customize the created member file to change e.g. some of its iProperties. So I thought it could be useful to talk about the internal process of member creation. iAssembly This is quite straight-forward. In…
-
Open Drawing from a Part or Assembly
Inventor supports the “Open Drawing” command that you can access from the context menu when clicking on a part or assembly node in the browser. The equivalent functionality is not available through the Inventor API. However, the logic behind the command is very simple and not difficult to do on your own using Inventor’s…
-
Inventor Answer Day! :)
Inventor Answer Day is coming and you're welcome to join :) You'll find here all the info about it: http://forums.autodesk.com/t5/inventor-answer-day/inventor-answer-day-january-27th-2016/td-p/5956903 -Adam
-
Inventor Answer Day! :)
By Adam Nagy Inventor Answer Day is coming and you're welcome to join :) You'll find here all the info about it: http://forums.autodesk.com/t5/inventor-answer-day/inventor-answer-day-january-27th-2016/td-p/5956903
-
Inventor API: Change Size of CC Component Placed as Custom
by Vladimir Ananyev Q: I may use the Change Size command to change a key parameter for a Content Center part placed as a Custom component. But how can I do it programmatically? A: If we talk about “Change Size as custom”, there is no existed API to support currently. There is a series of…
-
Autodesk® Inventor® iLogic™ or Inventor API: Which Is the Right Tool for Me? (Autodesk University Session)
By Wayne Brill A couple of years ago I had a session on iLogic and the Inventor API. The handout and class examples may help when you first start using iLogic or the Inventor API. As these materials are no longer available on the Autodesk University site you can download them here. Download CP2544_iLogic_Inventor_API Download…
-
Differentiate Inventor documents
By Adam Nagy When you create a new document then a new GUID will be assigned to its InternalName property. This will stay the same for the lifetime of the document no matter what modifications have been done in the document geometry or file properties. This property also remains the same when the file gets copied or renamed.…
-
Rename file referenced from assembly
<?xml encoding=”UTF-8″>By Adam Nagy There is already an article on changing the file reference to another file using the Inventor API:http://adndevblog.typepad.com/manufacturing/2012/08/replace-the-file-reference-by-inventor-api.html If you want to combine this with the renaming of a referenced file then you can do it like so. It might be a good idea to keep the original file until the reference has…

You must be logged in to post a comment.