Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

IV 2014, VS 2015: Unable to install Developer Tools

Anonymous

IV 2014, VS 2015: Unable to install Developer Tools

Anonymous
Not applicable

I'm unable to install DeveloperTools.msi, this error message pops up "Could not find any version of Microsoft Visual Studio."

I'm using Inventor 2014 Pro SP2 and i have Visual Studio Community 2015 installed.

I've googled and searched the forums but I can't find a solution, is there anyone that knows what the problem is?

0 Likes
Reply
Accepted solutions (2)
4,474 Views
27 Replies
Replies (27)

Anonymous
Not applicable

Hi, 

 

I was logged on with another account.... So again (since I could not copy...)

 

If you have VS2015 Inventor addin template running, your project structure may be like this

 

2016-12-09_09h02_30.png

 

the default postbuild event never worked for me.... 

2016-12-09_09h03_45.png

 

I could not figure out what this manifest-thing shall be godd for, I never needed it...

I always stip it out and my Plugin works fine

 

 

2016-12-09_09h14_37.png

 

You need to ensure ,that you copy dll(s), local resources (if any) and the *.addin file to one of the Autoloader Search Folders.

Here are some of them (there may be more)

 

%Appdata%\Autodesk\Applicationplugins\

%Programdata%\Autodesk\Applicationplugins\

%Programfiles%\Autodesk\Applicationplugins\

%Programdata%\Autodesk\Inventor 20xx\Addins\

%Programdata%Autodesk\Inventor Addins\

 

Each of them may have slightly different loadbehavior (%Programdata%\Autodesk\Inventor 2014\Addins\ loads for 2014 only e.g.)

 

Anyway, I tend tu use APPDATA, since this is a per-user distribution. After Compiling I juts have my files there

 

2016-12-09_09h15_37.png

 

Start Inventor and confirm your Addin was picked by Autoloader

 

2016-12-09_09h18_24.png

 

You may pay attention on the addinfile... Ensure, the Sofware-Version (20 = Inventor 2016) and Assembly-Path are correct (may be relative to the addin-file-location - in this case it is in the same directory)

 

2016-12-09_09h26_00.png

 

If you use VS-Express, you may not have the option to edit Build events directly. In this case you can edit the .vbproj/.csproj manually.. Ask Google for details on this :slightly_smiling_face:

 

HTH,

Daniel

 

 

Anonymous
Not applicable

Daniel:

 

Thanks for all the great information.  My problem at the moment is that I cannot get past this error:

 

Severity Code Description Project File Line Suppression State
Error The command "call "%VS100COMNTOOLS%vsvars32"
mt.exe -manifest "Z:\VSProjects\InventorAddIn3\InventorAddIn3\InventorAddIn3.X.manifest" -outputresource:"C:\Users\sanderson\AppData\Roaming\Autodesk\ApplicationPlugins\StampDrawing\StampDrawing.exe";#2" exited with code 9009. InventorAddIn3

 

When a prior user said to copy the file to a folder, I had no idea what he was talking about.

 

 

0 Likes

Anonymous
Not applicable
Hi, I'm a bit confused now. The Output should be a dll, shouldn't be? An exe is not an Addin in my opinion. Did you removed the manifest part from your Post build event in your project? Is the Project Type correct?
0 Likes

Anonymous
Not applicable

Daniel:

 

Confusion is what add-ins are all about from my perspective, as I have been wanting to move this code into an add-in for over a year.  Perhaps the difficulty is my use of .NET 2015 Express (Community, etc).

 

Thanks for your replies, and I'm sure I must be missing something.  The question is, what?  Without updated manuals for versions 2015 of Inventor, and/or potential trouble with using VS Express 2015 it has been really difficult to get this going.  

 

I started the project with this add-in project.  Screen Shot 12-12-16 at 08.10 AM.JPG

 

I have selected two options for my project properties.

 

1. I have specified a build output path for the project with regard ro the compilation.

Screen Shot 12-12-16 at 08.15 AM.JPG

 

 

2. Under debug, I have specified to start an external program, ie: Inventor 2015

Screen Shot 12-12-16 at 08.17 AM.JPG

