Inventor 2010 API Information

The official Inventor API page has been updated with information about Inventor 2010, http://www.autodesk.com/developinventor.  Here are a couple of highlights of what’s available. 

  • A PowerPoint presentation, along with sample code, that discusses the API enhancements that are in Inventor 2010.  It was pointed out that the PowerPoint file is in the new pptx format.  You can download an Office compatibility pack so you can view the new file formats in older versions of office.  The compatibility pack is available from Microsoft here.
  • The new Object Model chart for Inventor 2010.  (This is also installed in the Docs directory as part of the Developer Tools in the SDK.)
  • There is an update for the SDK.  There were some issues discovered in the wizards and sample programs that have been resolved in this update.  It’s a complete SDK install so you’ll need to uninstall your existing User Tools or Developer Tools if you have installed them and then install these updates.

Comments

10 responses to “Inventor 2010 API Information”

  1. I just found this site recently and keep coming back. Lots of good information and tutorials. Thanks! I was wondering if you took questions on how to do things?

  2. Brian Hall Avatar
    Brian Hall

    Brian, I am getting an error when downloading the 64 bit SDK update. I am unable to save it or directly open it. I’m running Vista (64 bit).

  3. cesar Avatar
    cesar

    hey, Brian!
    would be too much to ask to post the inventor 2010 new api presentation in ppt or pdf?
    http://images.autodesk.com/adsk/files/inventor_2010_new_api.zip
    thanks!
    ps. your blog rocks! :D

  4. Hi Brian,
    About the error when downloading the 64-bit SDK update. Can you try it again? I tried downloading and installing it on my machine, which is also 64-bit Vista and it worked without any problems.
    -Brian

  5. I updated the blog posting to include some information on how to read the newer pptx format using older versions of Office.

  6. Brian Hall Avatar
    Brian Hall

    Hi Brian Ekins (all the “Brian’s” are confusing)
    I went back to the download site several times that day and it finally worked. Incidentally, I had a similar issue with downloading the Inventor Tooling Suite. I tried the website (autodesk.com/ait) and it came up as “Not found”. Went back several times (today) and finally it worked. I have a brand new machine, with security settings fairly low and no Anti-virus firewall going, etc. Could be a fluke. Thanks for checking!!
    -Brian Hall-

  7. I am trying to create a pdf from idw using visual basic. I get an error :An invalid pointer was supplied to the method.
    Code:
    Public Sub PublishPDF(ByVal sFile)
    ‘ Get the PDF translator Add-In.
    Dim SavePath As String
    Dim m_inventorApplication As Inventor.Application = Nothing
    m_inventorApplication.Documents.Open(sFile)
    Dim FileName As String
    FileName = GetFileName(sFile)
    SavePath = “C:\AdamTest\” + FileName + “.pdf”
    Dim PDFAddIn As TranslatorAddIn
    PDFAddIn = m_inventorApplication.ApplicationAddIns.ItemById(“{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}”)
    ‘Set a reference to the active document (the document to be published).
    Dim oDocument As Inventor.Document
    oDocument = m_inventorApplication.ActiveDocument
    Dim oContext As TranslationContext
    oContext = m_inventorApplication.TransientObjects.CreateTranslationContext
    oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
    ‘ Create a NameValueMap object
    Dim oOptions As NameValueMap
    oOptions = m_inventorApplication.TransientObjects.CreateNameValueMap
    ‘ Create a DataMedium object
    Dim oDataMedium As DataMedium
    oDataMedium = m_inventorApplication.TransientObjects.CreateDataMedium
    ‘ Check whether the translator has ‘SaveCopyAs’ options
    If PDFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then
    ‘ Options for drawings…
    oOptions.Value(“All_Color_AS_Black”) = 0
    ‘oOptions.Value(“Remove_Line_Weights”) = 0
    ‘oOptions.Value(“Vector_Resolution”) = 400
    oOptions.Value(“Sheet_Range”) = Inventor.PrintRangeEnum.kPrintAllSheets
    ‘oOptions.Value(“Custom_Begin_Sheet”) = 2
    ‘oOptions.Value(“Custom_End_Sheet”) = 4
    End If
    ‘Set the destination file name
    oDataMedium.FileName = SavePath
    ‘Publish document.
    Call PDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
    End Sub

  8. Is there a way to create visual basic using the inventor view software instead of inventor?
    I need to be able to create a pdf from idw, without needing a license for inventor.

  9. I am trying to run Inventor, using an api, to create dwg over top of old dwg, but it keeps asking if I want to save whenever the file already exists. Is there something I am missing in the ini or inventor configuration?

  10. sir am fresher open inventor using C#,i know basics of C#,could suggest me some links to get information and pdf related to it

Leave a Reply to Adam ClampetCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading