<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AddInSample in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171456#M164654</link>
    <description>Option Explicit
Implements ApplicationAddInServer
Private oApp As Inventor.Application
Private WithEvents oButtonHandler1 As ButtonDefinitionHandler
Private WithEvents oButtonHandler2 As ButtonDefinitionHandler

Private Sub ApplicationAddInServer_Activate(ByVal AddInSiteObject As
Inventor.ApplicationAddInSite _
                                          , ByVal FirstTime As Boolean)
    ' Save a reference to the Application object.
    Set oApp = AddInSiteObject.Application

    ' Create the two button handlers.  To simplify this sample the icons
    ' are read from disk.  They could also have been obtained from other
    ' various sources such as an image list control or a resource file.
    ' Also, to simplify this sample only small buttons are used.  Inventor
    ' will scale them if large buttons are selected by the user.
    Dim oIcon1 As IPictureDisp
    Dim oIcon2 As IPictureDisp
    Set oIcon1 = LoadPicture(App.Path &amp;amp; "\Slot.ico")
    Set oIcon2 = LoadPicture(App.Path &amp;amp; "\Toggle.ico")
    Set oButtonHandler1 =
AddInSiteObject.CreateButtonDefinitionHandler("AddInSampleCmd1", _
                          kShapeEditCmdType, "Draw Slot", "Create slot
sketch graphics", _
                          "Draw Slot", oIcon1, oIcon1)
    Set oButtonHandler2 =
AddInSiteObject.CreateButtonDefinitionHandler("AddInSampleCmd2", _
                          kQueryOnlyCmdType, "Toggle Slot State",
"Enables/Disables state of slot command.", _
                          "Toggle Slot State", oIcon2, oIcon2)

    ' Create a new command bar
    Dim oCommandBar As CommandBarBase
    Set oCommandBar =
oApp.EnvironmentBaseCollection.CommandBarBaseCollection.Add("AddIn Sample")

    ' Add buttons to the command bar for the two handlers.
    Call oCommandBar.Controls.Add(kBarControlButton,
oButtonHandler1.ControlDefinition)
    Call oCommandBar.Controls.Add(kBarControlButton,
oButtonHandler2.ControlDefinition)

    ' Get the 2d sketch environment base object.
    Dim oEnvBase As EnvironmentBase
    Set oEnvBase =
oApp.EnvironmentBaseCollection.Item("PMxPartSketchEnvironment")

    ' Make this command bar accessable in the panel menu for the 2d sketch
environment.
    oEnvBase.PanelBarList.Add oCommandBar

    MsgBox "To access the commands of the sample add-in, activate a 2d
sketch in a part" &amp;amp; Chr(13) &amp;amp; _
            "document and select the ""AddIn Sample"" toolbar within the
panel menu."
End Sub

Private Property Get ApplicationAddInServer_Automation() As Object
    Set ApplicationAddInServer_Automation = Nothing
End Property

Private Sub ApplicationAddInServer_Deactivate()
    ' Release all references.
    Set oButtonHandler1 = Nothing
    Set oButtonHandler2 = Nothing
    Set oApp = Nothing
End Sub

Private Sub ApplicationAddInServer_ExecuteCommand(ByVal CommandID As Long)
    ' No longer used.
End Sub

Private Sub oButtonHandler1_OnClick()
    ' Check to make sure a sketch is active.
    If TypeOf oApp.ActiveEditObject Is PlanarSketch Then
        ' Call the method to draw the sketch.
        Call DrawSlot(oApp.ActiveEditObject)
    Else
        ' No sketch is active so display an error.
        MsgBox "A sketch must be active for this command."
    End If
End Sub

Private Sub oButtonHandler2_OnClick()
    ' Toggle the enabled state of command 1.
    If oButtonHandler1.Enabled Then
        oButtonHandler1.Enabled = False
    Else
        oButtonHandler1.Enabled = True
    End If
End Sub

Private Sub DrawSlot(oSketch As PlanarSketch)
    Dim oLines(1 To 2) As SketchLine
    Dim oArcs(1 To 2) As SketchArc
    Dim oTransGeom As TransientGeometry

    ' Start a transaction so the slot will be within a single undo step.
    Dim oTrans As Transaction
    Set oTrans =
oApp.TransactionManager.StartTransaction(oApp.ActiveDocument, "Create Slot")

    ' Draw the lines and arcs that make up the shape of the slot.
    With oApp.TransientGeometry
        Set oLines(1) = oSketch.SketchLines.AddByTwoPoints( _
                    .CreatePoint2d(0, 0), .CreatePoint2d(5, 0))
        Set oArcs(1) = oSketch.SketchArcs.AddByCenterStartEndPoint( _
                    .CreatePoint2d(5, 1), oLines(1).EndSketchPoint, _
                    .CreatePoint2d(5, 2))
        Set oLines(2) = oSketch.SketchLines.AddByTwoPoints( _
                    oArcs(1).EndSketchPoint, .CreatePoint2d(0, 2))
        Set oArcs(2) = oSketch.SketchArcs.AddByCenterStartEndPoint( _
                    .CreatePoint2d(0, 1), oLines(2).EndSketchPoint, _
                    oLines(1).StartSketchPoint)
    End With

    ' Create the tangent constraints between the lines and arcs.
    Call oSketch.GeometricConstraints.AddTangent(oLines(1), oArcs(1))
    Call oSketch.GeometricConstraints.AddTangent(oLines(2), oArcs(1))
    Call oSketch.GeometricConstraints.AddTangent(oLines(2), oArcs(2))
    Call oSketch.GeometricConstraints.AddTangent(oLines(1), oArcs(2))

    ' Create a parallel constraint between the two lines.
    Call oSketch.GeometricConstraints.AddParallel(oLines(1), oLines(2))

    ' End the transaction.
    oTrans.End
End Sub



"Neil Munro" &lt;NMUNRO&gt; wrote in message news:41827907_3@newsprd01...
&amp;gt; What IV version? The help file Add-In sample program does not create any
&amp;gt; buttons or toolbars. Did you add code to do this? Could you post the code
&amp;gt; from the .cls file?
&amp;gt;
&amp;gt; Neil
&amp;gt;
&amp;gt; "Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message
&amp;gt; news:4182746c_1@newsprd01...
&amp;gt; &amp;gt; yes, I saw it in the Tool&amp;gt;Add-ins and loaded.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Neil Munro" &lt;NMUNRO&gt; wrote in message
&amp;gt; &amp;gt; news:418273cb$1_3@newsprd01...
&amp;gt; &amp;gt;&amp;gt; Select Tools &amp;gt; Add-ins from the menu. Does the add-in appear in the
list?
&amp;gt; &amp;gt; If
&amp;gt; &amp;gt;&amp;gt; so, does it show as loaded?
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; Neil
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; "Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message
&amp;gt; &amp;gt;&amp;gt; news:41827287_2@newsprd01...
&amp;gt; &amp;gt;&amp;gt; &amp;gt;I followed exactly step-by-step showing in the program help. After
&amp;gt; &amp;gt; compile
&amp;gt; &amp;gt;&amp;gt; &amp;gt; the DLL register the registry, run IV, I couldn't see the AddIn
Sample
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Toolbar  in the Panel bar
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Anyone experieced this before, Please give out a hint.
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Thanks.
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/CHRIS_SORENSON2003&gt;&lt;/NMUNRO&gt;&lt;/CHRIS_SORENSON2003&gt;&lt;/NMUNRO&gt;</description>
    <pubDate>Fri, 29 Oct 2004 17:25:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-10-29T17:25:40Z</dc:date>
    <item>
      <title>AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171452#M164650</link>
      <description>I followed exactly step-by-step showing in the program help. After compile
