Category: Mod The Machine

  • Balloon Reporting Macro

    There was a question on the Autodesk Inventor Customization newsgroup this morning that caught my interest.  The question was about creating a report, (in their case editing a column in the BOM), that lists all of the balloons in a drawing along with what sheet they’re on and the zone on the sheet they’re located…

  • Class Diagrams

    Over the years people have asked me for class diagrams of the Vault API.  I avoided doing them mainly because I don't have time. Recently, I've started playing around with Visual Studio 2010, and I found that it can auto generate some pretty good diagrams.  So now I have no excuse.  Here are the class…

  • Any Interest in Solid Works?

    I have a quick question while I work on finishing up the series of posts on using C# with Inventor’s API.  Are any of you interested in a series of posts that would discuss porting Solid Works applications you have written to Inventor?  If you are, you can add a comment to this post.

  • Using C# with the Inventor API (Part 3)

    Here’s my third installment on some of the differences between VBA and C# that you’ll encounter when using C# to program Inventor’s API.  Here are links to the first and second posts. Optional Arguments  Previous to C# 2010, C# didn’t support optional arguments so you need to provide every argument in a method call.  If…

  • Using C# with the Inventor API (Part 2)

    Here’s my second installment on some of the differences you’ll encounter when using C# to program Inventor’s API.  The first post is here. Property Name Differences If a property has arguments then C# automatically converts that property into one or two methods so that there is a method that represents the read version of the…

  • Using C# with the Inventor API (Part 1)

    My last post contained VB.Net and C# versions of a VBA program from an earlier post.  Converting the VBA program to VB.Net was relatively easy.  The conversion to C# wasn’t as easy.  In this post I want to begin covering many of the issues you’ll run into when converting VBA code to C#. One question…

  • Sketch Curve as Line Segments in VB.Net and C#

    Here’s the VB.Net and C# versions of the VBA program from previous post.  To go from that VBA program to this VB.Net version was fairly easy.  I just copied and pasted the VBA code into a new VB.Net project.  The primary changes that I had to make were primarily to the array declarations.  Another change,…

  • Approximating a Sketch Curve with Line Segments

    Here’s another little VBA macro that I wrote that might be interesting to some of you.  This one takes any sketch curve (circle, arc, spline, ellipse, or elliptical arc) as input, along with the number of segments to break the curve into.  It then creates sketch lines along the curve.  It also sets the original…

  • Saving Files as an Image (bmp, jpg, png, tiff, gif)

    I was recently asked if I had a macro that would create a jpg file for each part in a directory.  The code below is what I came up with.  It finds all of the files of a certain type within a specified directory and creates an image file for each one.  The primary function…

  • iProperty Name Table

    I thought I would share something that I use frequently and have found very useful.  It’s a listing of Inventor’s iProperties and the sets they’re grouped within.  I keep a printout of this at my desk that I refer to frequently when I’m writing programs that use iProperties.  I included a version of this table…