<?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: Creating my first ADD-IN errors in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6251917#M111009</link>
    <description>&lt;P&gt;Hi, can you post your code from "&lt;SPAN&gt;StandardAddinServer.vb"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It looks like most of the errors are caused by missing Icons.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you add the icons to the AddIn?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you have set up "Build Action" of your icons to "Embedded Resource"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, if you haven't paced any code in your AddIn yet, you can try my template.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Extract it, run the&amp;nbsp;_New Inventor Addin.bat, write in &lt;STRONG&gt;NewProjectName&lt;/STRONG&gt; and it'll rename all needed parts&amp;nbsp;of&amp;nbsp;the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've made this template for my use, as the program I'm ussing (SharpDevelop) doesn't have clasic templates and I find this easier.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 11:11:47 GMT</pubDate>
    <dc:creator>Owner2229</dc:creator>
    <dc:date>2016-04-05T11:11:47Z</dc:date>
    <item>
      <title>Creating my first ADD-IN errors</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6251883#M111008</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make my first AddIn! And it's not without up's and downs as I might add.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had my first error when using the Autodesk Inventor 2014 AddIn template. I just opened it for a new project and pressed build!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;The command "call "%VS140COMNTOOLS%vsvars32"
			mt.exe -manifest "C:\Users\jeee\AppData\Local\Temporary Projects\InventorAddIn1\InventorAddIn1.X.manifest" -outputresource:"C:\Users\jeee\AppData\Local\Temporary Projects\InventorAddIn1\bin\Debug\InventorAddIn1.dll";#2" exited with code 9009.&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;But a fix was handed to me by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3072914"&gt;@Owner2229﻿&lt;/a&gt; in &lt;A href="https://forums.autodesk.com/t5/inventor-customization/my-first-addon-help/m-p/6251420#M62884" target="_blank"&gt;this&lt;/A&gt; topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I can build the solution and&amp;nbsp;Autodesk Inventor launches. But I have the feeling that something is seriously wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The immediate window is showing this information:&lt;/P&gt;&lt;PRE&gt;Bad Image: pack://application:,,,/InvAIRLookImages;component/Resources/Icons/INV_Sketch_ConstraintVisibility_Cmd_32x32.ico:Cannot locate resource 'resources/icons/inv_sketch_constraintvisibility_cmd_32x32.ico'.
