<?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: Using a DataGridView control in VBA or iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8923355#M73484</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/402494"&gt;@matt_jlt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The sample code you provided should allow additional controls to be added, correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a ComboBox and an OK button. When I add these controls,&lt;/P&gt;&lt;PRE&gt;			'Add controls
			.Controls.Add(dgvMain)		'Data grid
			.Controls.Add(ComboBox1)	'Select customer
			.Controls.Add(btnOK)&lt;/PRE&gt;&lt;P&gt;only the DataGridView control appears.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-22_10-49-22.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/659861i5A1B6220C052E243/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-07-22_10-49-22.png" alt="2019-07-22_10-49-22.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I comment out the dgvMain control,&lt;/P&gt;&lt;PRE&gt;			'Add controls
'''			.Controls.Add(dgvMain)		'Data grid
			.Controls.Add(ComboBox1)	'Select customer
			.Controls.Add(btnOK)&lt;/PRE&gt;&lt;P&gt;then the ComboBox and btnOK appear as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-22_10-53-59.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/659865iAF11FE267D0BD26C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-07-22_10-53-59.png" alt="2019-07-22_10-53-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTICE: I trimmed the graphics to keep the image small. I believe I have the correct positions (Top, Left) defined so the controls do not overlap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you or anyone offer suggestions to see all controls? I have more buttons and a textbox to add.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2019 16:00:59 GMT</pubDate>
    <dc:creator>jberns-newell</dc:creator>
    <dc:date>2019-07-22T16:00:59Z</dc:date>
    <item>
      <title>Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910058#M73472</link>
      <description>&lt;P&gt;Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to design a UserForm for use in Inventor that includes a DataGridView control (table). For example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UserForm with DataGrid for Inventor.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/657658iF8D0D3D24AAD1029/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UserForm with DataGrid for Inventor.png" alt="UserForm with DataGrid for Inventor.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched the forums, and this article comes closest to a match:&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2013/11/table-editing-from-ilogic.html" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/manufacturing/2013/11/table-editing-from-ilogic.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not found a way to add the ComboBox and buttons. I was hoping to find a more native (VBA/iLogic) solution rather than depending on an external file created and compiled with VB.NET.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to build a UserForm shown above from within VBA or iLogic? The table would be populated with information from sheet metal parts. The ComboBox will get names from a SQL database. The Update button will apply the selected customer name to the custom iProperty in the sheet metal parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time and attention. I look forward to the replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:56:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910058#M73472</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-15T16:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910293#M73473</link>
      <description>&lt;P&gt;As far as I know VBA and iLogic do not support datagridview natively. A few years back I wondered the same thing as I was trying to make more complex scripts. I ended up moving all of my VBA scripts to my VB.net dll add-in and I'm happy with all the extras a .Net language has over the Inventor VBA/iLogic.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 18:36:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910293#M73473</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2019-07-15T18:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910329#M73474</link>
      <description>&lt;P&gt;You can also do a VB.Net WPF form instead of Windows Forms for a much more style managed system.&amp;nbsp; I use stand alone exe files that 'grab' Inventor as needed, so they don't even have the standard Add-In limitations (or features for that matter).&amp;nbsp; A standalone app has the benefit of surviving an Inventor crash, and detriment of dealing with multiple Inventor applications (there can be only 1!)&lt;/P&gt;&lt;P&gt;The Inventor VBA system is limited to Windows Forms 2.0 controls which is VERY OLD, you would have to use dll import commands to get controls from other platforms, and/or go through a complex dll registering system for every computer you install the code upon to make sure other users can even access your custom control.&amp;nbsp; Much of these custom control installation issues have been resolved and simplified in the current .Net environment.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 19:00:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910329#M73474</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2019-07-15T19:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910591#M73475</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3677112"&gt;@JamieVJohnson2&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683"&gt;@pball&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating external programs will be a new experience for me.&lt;/P&gt;&lt;P&gt;I have many years of experience as an AutoCAD AutoLISP developer. I have a novice knowledge level of VBA/iLogic, so this will be a big change to standalone code/apps.&lt;/P&gt;&lt;P&gt;Would this be considered a Plug-in?&lt;/P&gt;&lt;P&gt;Should I start with the tutorial, &lt;A href="https://knowledge.autodesk.com/search-result/caas/simplecontent/content/my-first-inventor-plug-overview.html" target="_blank" rel="noopener"&gt;My First Inventor Plug-in Overview&lt;/A&gt;, or would you recommend another resource?&lt;/P&gt;&lt;P&gt;I appreciate the feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 20:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910591#M73475</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-15T20:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910695#M73476</link>
      <description>&lt;P&gt;Get Microsoft Visual Studio (Community Edition is free with lesser debugging tools, Pro is better with way too many debugging tools!&amp;nbsp; Enterprise is flat out overkill for a single user.)&lt;/P&gt;&lt;P&gt;Terms:&lt;/P&gt;&lt;P&gt;Application = .EXE&lt;/P&gt;&lt;P&gt;User Control Library = .DLL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;External program has 2 paths:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Application plug in - you create the code and save it as a DLL.&amp;nbsp; The code is formatted per the 'my first plug-in' tutorial in such a way then when placed where Inventor is looking, it will know what to do with it and load it as one of its normal plug ins.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Stand alone application - you create the code and save it as an EXE.&amp;nbsp; The code has its own entry point, and uses&amp;nbsp;&lt;FONT&gt;invApp = Marshal.GetActiveObject("Inventor.Application")&lt;/FONT&gt; to hook into an active Inventor and begin to do work with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The plug in (1) is well scripted for you to begin, but may introduce issues getting it to work with the appropriate version of Inventor.&amp;nbsp; (I recommend the Microsoft - WPF&amp;nbsp; User Control Library, or the Inventor Application Plug-In template that gets installed with the Inventor SDK)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The stand alone (2) requires you to learn to create an application (I recommend using the Microsoft - WPF Application for VB.Net template in Visual Studio).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides WPF (Windows Presentation Foundation found in the System.Windows.Controls namespace), you can also use Windows Forms Application/User Control Library to rely on the older Windows Forms controls you may be more familiar with from VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WPF is newer, and has many more features, but requires the learning curve from hell!&amp;nbsp; Ok not that bad, but uses XAML (a type of XML that when written creates the VB.Net code page automatically in a hidden file *.g.vb) front end (define your controls) with the VB.Net (or C#.Net) back end (define what your controls do).&amp;nbsp; I used a book Pro WPF in VB 2010 - MacDonald to learn it 9 years ago.&amp;nbsp; It is much easier to use once you get the hang of it, just kind of hard to get the hang of (from a straight VBA point of view) due to its method of passing data around being a new thing; read about MVVM Model View - View Model structure (but don't get lost in it, its not that big of a deal).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the down side.&amp;nbsp; You want to use the WPF DataGrid or WF DataGridView.&amp;nbsp; The default data grid is fully functional pretty awesome free-bee, and totally basic compare to today's awesome program standards.&amp;nbsp; You may find yourself expanding that datagrid's features to the point where you could 'invest' in another data grid (Telerik for one).&amp;nbsp; 3rd Party DataGrids may have many features you are looking for, but you don't necessarily get control over what they do in the background code.&amp;nbsp; Personally I created a custom control that inherits the standard datagrid, and adds sort/filtering controls that make it function much like the MS Access DataGrid control (which is way enhanced when you really look at it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 21:39:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8910695#M73476</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2019-07-15T21:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8919389#M73477</link>
      <description>&lt;P&gt;Jamie (&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3677112"&gt;@JamieVJohnson2&lt;/a&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the wealth of information!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope to explore example plugins and add-ins over the next few days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The WindowsForm template is most familiar to me. The WPF code looks very unfamililar (for now).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this time, I think I will stay with the tools offered by Visual Studio. I cannot justify $1000 3rd-party apps at this time based on my coding experience with VB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions about the DataGridView control:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Would it be possible to sort columns interactively? By that I mean clicking a column header. Once for Ascedning. A second time for Descending. Each subsequent click toggles. That way a user could sort by 'Material' or most importantly, 'Has Flat Pattern'.&lt;/LI&gt;&lt;LI&gt;Would it be possible to add a context menu? If a user discovers a part is missing its flat pattern, it would be great if user could right-click the row and select 'Open' from a context menu. The form would close and then open the selected part. It would be impressive if user could select multiple parts that were missing their flat pattern and open all selected.&lt;/LI&gt;&lt;LI&gt;If context menus are not possible with DataGridView, perhaps instead an Open button would be enabled on the UserForm when a row or rows are selected. Maybe a button to 'Open Parts Missing Flat Pattern'.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As mentioned in the previous post, I must also be able to connect to a SQL database. The customer names would be listed on the UserForm in a ComboBox for single selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is probably a big goal for a beginner with my skills, but I must start somewhere and this is the challenge presented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the information and recommendations. I greatly appreciate the support offered on these forums.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 13:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8919389#M73477</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-19T13:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8919446#M73478</link>
      <description>&lt;P&gt;Sorting by clicking the column headers is a built in feature of DataGridViews, no work required for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right click menus are fairly easy to setup. A ContextMenuStrip needs to be created on the form and then some code written for the MouseUp event on the DataGridView to have the ContextMenuStrip appear. From there each option in the ContextMenuStrip gets it's own subroutine. There should be plenty of examples that are easy to find. Selecting multiple rows is also possible and the code would just have to loop through the selections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you get more specific questions feel free to ask and someone should be able to help out. I know I have a bit of experience with DataGridView since I made an addin that shows all parts in an assembly and allows editing of properties or searching/filtering by different properties.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 13:41:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8919446#M73478</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2019-07-19T13:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8919608#M73479</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683"&gt;@pball&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the info!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is great news on column sorting - one less thing to code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll explore the options of either a ContextMenuStrip or a button to open selected part(s).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to have a button on the Inventor Assembly ribbon that the user will click. This would open the UserForm to review the sheet metal parts, assign a customer name, and then update the parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I will start by building a simple Addin. I'll see what is available on forums and the AU Online classes. Any other resource suggestions are welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regard,&lt;BR /&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 14:49:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8919608#M73479</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-19T14:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8919736#M73480</link>
      <description>&lt;P&gt;The forum and the Mod the Machine blog are two of the major places I learned about VBA and then moving VBA into an addin. Below are links to the blog and two AU pdfs on addin coding. The VBA to Addin pdf gives a good look at how Inventor addins can be created. It also details how to mody a VBA macro so it works in VB.net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/" target="_blank"&gt;https://modthemachine.typepad.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/files/VBAtoAddIn.pdf" target="_blank"&gt;https://modthemachine.typepad.com/files/VBAtoAddIn.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/files/Upgrading%20to%20Ribbon.pdf" target="_blank"&gt;https://modthemachine.typepad.com/files/Upgrading%20to%20Ribbon.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for any non Inventor specific VB.net questions I find googling "VB.net datagridview right click menu" or the like to return good resources, usually vb.net focused forums or stackoverflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:52:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8919736#M73480</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2019-07-19T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8922068#M73481</link>
      <description>&lt;P&gt;Hi Jerry, you can definitely build forms within iLogic without using an external program / makign an addin. It is a bit more tedious and it's all written in code and no form designer but the added advantage is it is all contained within the ilogic rule. If it's a pretty simple function you can do it quite easily.&lt;/P&gt;&lt;P&gt;see datagrid view example below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AddReference "System.Drawing.dll"
Imports System.Windows.Forms
Imports System.Drawing

Public Class FormClass
	Public Sub Main()
		Dim dgvMain As New DataGridView
		With dgvMain
			.Location = New Point(12, 12)
			.Size = New Size(500, 200)
			.ColumnCount = 4
			.RowCount = 5
		End With
		
		Dim myfrm As New Form
		With myfrm
			' Set up form	
			.FormBorderStyle = FormBorderStyle.FixedToolWindow
			.StartPosition = FormStartPosition.CenterScreen
			.Width = 550
			.Height = 400
			.TopMost = True
			.Text = "Custom Form 1"
			.Name = "Custom Form 1"
			
			' Add controls
			.Controls.Add(dgvMain)
		End With
		myfrm.ShowDialog()
	End Sub
End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 04:56:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8922068#M73481</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2019-07-22T04:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8922725#M73482</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683"&gt;@pball&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Great resources! Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 12:24:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8922725#M73482</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-22T12:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8922750#M73483</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/402494"&gt;@matt_jlt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being so new to VB.NET, I am still learning imports, classes, and more. Great to know that a simple form can be created without Designer or a DLL. That will make the first iteration of the program simpler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the DataGridView example. I will build on this to create the UserForm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The number of rows in the table will vary with the number of sheet metal parts in the assembly, but I can get the part count before creating the grid. There should be no need to add/delete rows. Row selection and column sorting will be future features I foresee.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, Matt!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 12:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8922750#M73483</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-22T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8923355#M73484</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/402494"&gt;@matt_jlt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The sample code you provided should allow additional controls to be added, correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a ComboBox and an OK button. When I add these controls,&lt;/P&gt;&lt;PRE&gt;			'Add controls
			.Controls.Add(dgvMain)		'Data grid
			.Controls.Add(ComboBox1)	'Select customer
			.Controls.Add(btnOK)&lt;/PRE&gt;&lt;P&gt;only the DataGridView control appears.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-22_10-49-22.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/659861i5A1B6220C052E243/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-07-22_10-49-22.png" alt="2019-07-22_10-49-22.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I comment out the dgvMain control,&lt;/P&gt;&lt;PRE&gt;			'Add controls
'''			.Controls.Add(dgvMain)		'Data grid
			.Controls.Add(ComboBox1)	'Select customer
			.Controls.Add(btnOK)&lt;/PRE&gt;&lt;P&gt;then the ComboBox and btnOK appear as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-22_10-53-59.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/659865iAF11FE267D0BD26C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-07-22_10-53-59.png" alt="2019-07-22_10-53-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTICE: I trimmed the graphics to keep the image small. I believe I have the correct positions (Top, Left) defined so the controls do not overlap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you or anyone offer suggestions to see all controls? I have more buttons and a textbox to add.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8923355#M73484</guid>
      <dc:creator>jberns-newell</dc:creator>
      <dc:date>2019-07-22T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8923374#M73485</link>
      <description>&lt;P&gt;DISREGARD:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should have experimented with order before posting. Adding the DataGridView control &lt;U&gt;last&lt;/U&gt; resolved the issue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-22_11-03-57.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/659872iD316134BEB8D5D05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-07-22_11-03-57.png" alt="2019-07-22_11-03-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain why it has to be last?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:06:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8923374#M73485</guid>
      <dc:creator>jberns-newell</dc:creator>
      <dc:date>2019-07-22T16:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8926250#M73486</link>
      <description>&lt;P&gt;When I add the following code to the external rule:&lt;/P&gt;&lt;PRE&gt;    If ThisApplication.ActiveDocumentType &amp;lt;&amp;gt; kAssemblyDocumentObject Then
        MsgBox("Please run this routine from an assembly file.", vbCritical, "WARNING")
        Exit Sub
    End If&lt;/PRE&gt;&lt;P&gt;the following errors occur:&lt;/P&gt;&lt;PRE&gt;ERRORS

