I had a comment on one of the previous posts about iProperties asking about how to present the user a list of valid entries for an iProperty. It’s a good question and would be a useful feature, but is not something that Inventor supports. However, that’s an advantage of learning to program because you can create new functionality and add support for this yourself, which I’ve demonstrated below.
I’ve written a sample program to demonstrate one possible solution to this problem. The program is an Inventor add-in. It adds a new command to the application menu in the ribbon, as shown below. (It will add it to the File menu if you’re using the classic user-interface.) I chose to call the command iProperties+.
When the command is executed it brings up a custom iProperties dialog, as shown below.
This dialog provides access to some of the standard iProperties plus an additional custom iProperty (Finish). It has the advantage of providing a simplified view of the iProperties where only those iProperties that are important for your workflow are shown. This makes it faster to enter the values and much easier since you’re not having to navigate through several tabs to remember and find the iProperties you need to fill out.
Another advantage is that since this is a custom dialog you can choose to present the iProperties in any form you want. For example, Finish, Material, and Approved By are implemented as combo boxes allowing you to present the user with a list of valid values. The picture below shows the drop-down list when the Finish field is selected. Using the drop-down makes is even easier for the user and eliminates any mistakes from typing.
Here is the source code for this sample. It’s written using Visual Basic Express 2008 and is compatible with Inventor 2010 and later since it expects the ribbon to be available. I don’t think the program is very useful as-is since everyone will have different requirements as far as which properties they want to display. In my sample I chose to use an external file to define the contents of the drop-down lists so they could be easily updated without modifying any code. If you want to see the program run, you just need to open the source within VB Express and compile it. This will compile and register it on your system so that when you start Inventor you should see the “iProperties +” icon in the Application menu.
The use of iProperties within the program is the most important part of the program but is also a small portion of the code. There is quite a bit of add-in code and also a fair amount of code to deal with the dialog. Updating this program for your specific needs would be a good project to get you going in the world of add-in development using VB.Net. For some background on add-ins and user-interface customization you might want to read these other posts; Accessing iProperties, Custom iProperties, and Supporting the Ribbon User Interface.

Subscribe
how to make this program compatible with Inventor 2011?
Posted by: Marcos | December 30, 2010 at 04:50 AM
Hi Brian
nice work. can you please tell me how i can launch inventor iProperties dialog from my addin.
unable to find any info in API.
Posted by: nav | June 21, 2010 at 08:14 AM
To open and compile this in VB Express, just download and install Visual Basic 2008 Express. You can get this at:
http://www.microsoft.com/express/Downloads/
There is also Visual Basic 2010 Express. It should also work but I haven't spent much time with it yet so there are some unknowns. To keep it simple I would stick with 2008 to get started.
Once that's installed and you've downloaded the sample program, just double-click on the iPropertiesPlus.sln file. This will open up the program within Visual Studio. Finally run the Build command from the Build menu. This will create the add-in and also perform the required registration. The next time you run Inventor you should see the new command in the ribbon.
-Brian
Posted by: Brian Ekins | June 10, 2010 at 07:48 AM
Hi Brian,
It will be a very useful tool for us, if I can get it run. Could you give me more detail on how to "open the source within VB Express and compile it"?
Thanks.
Posted by: PBL | June 10, 2010 at 06:24 AM
Hi Dear
Thank you very Much.
it is useful to learn Inv .net for me
Tks again
Posted by: Wenja | February 20, 2010 at 07:52 PM
Hi, Brian
Very interesting.
A question: There is a way to put these iProperties in a tooltip?. For example when you have an Assembly this tooltip shows information (part number, weight, and so on..)when you pass the cursor over each part. (similar to AutoCAD). Is it possible?
Thanks!!
Posted by: jjbt | February 16, 2010 at 01:01 PM
Hi Brian,
thanks for the source code!
juergen
Posted by: Jürgen | February 16, 2010 at 11:30 AM