the DLL register the registry, run IV, I couldn't see the AddIn Sample
Toolbar  in the Panel bar
Anyone experieced this before, Please give out a hint.
Thanks.</description>
      <pubDate>Fri, 29 Oct 2004 16:40:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171452#M164650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T16:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171453#M164651</link>
      <description>Select Tools &amp;gt; Add-ins from the menu. Does the add-in appear in the list? If 
so, does it show as loaded?

Neil

"Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message 
news:41827287_2@newsprd01...
&amp;gt;I followed exactly step-by-step showing in the program help. After compile
&amp;gt; the DLL register the registry, run IV, I couldn't see the AddIn Sample
&amp;gt; Toolbar  in the Panel bar
&amp;gt; Anyone experieced this before, Please give out a hint.
&amp;gt; Thanks.
&amp;gt;
&amp;gt;&lt;/CHRIS_SORENSON2003&gt;</description>
      <pubDate>Fri, 29 Oct 2004 16:46:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171453#M164651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T16:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171454#M164652</link>
      <description>yes, I saw it in the Tool&amp;gt;Add-ins and loaded.

"Neil Munro" &lt;NMUNRO&gt; wrote in message
news:418273cb$1_3@newsprd01...
&amp;gt; Select Tools &amp;gt; Add-ins from the menu. Does the add-in appear in the list?
If
&amp;gt; so, does it show as loaded?
&amp;gt;
&amp;gt; Neil
&amp;gt;
&amp;gt; "Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message
&amp;gt; news:41827287_2@newsprd01...
&amp;gt; &amp;gt;I followed exactly step-by-step showing in the program help. After
compile
&amp;gt; &amp;gt; the DLL register the registry, run IV, I couldn't see the AddIn Sample
&amp;gt; &amp;gt; Toolbar  in the Panel bar
&amp;gt; &amp;gt; Anyone experieced this before, Please give out a hint.
&amp;gt; &amp;gt; Thanks.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/CHRIS_SORENSON2003&gt;&lt;/NMUNRO&gt;</description>
      <pubDate>Fri, 29 Oct 2004 16:48:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171454#M164652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171455#M164653</link>
      <description>What IV version? The help file Add-In sample program does not create any 
buttons or toolbars. Did you add code to do this? Could you post the code 
from the .cls file?

Neil

"Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message 
news:4182746c_1@newsprd01...
&amp;gt; yes, I saw it in the Tool&amp;gt;Add-ins and loaded.
&amp;gt;
&amp;gt; "Neil Munro" &lt;NMUNRO&gt; wrote in message
&amp;gt; news:418273cb$1_3@newsprd01...
&amp;gt;&amp;gt; Select Tools &amp;gt; Add-ins from the menu. Does the add-in appear in the list?
&amp;gt; If
&amp;gt;&amp;gt; so, does it show as loaded?
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Neil
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; "Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message
&amp;gt;&amp;gt; news:41827287_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt;I followed exactly step-by-step showing in the program help. After
&amp;gt; compile
&amp;gt;&amp;gt; &amp;gt; the DLL register the registry, run IV, I couldn't see the AddIn Sample
&amp;gt;&amp;gt; &amp;gt; Toolbar  in the Panel bar
&amp;gt;&amp;gt; &amp;gt; Anyone experieced this before, Please give out a hint.
&amp;gt;&amp;gt; &amp;gt; Thanks.
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt;&lt;/CHRIS_SORENSON2003&gt;&lt;/NMUNRO&gt;&lt;/CHRIS_SORENSON2003&gt;</description>
      <pubDate>Fri, 29 Oct 2004 17:08:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171455#M164653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T17:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171456#M164654</link>
      <description>Option Explicit
Implements ApplicationAddInServer
Private oApp As Inventor.Application
Private WithEvents oButtonHandler1 As ButtonDefinitionHandler
Private WithEvents oButtonHandler2 As ButtonDefinitionHandler