Rule Compile Errors in Prep_for_ProNest_2019-07-22_C, in Part1

Error on Line 124 : 'Color' is ambiguous, imported from the namespaces or types 'Inventor, System.Drawing'.
Error on Line 125 : 'Color' is ambiguous, imported from the namespaces or types 'Inventor, System.Drawing'.
Error on Line 131 : 'Point' is ambiguous, imported from the namespaces or types 'Inventor, System.Drawing'.
Error on Line 139 : 'Color' is ambiguous, imported from the namespaces or types 'Inventor, System.Drawing'.&lt;/PRE&gt;&lt;P&gt;These errors do not occur prior to adding the code. What could be causing the ambiguity?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the References and Imports:&lt;/P&gt;&lt;PRE&gt;AddReference "System.Data"
AddReference "System.Drawing"
AddReference "System.Xml"
Imports System.Windows.Forms
Imports System.Drawing
Imports System.Data.OleDb
Imports System.Data&lt;/PRE&gt;&lt;P&gt;If I remove (comment out) any of the Add/Import lines above, more errors occur. So these are required I believe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to test if the rule is running in an active assembly. If so, I then need to get the list of referenced documents. This code works when tested in VBA. Fails when run as internal rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried code from this site,&amp;nbsp;&lt;A href="http://inventortrenches.blogspot.com/2013/03/determine-file-type-for-ilogic-rule.html" target="_blank" rel="noopener"&gt;Inventor Trenches - Determine file type for ilogic rule&lt;/A&gt;, but it too results in the ambiguous errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance or insight would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 18:37:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8926250#M73486</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-23T18:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8926345#M73487</link>
      <description>&lt;P&gt;Basically what is happening, is (for a single example lets use color) color is being defined the several imported namespaces.&amp;nbsp; I don't believe the line you posted is the actual line of error, because it doesn't mention color (or the other overlapping named items).&amp;nbsp; A solution would be to use imports that convert to a simpler namespace like a 3 letter abbreviation, that forces the use of the namespace, to separate the multiple "color" named objects, but shorten the namespace path with the abbreviated value.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Imports Excel = Microsoft.Office.Interop.Excel&lt;BR /&gt;Imports SIO = System.IO&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Imports SD = System.Drawing&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;now to find color you must go SD.Color not just Color&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;It can be a pain when you import multiple namespaces that have overlapping object names inside them, but it does happen in larger coded structures.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Also bear in mind many (but not all) System namespace may be 'default' in the reference and imports, so you may be competing with them.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 19:26:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8926345#M73487</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2019-07-23T19:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8926471#M73488</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3677112"&gt;@JamieVJohnson2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the insight, Jamie, as to what is causing the error. I wondered if too many Imports were the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made some progress on eliminating some errors, but have now introduced others. I will keep experimenting to find the correct text to use in the Imports and declaration statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 20:35:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8926471#M73488</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-23T20:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8926990#M73489</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try flexgrid. I haven't tested it with inventor but it is a Microsoft data grid control for vba. I have used it in the past with Access and there is a wealth of information surrounding its usage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now use a DevExpress subscription in vb.net but prior to my vb.net migration, I used flexgrid a lot. You never know, it may be the thing you are looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 05:00:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8926990#M73489</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2019-07-24T05:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8929099#M73490</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1262283"&gt;@NachoShaw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, but I have DataGridView (DGV) working mostly well for me at this time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One peculiar behavior though is sorting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I populate the DGV, I sort the column named "Component" in ascending order.&lt;/P&gt;&lt;PRE&gt;dgvMain.Sort(dgvMain.Columns("Component"), &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/PRE&gt;&lt;P&gt;However, the result is not correct - Part_02 is first and Part_01 is last. Sorting works correctly in Bill of Materials, so I know it is not a typo or spelling issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-24_16-56-42.png" style="width: 166px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/660774i4CF022C8B87C5E61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-07-24_16-56-42.png" alt="2019-07-24_16-56-42.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I sort using descending order:&lt;/P&gt;&lt;PRE&gt;dgvMain.Sort(dgvMain.Columns("Component"), &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/PRE&gt;&lt;P&gt;The order is correct with 4 being first and 1 being last.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-24_16-57-34.png" style="width: 166px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/660775i6559FF0211F1D309/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-07-24_16-57-34.png" alt="2019-07-24_16-57-34.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a bug in the Sort algorithm?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 22:22:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8929099#M73490</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-07-24T22:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using a DataGridView control in VBA or iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8929466#M73491</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen this behavior before. AFAIK Its related incremental sorting. If for example, your numbers were 101, 102 etc it would probably sort correctly however, because they all start with a zero, it sort of organizes them like 2,3,4,5,6,7,8,9,10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 05:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-a-datagridview-control-in-vba-or-ilogic/m-p/8929466#M73491</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2019-07-25T05:36:43Z</dc:date>
    </item>
  </channel>
</rss>