The program is: C:\Program Files\Autodesk\Inventor 2015\Bin\inventor.exe

 

You can see, I have the following project references:

Screen Shot 12-12-16 at 08.19 AM.JPG

 

Below is my output folder, and yes, I see an .exe, not a .dll. 

Screen Shot 12-12-16 at 08.21 AM.JPG

 

When I build the project, I get this error:

Screen Shot 12-12-16 at 08.25 AM.JPG

And this output:

Screen Shot 12-12-16 at 08.26 AM.JPG

Truncated line: 1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: mt.exe -manifest "Z:\VSProjects\InventorAddIn3\InventorAddIn3\InventorAddIn3.X.manifest" -outputresource:"C:\Users\sanderson\AppData\Roaming\Autodesk\ApplicationPlugins\StampDrawing\StampDrawing.exe";#2" exited with code 9009.

 

As I said earlier in the post, I pretty much followed this post to get things going:

http://forums.autodesk.com/t5/inventor-customization/inventor-add-in-templates-for-2015/td-p/5235767

 

Finally, I have pasted my code below:

 

Imports System.IO
Imports System.Runtime.InteropServices

Public Class StampDrawing
    Shared Sub main()
        Dim frm As New Form1
        frm.Show()

    End Sub

End Class

Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
        Dim dirn As String = "c:\temp"

        Dim filn As String = ""
        If Len(txtStampText) > 0 Then
            filn = "txtStampText.txt"

        End If

        ' Check to see if c:\temp exists

        ' Check to see if c:\temp\txtStampText.txt exists
        Dim fullfilen As String = dirn & "\" & filn
        If File.Exists(fullfilen) = True Then
            MsgBox(fullfilen)

            ' Import contents of c:\temp\txtStampText.txt to txtStampText
            Dim objStreamReader As StreamReader
            Dim strline As String = ""
            objStreamReader = New StreamReader(fullfilen)
            strline = objStreamReader.ReadLine

            Do While Not strline Is Nothing
                txtStampText.Text = strline

            Loop

            objStreamReader.Close()

        End If

    End Sub

    Private Sub cmdPlot_Click(sender As Object, e As EventArgs) Handles cmdPlot.Click
        ' Export contents of txtStampText to c:\temp\txtStampText.txt




        ' Define application
        Dim oApp As Inventor.Application = GetObject(, "Inventor.Application")
        Dim oDoc As Inventor.DrawingDocument = oApp.ActiveDocument

        ' Define sheets
        Dim oSheets As Inventor.Sheets = oDoc.Sheets
        Dim oSheet As Inventor.Sheet = oDoc.Sheets.Item(1)

        ' Define print manager
        Dim oPM As Inventor.DrawingPrintManager = oDoc.PrintManager

        ' Get sheet size
        Dim xx As Integer
        Dim xy As Integer

        Select Case oSheet.Size
            Case Inventor.DrawingSheetSizeEnum.kADrawingSheetSize
                xx = (6 * 2.54)
                xy = (3.12 * 2.54)

            Case Inventor.DrawingSheetSizeEnum.kBDrawingSheetSize
                xx = (12 * 2.54)
                xy = (3.12 * 2.54)

            Case Inventor.DrawingSheetSizeEnum.kCDrawingSheetSize
                xx = (17 * 2.54)
                xy = (3.12 * 2.54)

            Case Inventor.DrawingSheetSizeEnum.kDDrawingSheetSize
                xx = (29 * 2.54)
                xy = (3.12 * 2.54)

            Case Inventor.DrawingSheetSizeEnum.kEDrawingSheetSize
                xx = (37 * 2.54)
                xy = (3.12 * 2.54)

        End Select

        For Each oSheet In oSheets
            oSheet.Activate()

            ' Create a new sketch on the active sheet
            Dim oSketch As Inventor.DrawingSketch = oDoc.ActiveSheet.Sketches.Add

            ' Open sketch for edit so the texhbox can be created
            oSketch.Edit()

            Dim oTG As Inventor.TransientGeometry = oApp.TransientGeometry

            Dim sText As String
            sText = txtStampText.Text
            sText = "<StyleOverride Font='Arial' Bold='True' Italic='True' FontSize='.7'>" & sText & "</StyleOverride>"

            Dim oTextBox As Inventor.TextBox = oSketch.TextBoxes.AddFitted(oTG.CreatePoint2d(xx, xy), sText)

            oSketch.ExitEdit()

            ' Requires plot to activate text
            oPM.PrintToFile("c:\temp\tmpinventor.plot")

            ' Predefine printers
            Dim PRN As String
            PRN = "\\PS64\HP Color LaserJet M750dn"

            Dim PLT As String
            PLT = "\\PS64\HP T2500"

            oPM.ScaleMode = Inventor.PrintScaleModeEnum.kPrintFullScale
            oPM.PrintRange = Inventor.PrintRangeEnum.kPrintAllSheets

            Select Case oSheet.Size
                Case Inventor.DrawingSheetSizeEnum.kA4DrawingSheetSize
                    oPM.Printer = PRN
                    oPM.PaperSize = Inventor.PaperSizeEnum.kPaperSizeLetter
                    oPM.Orientation = Inventor.PrintOrientationEnum.kLandscapeOrientation

                Case Inventor.DrawingSheetSizeEnum.kBDrawingSheetSize
                    oPM.Printer = PRN
                    oPM.PaperSize = Inventor.PaperSizeEnum.kPaperSize11x17
                    oPM.Orientation = Inventor.PrintOrientationEnum.kLandscapeOrientation

                Case Inventor.DrawingSheetSizeEnum.kCDrawingSheetSize
                    oPM.Printer = PLT
                    oPM.PaperSize = Inventor.PaperSizeEnum.kPaperSizeCSheet
                    oPM.Orientation = Inventor.PrintOrientationEnum.kLandscapeOrientation

                Case Inventor.DrawingSheetSizeEnum.kDDrawingSheetSize
                    oPM.Printer = PLT
                    oPM.PaperSize = Inventor.PaperSizeEnum.kPaperSizeDSheet
                    oPM.Orientation = Inventor.PrintOrientationEnum.kLandscapeOrientation

                Case Inventor.DrawingSheetSizeEnum.kEDrawingSheetSize
                    oPM.Printer = PLT
                    oPM.PaperSize = Inventor.PaperSizeEnum.kPaperSizeESheet
                    oPM.Orientation = Inventor.PrintOrientationEnum.kLandscapeOrientation

            End Select

            oPM.SubmitPrint()

            oSketch.Delete()

        Next

    End Sub