Private Sub ApplicationAddInServer_Activate(ByVal AddInSiteObject As
Inventor.ApplicationAddInSite _
                                          , ByVal FirstTime As Boolean)
    ' Save a reference to the Application object.
    Set oApp = AddInSiteObject.Application

    ' Create the two button handlers.  To simplify this sample the icons
    ' are read from disk.  They could also have been obtained from other
    ' various sources such as an image list control or a resource file.
    ' Also, to simplify this sample only small buttons are used.  Inventor
    ' will scale them if large buttons are selected by the user.
    Dim oIcon1 As IPictureDisp
    Dim oIcon2 As IPictureDisp
    Set oIcon1 = LoadPicture(App.Path &amp;amp; "\Slot.ico")
    Set oIcon2 = LoadPicture(App.Path &amp;amp; "\Toggle.ico")
    Set oButtonHandler1 =
AddInSiteObject.CreateButtonDefinitionHandler("AddInSampleCmd1", _
                          kShapeEditCmdType, "Draw Slot", "Create slot
sketch graphics", _
                          "Draw Slot", oIcon1, oIcon1)
    Set oButtonHandler2 =
AddInSiteObject.CreateButtonDefinitionHandler("AddInSampleCmd2", _
                          kQueryOnlyCmdType, "Toggle Slot State",
"Enables/Disables state of slot command.", _
                          "Toggle Slot State", oIcon2, oIcon2)

    ' Create a new command bar
    Dim oCommandBar As CommandBarBase
    Set oCommandBar =
oApp.EnvironmentBaseCollection.CommandBarBaseCollection.Add("AddIn Sample")

    ' Add buttons to the command bar for the two handlers.
    Call oCommandBar.Controls.Add(kBarControlButton,
oButtonHandler1.ControlDefinition)
    Call oCommandBar.Controls.Add(kBarControlButton,
oButtonHandler2.ControlDefinition)

    ' Get the 2d sketch environment base object.
    Dim oEnvBase As EnvironmentBase
    Set oEnvBase =
oApp.EnvironmentBaseCollection.Item("PMxPartSketchEnvironment")

    ' Make this command bar accessable in the panel menu for the 2d sketch
environment.
    oEnvBase.PanelBarList.Add oCommandBar

    MsgBox "To access the commands of the sample add-in, activate a 2d
sketch in a part" &amp;amp; Chr(13) &amp;amp; _
            "document and select the ""AddIn Sample"" toolbar within the
panel menu."
End Sub

Private Property Get ApplicationAddInServer_Automation() As Object
    Set ApplicationAddInServer_Automation = Nothing
End Property

Private Sub ApplicationAddInServer_Deactivate()
    ' Release all references.
    Set oButtonHandler1 = Nothing
    Set oButtonHandler2 = Nothing
    Set oApp = Nothing
End Sub

Private Sub ApplicationAddInServer_ExecuteCommand(ByVal CommandID As Long)
    ' No longer used.
End Sub

Private Sub oButtonHandler1_OnClick()
    ' Check to make sure a sketch is active.
    If TypeOf oApp.ActiveEditObject Is PlanarSketch Then
        ' Call the method to draw the sketch.
        Call DrawSlot(oApp.ActiveEditObject)
    Else
        ' No sketch is active so display an error.
        MsgBox "A sketch must be active for this command."
    End If
End Sub

Private Sub oButtonHandler2_OnClick()
    ' Toggle the enabled state of command 1.
    If oButtonHandler1.Enabled Then
        oButtonHandler1.Enabled = False
    Else
        oButtonHandler1.Enabled = True
    End If
End Sub

Private Sub DrawSlot(oSketch As PlanarSketch)
    Dim oLines(1 To 2) As SketchLine
    Dim oArcs(1 To 2) As SketchArc
    Dim oTransGeom As TransientGeometry

    ' Start a transaction so the slot will be within a single undo step.
    Dim oTrans As Transaction
    Set oTrans =