Bad Image: pack://application:,,,/InvAIRLookImages;component/Resources/Icons/INV_Sketch_ConstraintOptions_Cmd_32x32.ico:Cannot locate resource 'resources/icons/inv_sketch_constraintoptions_cmd_32x32.ico'.
Bad Image: pack://application:,,,/InvAIRLookImages;component/Resources/Icons/INV_Sketch_ConstraintVisibility_Cmd_32x32.ico:Cannot locate resource 'resources/icons/inv_sketch_constraintvisibility_cmd_32x32.ico'.
Bad Image: pack://application:,,,/InvAIRLookImages;component/Resources/Icons/INV_Sketch_ConstraintVisibility_Cmd_32x32.ico:Cannot locate resource 'resources/icons/inv_sketch_constraintvisibility_cmd_32x32.ico'.
Bad Image: pack://application:,,,/InvAIRLookImages;component/Resources/Icons/INV_Sketch_ConstraintOptions_Cmd_32x32.ico:Cannot locate resource 'resources/icons/inv_sketch_constraintoptions_cmd_32x32.ico'.
Bad Image: pack://application:,,,/InvAIRLookImages;component/Resources/Icons/INV_Sketch_ConstraintVisibility_Cmd_32x32.ico:Cannot locate resource 'resources/icons/inv_sketch_constraintvisibility_cmd_32x32.ico'.
Bad Image: pack://application:,,,/InvAIRLookImages;component/Resources/Icons/INV_Sketch_ConstraintOptions_Cmd_32x32.ico:Cannot locate resource 'resources/icons/inv_sketch_constraintoptions_cmd_32x32.ico'.
System.Windows.Data Error: 40 : BindingExpression path error: 'ApplicationMenuButtonBackground' property not found on 'object' ''InvFlowRibbonControl' (Name='')'. BindingExpression:Path=ApplicationMenuButtonBackground; DataItem='InvFlowRibbonControl' (Name=''); target element is 'RibbonApplicationMenuButton' (Name=''); target property is 'Background' (type 'Brush')
System.Windows.Data Error: 40 : BindingExpression path error: 'ApplicationMenuButtonBorderBrush' property not found on 'object' ''InvFlowRibbonControl' (Name='')'. BindingExpression:Path=ApplicationMenuButtonBorderBrush; DataItem='InvFlowRibbonControl' (Name=''); target element is 'RibbonApplicationMenuButton' (Name=''); target property is 'BorderBrush' (type 'Brush')
System.Windows.Data Error: 40 : BindingExpression path error: 'Id' property not found on 'object' ''InvFlowRibbonPanel' (HashCode=14810456)'. BindingExpression:Path=Id; DataItem='InvFlowRibbonPanel' (HashCode=14810456); target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'AutomationId' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'AutomationName' property not found on 'object' ''InvFlowRibbonPanel' (HashCode=14810456)'. BindingExpression:Path=AutomationName; DataItem='InvFlowRibbonPanel' (HashCode=14810456); target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'Id' property not found on 'object' ''InvFlowRibbonPanel' (HashCode=9028608)'. BindingExpression:Path=Id; DataItem='InvFlowRibbonPanel' (HashCode=9028608); target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'AutomationId' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'AutomationName' property not found on 'object' ''InvFlowRibbonPanel' (HashCode=9028608)'. BindingExpression:Path=AutomationName; DataItem='InvFlowRibbonPanel' (HashCode=9028608); target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'Id' property not found on 'object' ''InvFlowRibbonPanel' (HashCode=66273709)'. BindingExpression:Path=Id; DataItem='InvFlowRibbonPanel' (HashCode=66273709); target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'AutomationId' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'AutomationName' property not found on 'object' ''InvFlowRibbonPanel' (HashCode=66273709)'. BindingExpression:Path=AutomationName; DataItem='InvFlowRibbonPanel' (HashCode=66273709); target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='ToolBarCustomizeButton' (HashCode=25975757); target element is 'ToolBarToggleButton' (Name='mCustomizeButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='ToolBarCustomizeButton' (HashCode=25975757); target element is 'ToolBarToggleButton' (Name='mCustomizeButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='ToolBarCustomizeButton' (HashCode=25975757); target element is 'RibbonItemControl' (Name=''); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='InfoCenterTextBox' (HashCode=65325544); target element is 'RibbonItemControl' (Name=''); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='InfoCenterTextBox' (HashCode=65325544); target element is 'Button' (Name='PART_AcceptButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='WebServicesLoginButton' (HashCode=13286310); target element is 'LoginButtonRibbonItemControl' (Name='mContainer'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='StayConnectedButton' (HashCode=15318330); target element is 'RibbonItemControl' (Name='mContainer'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='RibbonToggleButton' (HashCode=45810748); target element is 'RibbonItemControl' (Name=''); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=Id; DataItem='RibbonMenuButton' (HashCode=9424035); target element is 'RibbonMinimizeExecuteButton' (Name='mMinimizeButtonExecute'); target property is 'AutomationId' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='RibbonMenuButton' (HashCode=9424035); target element is 'RibbonMinimizeExecuteButton' (Name='mMinimizeButtonExecute'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=Id; DataItem='RibbonMenuButton' (HashCode=9424035); target element is 'RibbonMinimizeToggleButton' (Name='mMinimizeButtonFlyout'); target property is 'AutomationId' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='RibbonMenuButton' (HashCode=9424035); target element is 'RibbonMinimizeToggleButton' (Name='mMinimizeButtonFlyout'); target property is 'Name' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'Orientation' property not found on 'object' ''InvFlowRibbonGallery' (HashCode=31783765)'. BindingExpression:Path=Orientation; DataItem='InvFlowRibbonGallery' (HashCode=31783765); target element is 'RibbonItemControl' (Name='mRibbonItemControl'); target property is 'Orientation' (type 'Orientation')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='WebServicesLoginButton' (HashCode=13286310); target element is 'WebservicesLoginButtonControl' (Name='mDropDownButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='WebServicesLoginButton' (HashCode=13286310); target element is 'RibbonListButtonListBox' (Name='PART_ListButtonList'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='ToolBarCustomizeButton' (HashCode=59343073); target element is 'ToolBarToggleButton' (Name='mCustomizeButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='ToolBarCustomizeButton' (HashCode=59343073); target element is 'ToolBarToggleButton' (Name='mCustomizeButton'); target property is 'Name' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='ToolBarCustomizeButton' (HashCode=59343073); target element is 'RibbonItemControl' (Name=''); target property is 'Name' (type 'String')
Inventor.exe Information: 0 : ================================================================
Inventor.exe Information: 0 : Activating Gateway Addin: Eco Materials Adviser for Autodesk Inventor 2014 v4.4.1.0/RELEASE/4.4.1 (WSDL 12/05)
Inventor.exe Information: 0 : Looking for Gateway environment in Inventor environment list
Inventor.exe Information: 0 : Did not find Gateway environment in Inventor environment list, adding..
Inventor.exe Information: 0 : Disabling commands in environment
Inventor.exe Information: 0 : Adding environment to the parallel environment group
Inventor.exe Information: 0 : Gateway environment was initialised
Inventor.exe Information: 0 : GatewayEnvironment constructor
System.Windows.Data Error: 40 : BindingExpression path error: 'ItemHeight' property not found on 'object' ''ScrollBar' (Name='PART_VerticalScrollBar')'. BindingExpression:Path=ItemHeight; DataItem='ScrollBar' (Name='PART_VerticalScrollBar'); target element is 'Grid' (Name=''); target property is 'MinHeight' (type 'Double')
System.Windows.Data Error: 40 : BindingExpression path error: 'ShowOverlayImage' property not found on 'object' ''InvFlowRibbonCommandItem' (HashCode=26073299)'. BindingExpression:Path=ShowOverlayImage; DataItem='InvFlowRibbonCommandItem' (HashCode=26073299); target element is 'Image' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'OverlayImage' property not found on 'object' ''InvFlowRibbonCommandItem' (HashCode=26073299)'. BindingExpression:Path=OverlayImage; DataItem='InvFlowRibbonCommandItem' (HashCode=26073299); target element is 'Image' (Name=''); target property is 'Source' (type 'ImageSource')
System.Windows.Data Error: 40 : BindingExpression path error: 'ShowOverlayImage' property not found on 'object' ''InvFlowRibbonCommandItem' (HashCode=51440330)'. BindingExpression:Path=ShowOverlayImage; DataItem='InvFlowRibbonCommandItem' (HashCode=51440330); target element is 'Image' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'OverlayImage' property not found on 'object' ''InvFlowRibbonCommandItem' (HashCode=51440330)'. BindingExpression:Path=OverlayImage; DataItem='InvFlowRibbonCommandItem' (HashCode=51440330); target element is 'Image' (Name=''); target property is 'Source' (type 'ImageSource')
System.Windows.Data Error: 40 : BindingExpression path error: 'ShowOverlayImage' property not found on 'object' ''InvFlowRibbonCommandItem' (HashCode=53398115)'. BindingExpression:Path=ShowOverlayImage; DataItem='InvFlowRibbonCommandItem' (HashCode=53398115); target element is 'Image' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'OverlayImage' property not found on 'object' ''InvFlowRibbonCommandItem' (HashCode=53398115)'. BindingExpression:Path=OverlayImage; DataItem='InvFlowRibbonCommandItem' (HashCode=53398115); target element is 'Image' (Name=''); target property is 'Source' (type 'ImageSource')
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='24857797'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='Autodesk.Private.Windows.RibbonPanelControl'; TargetElement.HashCode='36022812'; TargetElement.Type='Autodesk.Private.Windows.RibbonPanelControl'
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='22393581'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='Autodesk.Private.Windows.RibbonPanelControl'; TargetElement.HashCode='36022812'; TargetElement.Type='Autodesk.Private.Windows.RibbonPanelControl'
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='24857797'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='Autodesk.Private.Windows.RibbonPanelControl'; TargetElement.HashCode='43309474'; TargetElement.Type='Autodesk.Private.Windows.RibbonPanelControl'
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='22393581'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='Autodesk.Private.Windows.RibbonPanelControl'; TargetElement.HashCode='43309474'; TargetElement.Type='Autodesk.Private.Windows.RibbonPanelControl'
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='24857797'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='Autodesk.Private.Windows.RibbonPanelControl'; TargetElement.HashCode='51318482'; TargetElement.Type='Autodesk.Private.Windows.RibbonPanelControl'
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='22393581'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='Autodesk.Private.Windows.RibbonPanelControl'; TargetElement.HashCode='51318482'; TargetElement.Type='Autodesk.Private.Windows.RibbonPanelControl'
Connectivity.Request.Common.RequestLibrary - RequestRuntimeStart()
Connectivity.Request.Vault.RequestLibrary - RequestRuntimeStart()
Connectivity.Request.Foundation.RequestLibrary - RequestRuntimeStart()
Connectivity.Request.Document.RequestLibrary - RequestRuntimeStart()
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'FlowRibbonContextMenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'FlowRibbonContextMenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'FlowRibbonMoveContextMenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'FlowRibbonMoveContextMenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'FlowRibbonMoveContextMenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'FlowRibbonMoveContextMenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'FlowRibbonMoveContextMenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'FlowRibbonMoveContextMenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'FlowRibbonMoveContextMenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'FlowRibbonMoveContextMenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'FlowRibbonGroupContextMenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'FlowRibbonGroupContextMenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'FlowRibbonGroupContextMenuItem' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'FlowRibbonGroupContextMenuItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'RibbonMinimizeExecuteButton' (Name='mMinimizeButtonExecute'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'RibbonMinimizeToggleButton' (Name='mMinimizeButtonFlyout'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonItemControl', AncestorLevel='1''. BindingExpression:Path=Size; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mCollapsedPanelText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mCollapsedPanelText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Internal.Windows.RibbonPanelFrame', AncestorLevel='1''. BindingExpression:Path=ShowSlideOutPanelAbove; DataItem=null; target element is 'RibbonPanelControl' (Name='mPanelControl'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonItemControl', AncestorLevel='1''. BindingExpression:Path=Size; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mCollapsedPanelText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mCollapsedPanelText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Internal.Windows.RibbonPanelFrame', AncestorLevel='1''. BindingExpression:Path=ShowSlideOutPanelAbove; DataItem=null; target element is 'RibbonPanelControl' (Name='mPanelControl'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonItemControl', AncestorLevel='1''. BindingExpression:Path=Size; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mCollapsedPanelText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mCollapsedPanelText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Internal.Windows.RibbonPanelFrame', AncestorLevel='1''. BindingExpression:Path=ShowSlideOutPanelAbove; DataItem=null; target element is 'RibbonPanelControl' (Name='mPanelControl'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'PlacementTarget' (type 'FrameworkElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'ActivationTarget' (type 'FrameworkElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mText'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'PlacementTarget' (type 'FrameworkElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mText'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'ActivationTarget' (type 'FrameworkElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=ItemOrientation; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=ItemOrientation; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=IsItemTextVisible; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=ItemOrientation; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=ItemOrientation; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=IsItemTextVisible; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'ToggleButton' (Name='mGalleryToggleButtonInComboBoxMode'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'DropDownToggleButton' (Name='mGalleryToggleButtonInButtonMode'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'ToggleButton' (Name='mDropDownToggleButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'ComboButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'ComboButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'ComboButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'ComboButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'ComboButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'ComboButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'ComboButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlockWithToolTip' (Name='mText'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:Path=; DataItem=null; target element is 'TextBlock' (Name='Text'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mDropDownButtonBuddy'. BindingExpression:Path=IsEnabled; DataItem=null; target element is 'WebservicesLoginButtonControl' (Name='mDropDownButton'); target property is 'IsEnabled' (type 'Boolean')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mDock'. BindingExpression:(no path); DataItem=null; target element is 'RibbonListButtonPopup' (Name='mFlyoutPopup'); target property is 'PlacementTarget' (type 'UIElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'PlacementTarget' (type 'FrameworkElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'ActivationTarget' (type 'FrameworkElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'RepeatButton' (Name='PART_GalleryControlUpButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'RepeatButton' (Name='PART_GalleryControlDownButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'ListItemButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'ListItemButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Private.Windows.ToolBars.ToolBarControl', AncestorLevel='1''. BindingExpression:(no path); DataItem=null; target element is 'ListItemButton' (Name='mButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=ItemOrientation; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=ItemOrientation; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=IsItemTextVisible; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=ItemOrientation; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=ItemOrientation; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonControl', AncestorLevel='1''. BindingExpression:Path=IsItemTextVisible; DataItem=null; target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess this is not normal behaviour? What should I do?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 10:37:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6251883#M111008</guid>
      <dc:creator>Jef_E</dc:creator>
      <dc:date>2016-04-05T10:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating my first ADD-IN errors</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6251917#M111009</link>
      <description>&lt;P&gt;Hi, can you post your code from "&lt;SPAN&gt;StandardAddinServer.vb"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It looks like most of the errors are caused by missing Icons.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you add the icons to the AddIn?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you have set up "Build Action" of your icons to "Embedded Resource"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, if you haven't paced any code in your AddIn yet, you can try my template.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Extract it, run the&amp;nbsp;_New Inventor Addin.bat, write in &lt;STRONG&gt;NewProjectName&lt;/STRONG&gt; and it'll rename all needed parts&amp;nbsp;of&amp;nbsp;the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've made this template for my use, as the program I'm ussing (SharpDevelop) doesn't have clasic templates and I find this easier.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 11:11:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6251917#M111009</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2016-04-05T11:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating my first ADD-IN errors</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6251981#M111010</link>
      <description>&lt;P&gt;I stil have to set the extrenal program to debug with this template right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use your template and add the external program for debug I get the same errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the correct path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;C:\Program Files\Autodesk\Inventor 2014\Bin\Inventor.exe&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 11:55:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6251981#M111010</guid>
      <dc:creator>Jef_E</dc:creator>
      <dc:date>2016-04-05T11:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating my first ADD-IN errors</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6252013#M111011</link>
      <description>&lt;P&gt;You can't debug an addin directly from VS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is how to do so (from&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/532715" target="_self"&gt;yuhanzhang&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Install Inventor wizard from SDK\Developer Tools\Tools\Wizards\InventorWizards.msi.&lt;/LI&gt;&lt;LI&gt;Open Visual Studio, new an Inventor addin project with template.&lt;/LI&gt;&lt;LI&gt;Add you code to addin.&lt;/LI&gt;&lt;LI&gt;Copy the &lt;STRONG&gt;.addin&lt;/STRONG&gt; file to proper location according to step #3) in Readme.txt.&lt;/LI&gt;&lt;LI&gt;In VS, open the addin Properties(Project-&amp;gt;&lt;EM&gt;[addinname]&lt;/EM&gt; Properties), on Compile tab, set below settings:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Configuration:&lt;/STRONG&gt; Debug&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Build output path:&lt;/STRONG&gt; C:\Program Files\Autodesk\Inventor &lt;EM&gt;[version]\&lt;/EM&gt;Bin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(this will avoid manually copying the binary to that folder).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. Compile the addin(if&amp;nbsp;you don't set the Build output path above, just manually copy the binary to the Inventor Bin folder).&lt;/P&gt;&lt;P&gt;7. Launch Inventor.&lt;/P&gt;&lt;P&gt;8. In VS, Tools-&amp;gt;Attach to Process…-&amp;gt;choose Inventor.exe-&amp;gt;Attach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Addin folder is:&lt;/P&gt;&lt;P&gt;C:\ProgramData\Autodesk\Inventor Addins\&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 12:05:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6252013#M111011</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2016-04-05T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating my first ADD-IN errors</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6252219#M111012</link>
      <description>&lt;P&gt;Okay, and that why i'm getting these errors then.. do not debug &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see my project is loaded in Inventor with these steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would like to add functionality to my AddIn, just to be safe, ill check with you that i'm doing the correct thing here.&lt;/P&gt;&lt;P&gt;I would like to run a Sub on the save event of Inventor. for example after each save msgbox "file saved". where would you store the Sub if using your template and how would you trigger with the event?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 13:37:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6252219#M111012</guid>
      <dc:creator>Jef_E</dc:creator>
      <dc:date>2016-04-05T13:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating my first ADD-IN errors</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6253149#M111013</link>
      <description>&lt;P&gt;I'm sorry, this isn't entirely accurate.&lt;BR /&gt;While you can take these steps to debug your add-in, it is possible to debug directly from VS, I do it all the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to this post where I explain how&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/debug-inventor-addin-inventor-2015-visual-studio-enterprise-2015/m-p/5917494/thread-id/60025" target="_blank"&gt;Debug Inventor Addin&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMO this is the best way since all you have to do is click the play button or hit F5 to start debugging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 20:01:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6253149#M111013</guid>
      <dc:creator>Boorda</dc:creator>
      <dc:date>2016-04-05T20:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating my first ADD-IN errors</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6253161#M111014</link>
      <description>BTW, those errors are WPF Binding errors generated by Inventor, you can't fix those. They are not related to your add-in. Usually once Inventor loads I clear those out, and watch for output from my add-in. Keep in mid that this output will show other Inventor errors along with your add-in's errors since your add-in is loaded into Inventors AppDomain. For example, just switch tabs in the Inventor Tool Ribbon and you'll see more binding errors.</description>
      <pubDate>Tue, 05 Apr 2016 20:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6253161#M111014</guid>
      <dc:creator>Boorda</dc:creator>
      <dc:date>2016-04-05T20:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating my first ADD-IN errors</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6253669#M111015</link>
      <description>&lt;P&gt;Hi, as for the "OnSaveRun"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you only want it to show the MsgBox, then I'll put it directly to "&lt;SPAN&gt;StandardAddinServer.vb".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using the template I send you:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In&amp;nbsp;"&lt;SPAN&gt;StandardAddinServer.vb" in Sub "Activate" there are these lines, add the red-colored:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'initialize event handlers&lt;/STRONG&gt;&lt;/FONT&gt;
m_UserInterfaceEvents = InventorApplication.UserInterfaceManager.UserInterfaceEvents
AddHandler m_UserInterfaceEvents.OnResetCommandBars, AddressOf Me.UserInterfaceEvents_OnResetCommandBars
AddHandler m_UserInterfaceEvents.OnResetRibbonInterface, AddressOf Me.UserInterfaceEvents_OnResetRibbonInterface
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;AddHandler m_AppEvents.OnSaveDocument, AddressOf Me.m_Events_OnSaveDocument
AddHandler m_AppEvents.OnOpenDocument, AddressOf Me.m_Events_OnOpenDocument
AddHandler m_AppEvents.OnNewDocument, AddresOf Me.m_Events_OnNewDocument&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;In Sub "Deactivate", look for this and add these red-colored lines:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'release objects&lt;/STRONG&gt;&lt;/FONT&gt;
RemoveHandler m_UserInterfaceEvents.OnResetCommandBars, AddressOf Me.UserInterfaceEvents_OnResetCommandBars
RemoveHandler m_UserInterfaceEvents.OnResetRibbonInterface, AddressOf Me.UserInterfaceEvents_OnResetRibbonInterface
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;RemoveHandler m_AppEvents.OnSaveDocument, AddressOf Me.m_Events_OnSaveDocument
RemoveHandler m_AppEvents.OnOpenDocument, AddressOf Me.m_Events_OnOpenDocument
RemoveHandler m_AppEvents.OnNewDocument, AddressOf Me.m_Events_OnNewDocument&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Now&amp;nbsp;add these Subs below the others in the Class (it muss be above "&lt;SPAN&gt;End&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Class"):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Private Sub m_Events_OnSaveDocument(ByVal DocumentObject As Inventor._Document, ByVal BeforeOrAfter As Inventor.EventTimingEnum, _
    ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum)
    If BeforeOrAfter = EventTimingEnum.kBefore Then
      	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do before document saves&lt;/STRONG&gt;&lt;/FONT&gt;
    Else If BeforeOrAfter = EventTimingEnum.kAfter Then
      	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do after document saves&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;        &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;MsgBox(DocumentObject.FullFileName) &lt;FONT color="#0000FF"&gt;' Here is your MsgBox&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;        'SaveRules_After(DocumentObject) &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' This line is to use the "GlobalFunctions" instead&lt;/STRONG&gt;&lt;/FONT&gt;
    End If
End Sub

Private Sub m_Events_OnNewDocument(ByVal DocumentObject As Inventor._Document)
    If DocumentObject.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do with part document&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;    ElseIf DocumentObject.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then&lt;BR /&gt;        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do with assembly document&lt;/STRONG&gt;&lt;/FONT&gt;
    End If
End Sub&lt;BR /&gt;
Private Sub m_Events_OnOpenDocument(ByVal DocumentObject As Inventor._Document, ByVal FullDocumentName As String, _
    ByVal BeforeOrAfter As Inventor.EventTimingEnum, ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum)
    If BeforeOrAfter = EventTimingEnum.kBefore Then
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do before the document opens&lt;/STRONG&gt;&lt;/FONT&gt;
    Else If BeforeOrAfter = EventTimingEnum.kAfter Then
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do after the document opens&lt;/STRONG&gt;&lt;/FONT&gt;
    End If
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if you'll add more features to it then it should have it's own file (e.g.: "GlobalFunctions.vb").&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Option Explicit
Imports Inventor&lt;BR /&gt;Imports Microsoft.VisualBasic

Public Module GlobalFunctions&lt;BR /&gt;
    Public Sub SaveRules_After(oDoc As Inventor.Document)
        Dim oShortedName As String = ShortName(oDoc.FullFileName)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;        MsgBox(oShortedName)&lt;/STRONG&gt;&lt;/FONT&gt;
    End Sub&lt;BR /&gt;&lt;BR /&gt;    Private Function ShortName(oName As String) As String&lt;BR /&gt;        Dim FNP As Integer = InStrRev(oName, "\", -1)&lt;BR /&gt;        Return Microsoft.VisualBasic.Mid(oName, FNP + 1)&lt;BR /&gt;    End Function&lt;BR /&gt;
End Module&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-my-first-add-in-errors/m-p/6253669#M111015</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2016-04-06T05:08:01Z</dc:date>
    </item>
  </channel>
</rss>

