AutoCAD Inventor :: Retrieve IProperties From IDW To IPT
Dec 20, 2013
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'm trying to put a little iLogic rule in my drawing template which triggers as soon as the drawing is opened. The rule asks the user whether the component he's making a drawing of needs to be painted or not. If it gets painted, the paint area (one side only or both sides) needs to be calculated. The result of this is then referenced by a text note in the title block.
I can do the radio boxes with the questions, as well as their If loops, but only when I'm in the model. Due to our, admittedly inefficient workflow, we never have time to specify "minor details" like paint area or spec during modelling, only when we get to drawing level. I'd like to put the iLogic rule inside the drawing template. I'm having trouble referencing the iProperties of the model from within the drawing's iLogic interface.
What I have so far is this rule, which I can run inside the model:
'set dummy variable equal to total areatotal_area = iProperties.Area'start radio box with questionsText1 = InputRadioBox("Will this component be painted?", "Yes", "No", Text1, Title := iProperties.Value("Project", "Description"))If Text1 = True ThenText2 = InputRadioBox("How many sides will be painted?", "Both sides", "One side only", Text2, Title := iProperties.Value("Project", "Description"))If Text2 = True TheniProperties.Value("Custom", "Paint Area") = total_areaElseIf Text2 = False TheniProperties.Value("Custom", "Paint Area") = total_area/2End IfElseIf Text1 = False TheniProperties.Value("Custom", "Paint Area") = 0End If
adding a line or two so that I can run the same rule, but from the drawing.
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.
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 have created a pipe using sweep through 2 planes and 3d sketch. I want a specific bend on that pipe to be extracted for drawing purpose. How do I do that ?
I try to retrieve the values of an occurrence in an assembly document, same as when I click on 'Change size' (see the attachment).
I Know how to get key values (from list) from content center family member (Getting data from content center) but for the expression values (from user entries), I found nothing.
In Inventor 2010 is it possible to retrieve the dimensions from the weld in an idw without rewriting this dimensions?Now when hitting weldings in idw the symbol stays empty.
I've recently been playing with the "Retrieve Dimension" feature in IDWs to pull the model dimensions and tolerances from the IPT. I'm wondering if I am understanding the behavior correctly.
The IPT Document Settings > Default Tolerance "Use" and "Export" standard tolerance values boxes are checked.
I have standard tolerances defined for .xx and .xxx precisions. Default in the IPT is .xxx.
If I place a sketch dimension and extrude a feature, place that part in an IDW, and "Retrieve Dimension," the result is that the dimension's precision and tolerance are defined by the active IDW style.
However, if I place the sketch dimension, and then modify its precision to be something other than the IPT default, when I "Retrieve Dimension" in the IDW, it pulls the modified precision and tolerance from the IPT settings.
Is this the expected behavior? When I see the box in the IPT Default Tolerance tab that says "Export Standard Tolerance Values," I understand that to mean that the standard tolerance values in the IPT will be propagated to the IDW. Is this incorrect?
The code that follows is my attempt to explode the BOM and retrieve the UnitQuantity. When I look at the BOMQuantity object, BaseUnits is always nothing, and UnitQuantity is nothing.
Dim i As Long For i = 1 To oBOMView.BOMRows.Count Dim oRow As Inventor.BOMRow oRow = oBOMView.BOMRows.Item(i) Dim oCompDef As Inventor.ComponentDefinition
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
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 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 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.