oApp.TransactionManager.StartTransaction(oApp.ActiveDocument, "Create Slot")

    ' Draw the lines and arcs that make up the shape of the slot.
    With oApp.TransientGeometry
        Set oLines(1) = oSketch.SketchLines.AddByTwoPoints( _
                    .CreatePoint2d(0, 0), .CreatePoint2d(5, 0))
        Set oArcs(1) = oSketch.SketchArcs.AddByCenterStartEndPoint( _
                    .CreatePoint2d(5, 1), oLines(1).EndSketchPoint, _
                    .CreatePoint2d(5, 2))
        Set oLines(2) = oSketch.SketchLines.AddByTwoPoints( _
                    oArcs(1).EndSketchPoint, .CreatePoint2d(0, 2))
        Set oArcs(2) = oSketch.SketchArcs.AddByCenterStartEndPoint( _
                    .CreatePoint2d(0, 1), oLines(2).EndSketchPoint, _
                    oLines(1).StartSketchPoint)
    End With

    ' Create the tangent constraints between the lines and arcs.
    Call oSketch.GeometricConstraints.AddTangent(oLines(1), oArcs(1))
    Call oSketch.GeometricConstraints.AddTangent(oLines(2), oArcs(1))
    Call oSketch.GeometricConstraints.AddTangent(oLines(2), oArcs(2))
    Call oSketch.GeometricConstraints.AddTangent(oLines(1), oArcs(2))

    ' Create a parallel constraint between the two lines.
    Call oSketch.GeometricConstraints.AddParallel(oLines(1), oLines(2))

    ' End the transaction.
    oTrans.End
End Sub



"Neil Munro" &lt;NMUNRO&gt; wrote in message news:41827907_3@newsprd01...
&amp;gt; What IV version? The help file Add-In sample program does not create any
&amp;gt; buttons or toolbars. Did you add code to do this? Could you post the code
&amp;gt; from the .cls file?
&amp;gt;
&amp;gt; Neil
&amp;gt;
&amp;gt; "Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message
&amp;gt; news:4182746c_1@newsprd01...
&amp;gt; &amp;gt; yes, I saw it in the Tool&amp;gt;Add-ins and loaded.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Neil Munro" &lt;NMUNRO&gt; wrote in message
&amp;gt; &amp;gt; news:418273cb$1_3@newsprd01...
&amp;gt; &amp;gt;&amp;gt; Select Tools &amp;gt; Add-ins from the menu. Does the add-in appear in the
list?
&amp;gt; &amp;gt; If
&amp;gt; &amp;gt;&amp;gt; so, does it show as loaded?
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; Neil
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; "Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message
&amp;gt; &amp;gt;&amp;gt; news:41827287_2@newsprd01...
&amp;gt; &amp;gt;&amp;gt; &amp;gt;I followed exactly step-by-step showing in the program help. After
&amp;gt; &amp;gt; compile
&amp;gt; &amp;gt;&amp;gt; &amp;gt; the DLL register the registry, run IV, I couldn't see the AddIn
Sample
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Toolbar  in the Panel bar
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Anyone experieced this before, Please give out a hint.
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Thanks.
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/CHRIS_SORENSON2003&gt;&lt;/NMUNRO&gt;&lt;/CHRIS_SORENSON2003&gt;&lt;/NMUNRO&gt;</description>
      <pubDate>Fri, 29 Oct 2004 17:25:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171456#M164654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171457#M164655</link>
      <description>Did you have all sessions of Inventor completely closed when you registered
the DLL after compiling?  Even an Inventor.exe running in the background
will stop the DLL register, check task manager.

-- 
Paul Houlker
Rimex Supply Ltd
www.rimex.com
"Calimesa" &lt;CHRIS_SORENSON2003&gt; wrote in message
news:41827287_2@newsprd01...
&amp;gt; I followed exactly step-by-step showing in the program help. After compile
&amp;gt; the DLL register the registry, run IV, I couldn't see the AddIn Sample
&amp;gt; Toolbar  in the Panel bar
&amp;gt; Anyone experieced this before, Please give out a hint.
&amp;gt; Thanks.
&amp;gt;
&amp;gt;&lt;/CHRIS_SORENSON2003&gt;</description>
      <pubDate>Fri, 29 Oct 2004 17:46:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171457#M164655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T17:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171458#M164656</link>
      <description>Ok, I see this is from IV8. Is that the latest version you have on the