End Class

 

 

 

 

 

 

 

 

 

 

 

0 Likes

Anonymous
Not applicable
Hi, I will Check this tomorrow im Detail, it's 9pm here. As far as I can see, you try to run a Windows forms project as an Addin... An Addin is an Extension for the given application, means you load your classes methods an attach it to your app. This means, an Addin needs to be a dll, cannot be an exe.
Chance your project setting to... I think wpf library Type is the correct one. Ensure to have a correct addinserver class, this is the "connector". It has to implement some required methods.... Over this entry point you create your custom command and Ui (ribbon/ Button). In the Execute method you can call your forms or whatever your Addin is meant to do...
As I said, I check this tomorrow in detail but maybe this comment can point you to the direction. BR, Daniel
0 Likes

Anonymous
Not applicable

Hi , please attach the VS-Solution as a zip. I will test it on my machine. 

BR,

Daniel

0 Likes

Anonymous
Not applicable

Daniel:

 

The file is attached...

 

Thanks!

 

 

0 Likes

Anonymous
Not applicable

 Hi Stephen,

 

attached the reviewed VS-Project. Now it should compile.

 

I made following modifications:

 

1. Setting Project Type

 

2016-12-14_00h32_57.png

 

to:

 

2016-12-14_00h33_14.png

 

 

2 edit post build

 

2016-12-14_00h33_40.png

 

to 

 

2016-12-14_00h46_27.png

 

Additionally there was some incorrect path info in your .vbproj

 

2016-12-14_00h43_33.png

 

Now your project builds. However I could not see any UI-Implementation, so you won't be able to start your function at this stage.

You will need to define a button (commandcontrol), which the user can click on. In the Onexecute method you can call your business logic...

 

BR,

Daniel

0 Likes