AutoCAD Inventor :: Open IProperties Toolbox Using VBA
May 7, 2012
I have written a vba macro to automatically check that the description and material properties of a ipt file are correct.
If they are not correct, eg "no description" has been entered then I need to automatically open iProperties so that the user can then input a description.
The crash happens everytime I try to open iProperties from the .iam(Assembly) that I use it in. The only other .ipts I use in the .iam is two small rings. I can open iProperties for the .ipt if I open the .ipt for it self, thou I have .iams that use .ipts that are nearly similar to the one causing the crash, that open iProperties just fine.
I was looking for some iLogic Code for Inventor 2013 that would cycle through all the parts in an assembly grabbing the quantity of each part and setting it equal to the custom property "Qty" of each part.
Having a little trouble creating the for each loop and setting reference to each part without referencing each part by specific name.
Is there any way to add an "iProperties" item to the context menu in the drawing environment, so that I can select a part on the drawing and access its iProperties, instead of having to "Open, edit iProp, Close," for each individual part? - Using Autodesk Inventor Professional 2012
Any way of having 2 files with different file name but identical designs what automatic updates the other one?
I need the same valve design with different materials, stock number and part names but I would like to make sure that both files are always updated to latest rev. Without having to remember to do it my self every time.
Is it possible to create a new TAB in the standard iProperties dialogue box for Inventor Models and Drawings? I want a completely new TAB to hold unique company information fields without having to create Custom Property fields.
In the past we filled in our changes, we did on the part, in the iProperties of the IDW. In the IDW we use some Custom iProperties for this. That's not usefull because you want this data in the 3D-model. Now I have written some code to automate this, which works really great. This code works in the IPT as well as the IDW. But what I want to achieve is: When my IPT is the active document, I want to read out the iProperties from the IDW to check if there is already filled some of these properties, because I have to deal with 'old' documents as well.
So my basis question is: How can I read out iProperties from an IDW into the IPT. I have found lots of solutions which go the opposite direction, IPT -> IDW. I want IDW -> IPT.
I am now looking to work with custom iProperties that will populate our company's new BOM standard. I have not done much with regards to customizing a BOM (I've always used the generic fields). Now my boss has come to me and wants to use the following headings for our BOM....
REF ID, QTY. , DESCRIPTION, SHAPE, SIZE, LENGTH, MASS, TOTAL LENGTH, TOTAL MASS, COMMENTS, REF. DWG. REV., REV. DATE
While I understand some of these fields will require the user to manually type information in (Comments and Ref. Dwg.) The others, from my understanding, can come straight from iProperties or Parameters. I am running INV Pro 2013.
i would like to be able to make a change in iProperties ( part #, description, stock number), and then automate/sync that change to the .idw of that part/project after the .idw is created.
is this possible? do i just need to fill out the iProperties BEFORE i make the .idw,
I really hope this is possible, we are going back and reorganizing all of our previous work and putting everything in vault now.
Sometimes I change the dimensions of a material I use but then I have to open Iproperties and change the description by hand. This can create problems as you can understand especially when I forget to update the Iproperties.
Then I had the thought to automate it. Lets take a steel bar as example. I have thickness and width as parameter, both are exported and available under IProperties/Custom. But they show as 200 mm and 10 mm. I would like to loose the units. I tried also UL but then it reads 200 ul and 10 ul.
What I like to get are just the numbers, no units. I like to use it to create this "steel bar 200x10" where the 200 and the 10 are linked to the Parameter and will change when I change the dimensions av the steel bar.
I would like to copy and paste all iproperties from one part to another, without retyping it all.
What i was thinking about is:
1. Exporting all iproperties to .txt
2. Run a import .txt rule to iproperties.
Is it possible? If so, How could i accomplish a task such as this?
Privacy warning: Since I live in a country that has traded liberty for the illusion of security, all of your posts to me are being monitored and saved by the United States Government.
I am trying to figure out if it is possible to change the iProperties default field names. For example, in iProperties, under the Project tab, i want to change the field "Stock Number" to "Drawing Number". I know that i could create my own custom field in a seperate tab, but i think this way would have a much cleaner look and simpler workflow. If it is possible, is it something that i can incorporate into an ipt template? Or will this only change on my system?
I am sure this is extremely simple to do but I am missing something. I am wanting to set the Description of a part in the Iproperties using values from the parameters. For instance, if the part has a length value of 10 and a width value of 5 I want the Description to say: 10 x 5 Floor Sheet
I cannot figure out how to extract the parameter values and place them into the iproperties. Here is what I have tried: iProperties.Value("Project", "Description")=" =<Length> x <Width> Floor Sheet"... This gives me the following result in my description: x Floor Sheet
I wish to set the properties of an assembly using i Logic. I have the values of the properties in a part that is in the assembly. I wish to pass those values from the part to the assemblies i properties. I tried using the following code, but it gives an error saying it can not find the document "MyAssy.iam"
I would like to export the Current Offset from Parent Assembly Origin values (X Offset, Y Offset, Z Offset, X Angle, Y Angle, Z Angle) for each part in an Assembly. These values are found in each component's iProperties under the Occurrence tab.
Using Inventor 2013. As you know it's impossible to chang iproperties values of the library parts in inventor session (for instance in asm file). The error message comes "readonly".
But when you open iproperties of the file in windows file explorer then it's possible to change iproperties values while library parts open in inventor session in asm.
Normally I copy the file location path of the library part and open this path in the windows file explorer and find the part and right-click on file and change iproperties values which I want to change stock number, part description etc...
Is it possible to create VBA code or API which can open iproperties box of the selectet part outside of the inventor session in windows file explorer?
I need a parameter from an iPart to show up in my Parts List by using the Stock Number iProperty, then CHANGE with each variation of the iPart (PLATE BC-01, PLATE BC-02, PLATE BC-03, etc). I already have the parameter exported, named 'BOTTOM_A.' Stock number has the expression: '=1/4" HRS x <BOTTOM_A>.'
However, this only works for that particular part. The number does not change when I place a Parts List for PLATE BC-02 and PLATE BC-03. All three have the same number. I found that the number corresponds to the active part. If I double-click PLATE BC-02 in the ipt file to show it, the number for the separate Parts Lists will all correspond to PLATE BC-02.
I've attached an image of the Parts Lists after double-clicking PLATE BC-02 in PLATE BC.ipt. I can include more if needed.
I am building up a library of parts and have been assigning HDPE to my parts through iproperties, I came to my next part and clicked through the list of materials and HDPE has vanished from the available materials, how to get it back as it is now not available? I am using Inventor Professional 2013.
Autodesk Inventor Professional 2013 SP2 64-Bit Edition Windows 7 HP Z400, Intel Xeon W3550 3.07GHz 12.0GB RAM, ATI FirePro V4800 (FireGL)
Is it possible to change a Parameter value through iProperties? I have pipe with carries a "Length" parameter for its length. I checked the " Export Parameter" to make this value visible in the iProperties. Is there a way to create a Macro to make this possible? I'd love to be able to change pipe lengths without physically opening the file. This is my first time getting into programming/ macros.
way to customize iProperties in order to meet our companies B.O.M. standards. We need to be able to show, item quantity, part number, description, material spec, length in inches, and total of length x qty and weights x qty. We would like to set up iProperties so that when we input the values for each property our BOM will be completed, is this possible?
Is there a way to link any inventor file iproperties to a excel spreadsheet - so that the excel spreadsheet updates parametrically with any inventor iproperty changes.
I know that inventor parameters can be linked to excel, but what about i properties?