machine? The toolbar setup uses the IV8 methods whch are no longer
officially supported in IV9 (but should work). I have both 8 and 9 here and
there seems to be an issue with the line:

oEnvBase.PanelBarList.Add oCommandBar

oCommandBar is a CommandBarBase object and the .Add method wants a
CommandBar (should not be a problem but it fails with a Type Mismatch
error). I'm not sure if having both versions is causing the problem.

If you customize the UI, does the toolbar show up in the list. It does for
me if I comment out the above line. You can them manually add it to the 2D
sketch environment.

Anyone else have any ideas?

Neil</description>
      <pubDate>Fri, 29 Oct 2004 22:20:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171458#M164656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T22:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171459#M164657</link>
      <description>didn't that sample add a whole new panelbar?  I remember looking at one of
the new samples a while back and I couldn't find the toolbars right away,
but then noticed a new item in the panel bar changer.

I haven't really looked over the code posted, so hopefully it isn't too
obvous that I am off &lt;G&gt;

-- 
Kent Keller
Autodesk Discussion Forum Facilitator


"Neil Munro" &lt;NMU&gt; wrote in message
news:4182c14d_3@newsprd01...


&amp;gt; oEnvBase.PanelBarList.Add oCommandBar

&amp;gt;&lt;/NMU&gt;&lt;/G&gt;</description>
      <pubDate>Fri, 29 Oct 2004 22:26:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171459#M164657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T22:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171460#M164658</link>
      <description>oEnvBase is set to the 2D Sketch environment so it should add it a command
bar in the 2D sketch environment, but I can't get it to run here.

Neil

"Kent Keller" &lt;KENTKSTROBEDATA.COM add="" the=""&gt; wrote in message
news:4182c399_1@newsprd01...
&amp;gt; didn't that sample add a whole new panelbar?  I remember looking at one of
&amp;gt; the new samples a while back and I couldn't find the toolbars right away,
&amp;gt; but then noticed a new item in the panel bar changer.
&amp;gt;
&amp;gt; I haven't really looked over the code posted, so hopefully it isn't too
&amp;gt; obvous that I am off &lt;G&gt;
&amp;gt;
&amp;gt; -- 
&amp;gt; Kent Keller
&amp;gt; Autodesk Discussion Forum Facilitator
&amp;gt;
&amp;gt;
&amp;gt; "Neil Munro" &lt;NMU&gt; wrote in message
&amp;gt; news:4182c14d_3@newsprd01...
&amp;gt;
&amp;gt;
&amp;gt; &amp;gt; oEnvBase.PanelBarList.Add oCommandBar
&amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/NMU&gt;&lt;/G&gt;&lt;/KENTKSTROBEDATA.COM&gt;</description>
      <pubDate>Fri, 29 Oct 2004 22:36:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171460#M164658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T22:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171461#M164659</link>
      <description>Replacing the line
oEnvBase.PanelBarList.Add oCommandBar
with
oEnvBase.PanelBarList._Add oCommandBar
should make it work. An underscore was added to the old Add method and
hidden.

Sanjay-

"Neil Munro" &lt;NMU&gt; wrote in message
news:4182c14d_3@newsprd01...
&amp;gt; Ok, I see this is from IV8. Is that the latest version you have on the
&amp;gt; machine? The toolbar setup uses the IV8 methods whch are no longer
&amp;gt; officially supported in IV9 (but should work). I have both 8 and 9 here
and
&amp;gt; there seems to be an issue with the line:
&amp;gt;
&amp;gt; oEnvBase.PanelBarList.Add oCommandBar
&amp;gt;
&amp;gt; oCommandBar is a CommandBarBase object and the .Add method wants a
&amp;gt; CommandBar (should not be a problem but it fails with a Type Mismatch
&amp;gt; error). I'm not sure if having both versions is causing the problem.
&amp;gt;
&amp;gt; If you customize the UI, does the toolbar show up in the list. It does for
&amp;gt; me if I comment out the above line. You can them manually add it to the 2D
&amp;gt; sketch environment.
&amp;gt;
&amp;gt; Anyone else have any ideas?
&amp;gt;
&amp;gt; Neil
&amp;gt;
&amp;gt;&lt;/NMU&gt;</description>
      <pubDate>Fri, 29 Oct 2004 22:59:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171461#M164659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T22:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171462#M164660</link>
      <description>Thanks Sanjay.

Neil

"Sanjay Ramaswamy (Autodesk)" &lt;DISCUSSION.SUPPORT&gt; wrote in
message news:4182cb51$1_3@newsprd01...
&amp;gt; Replacing the line
&amp;gt; oEnvBase.PanelBarList.Add oCommandBar
&amp;gt; with
&amp;gt; oEnvBase.PanelBarList._Add oCommandBar
&amp;gt; should make it work. An underscore was added to the old Add method and
&amp;gt; hidden.
&amp;gt;
&amp;gt; Sanjay-
&amp;gt;
&amp;gt;&lt;/DISCUSSION.SUPPORT&gt;</description>
      <pubDate>Fri, 29 Oct 2004 23:28:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171462#M164660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-29T23:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171463#M164661</link>
      <description>Samples  seem hard to understand to the beginners. Do you have any simple
(very simple) add-in I can start with
Thanks.

"Sanjay Ramaswamy (Autodesk)" &lt;DISCUSSION.SUPPORT&gt; wrote in
message news:4182cb51$1_3@newsprd01...
&amp;gt; Replacing the line
&amp;gt; oEnvBase.PanelBarList.Add oCommandBar
&amp;gt; with
&amp;gt; oEnvBase.PanelBarList._Add oCommandBar
&amp;gt; should make it work. An underscore was added to the old Add method and
&amp;gt; hidden.
&amp;gt;
&amp;gt; Sanjay-
&amp;gt;
&amp;gt; "Neil Munro" &lt;NMU&gt; wrote in message
&amp;gt; news:4182c14d_3@newsprd01...
&amp;gt; &amp;gt; Ok, I see this is from IV8. Is that the latest version you have on the
&amp;gt; &amp;gt; machine? The toolbar setup uses the IV8 methods whch are no longer
&amp;gt; &amp;gt; officially supported in IV9 (but should work). I have both 8 and 9 here
&amp;gt; and
&amp;gt; &amp;gt; there seems to be an issue with the line:
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; oEnvBase.PanelBarList.Add oCommandBar
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; oCommandBar is a CommandBarBase object and the .Add method wants a
&amp;gt; &amp;gt; CommandBar (should not be a problem but it fails with a Type Mismatch
&amp;gt; &amp;gt; error). I'm not sure if having both versions is causing the problem.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; If you customize the UI, does the toolbar show up in the list. It does
for
&amp;gt; &amp;gt; me if I comment out the above line. You can them manually add it to the
2D
&amp;gt; &amp;gt; sketch environment.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Anyone else have any ideas?
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Neil
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/NMU&gt;&lt;/DISCUSSION.SUPPORT&gt;</description>
      <pubDate>Mon, 01 Nov 2004 16:24:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/1171463#M164661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-01T16:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: AddInSample</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/3431215#M164662</link>
      <description>&lt;P&gt;I have the same problem after upgrading to 2013 Pro. couldnt figure out how to fix it reading this post!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 20:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/addinsample/m-p/3431215#M164662</guid>
      <dc:creator>3DAli</dc:creator>
      <dc:date>2012-04-25T20:35:45Z</dc:date>
    </item>
  </channel>
</rss>

