AutoCAD Inventor :: Get Correct Partnumber When Using IPart And ILogic?
Jul 10, 2012I made part with iPart. And I use iLogic to engrave the P/N on the part.
View 9 RepliesI made part with iPart. And I use iLogic to engrave the P/N on the part.
View 9 RepliesI have a sheet metal part that I converted into an iPart and I set up different rows with different sheet metal styles. What I want to do is run an iLogic code to change to a specific row which in turn would change the actual material of that sheet metal part....I've tried the snippet iPart.ChangeRow but cannot get it to run the code. I'm not sure if I'm not doing something right or what...
Inventor 2014, Windows 7, 64 bit
We are looking to switch from SW to Autodesk in order to utilize advanced surfacing in Alias, and its interoperability with Inventor. However, we need to continue to perform Kinimatic linkage studies as well using Inventor. I need to make sure we can perform the same calculations with ease before making the switch.
At this point I am trying to mimic in Inventor the kinimatic studies I perform in SW. In SW I would perform these studies within a single part file, using a single sketch only (no solid parts). Within this part file I would break up the total "travel" of the linkage into configurations that are driven by a "Design Table". The Design Table would be used for both the main driving value, and for any driven values I wanted to use for analysis.
I am trying to find a way to get the same driven variables written to an Excel file to use for analysis using Inventor.
As a test example:
I would like to drive one variable(Damper Length) to get ~20 different iParts, each with the linkage moved to a new point within its set range of motion. I then would like to write several Driven variables(Displacement_1-3 shown in "RULE CODE" attachement) from each iPart instance to an Excel file.
I have been able to get my 20 iParts and the linkage to move accordingly(iPART INSTANCES attachement), but I have not figured out how to write the driven data to excel for each iPart instance(20 rows of data, 3 columns). I have only been able to write the dimesions for one row of data...whichever iPart is currently open.
with the necessary iLogic code or another solution? It seems like this should be pretty straight forward. Do I need to be using the "ChangeRow" iPart Snippet?
I’m trying to make an iLogic rule that creates a new row in the iPart table (new member). Is it possible?
View 2 Replies View Relatedit is possible to set the value of one or more "custom" column of an iPart row.
Per example woul this iLogic method work?
iPart.ChangeRow("iComponentName:1", "RowMemberName", customParam1, customParam2)
If so, could you demonstrate how to use it?
I have a form with a multi value selection containing name vaules from an iPart.
I want to make a selection from the field in my form and swap out my iPart in the assembly for my selection.
I thought that something like:
Dim iFactory As String
MulitValue.SetListInComponent ("FileName:1", "Param name", "list of params.......")
Parameter("FileName:1", Param name") = "PK 407" 'could be any thing selected from the list of params..
iFactory=Param name
iPart.ChangeRow("iPart Factory File Name:1", iFactory)
Such that the part would be swaped out for what ever Param name = as a result of user selection.
I get the following error from this: Object reference not set to an instance of an object.
I have an Ipart I would like to have a Ilogic form to change the active Ipart. I tried iPart.ChangeRow but I did something wrong and it doesn't work.
View 2 Replies View RelatedI am looking to generate ipart members for each ipart as I activate it?
View 2 Replies View RelatedI've created a main assembly containing several ipart components. With the following rule I can read the model parameters, but not the user parameters of the iparts:
A = Parameter("Part1:1", "d0")
If I create a component, insert it in the main assembly and make it an ipart afterwards, the user parameters can be read out with ilogic. But if I insert the same ipart again, the user parameters can not be read out anymore. Model parameters are no problem.
I am trying to convert a standard iPart to an iLogic based part. The part has some text driven, cells..PatNumber, Description..ect..But when I try to referance those cells the iLogic code either does nothing or errors out.
Basicly i have a bunch of flange rings with have several variables theat need to change as the part number changes, sounds simple right?I have rewritten the code so many times...I have gone from hunt and pecking to typing 300 words a min...well maybe not.
About 75-80% of all our parts are identical in shape but just get smaller or larger depending on what size portable auger it goes on.I have been trying to get the part to changed based on "PartNumber" but it has text in the value.
I have a simple iPart, with driven parameters Length and Width. When length changes (from a multi-value list), the spacing on a pattern and the number of occurrences of that pattern also change.
Invariably, it requires a rebuild. Occasionally, it requires two rebuilds. As this part is in a second-level subassembly, opening the part, rebuilding it, then rebuilding its assembly, then rebuilding the top-level is consumptive.
I've been using iLogic and iParts for about a week now, so I might be missing something basic. File attached.
Inventor 2013
Win 7 Pro SP1 (x64)
I have this little iLogic snippet that writes out the name and value of all parameters in active document.
doc = ThisDoc.Documentparams = doc.ComponentDefinition.Parametersnames = New List(Of String)values = New List(Of String)For Each param In paramsIf Len(param.Name)>4 Thennames.Add(param.Name)values.Add(param.Value.ToString)ElseEnd IfNextMultiValue.List("ParamsList") = namesMultiValue.List("ParamsValues") = valuesGoExcel.CellValues("COVER.DEFAULT.PARAMS.xlsx", "Sheet1", "A2", "A400") = MultiValue.List("ParamsList")GoExcel.CellValues("COVER.DEFAULT.PARAMS.xlsx", "Sheet1", "B2", "B400") = MultiValue.List("ParamsValues")GoExcel.SaveGoExcel.Close
The problem is it ignores the parameter's units and assumes cm for length and rad for angular. I need another nested IF - Then that says:
IF param.Values.'UnitType' is "in" THEN
param.Value = param.Value/2.54
Else If param.Values.'UnitType' is "deg" THEN
param.Value = param.Value*360/2/3.14159
End If
I just do not know the syntax or proper method.
how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?
View 5 Replies View RelatedHow do I change the BOM structure of iParts from Normal to Purchased? The BOM editor in the assemblies that use the iParts have the iParts as read only. I can't find a way to change them to purchased from inside the iPart either.
View 3 Replies View RelatedIs there a way to add an iPart column to the iPartTableColumns collection? I'm using Inventor 2009.
View 5 Replies View RelatedI've made a component pattern in an assembly using an iPart. The iPart as several different lengths, but I cannot switch lengths in the assembly. In other assemblies, right clicking on the Table icon allows me to change lengths, but this assembly will not.
View 2 Replies View RelatedIn C++ can I use this function, using the key index Member string to select which row in the factory I want to insert?
In the docs all I see is Use an iPartTableRow (but no examples in C++).
Use an index, this works but I need to know the index before using it.Use a set of parameters in a string (but "[Member=142314]" does not seem to work. Can I not simple use a string with the appropriate member?
its possible to UN-author an iPart?
View 7 Replies View RelatedI want to insert a row which contains data into iPart as new part member but without using excel.
View 3 Replies View RelatedHow do I rename an iPart member name? Can I use Design Assistant?
View 2 Replies View RelatedCan I use diferrent types of threads (as variants), in one iPart/iFeature file, ex. M10x1.5 (ISO Metric profile) and G1/8" (ISO Pipe Threads)? Look at the file in attachment and correct it if possible.
View 2 Replies View RelatedI have created an ipart and want to create a right hand and left hand option of that part. I can mirror the features involved and suppress the mirror feature for the the RH part and so the RH version looks fine.
BUT if the mirror feature for the LH version is in the compute state I get both handing showing. How do I suppress one handing and leave the other for my RH version.
Is it possible to add a Appearance tab to a Ipart table? I am cataloging a set of parts and one part is made with steel but in Gloss - Black and Matte - Black and i'd like to differentiate the 2 without haveing to make 2 seperate Ipart files.
View 2 Replies View RelatedI have listbox that shows ipartname of one ipartfactory it would like and me that when selecting one of them it could send to the assembly ipart selected hear show code.
Dim InvApp As Inventor.ApplicationSet InvApp = GetObject(, "Inventor.Application") Dim IpartSeleccion As ipartMemberSet IpartSeleccion = listbox1.Value Dim oDoc As AssemblyDocumentSet oDoc = InvApp.ActiveDocument Dim oOccs As ComponentOccurrencesSet oOccs = oDoc.ComponentDefinition.Occurrences
[Code] ........
I have an ipart but I can't for the life of me get them to be in order, small to big in the browser.
I have them in order in the table but they are mixed up in the browser.
Is there a way to do this.
see attached picture
I'm trying to take multiple parts of the same type and make them into one .ipt I began doing this and It seemed to be working fine. When I put those grouped .ipts into an .iam, Inventor creates a Subfolder of each .ipt and fills it with each part from that group and now those created ipts are unique unlinked parts (unlinked to the group ipt). I'm trying to reduce our file count and link our .ipts and .idws/.dwgs so this Inventor file creator results in the opposite of what I'm looking for. My question now is is there any way to modify this process to work the way I need it to or is there a completely different way that I should be doing this?
View 4 Replies View RelatedHow can I get the iPart information in a partlist.
I have a tupe DN 25 iPart where I can control the length, and i'll like to have a text I description field in my partlist that says "DN 25, Length = <actual length>".
the newest model I have made I have run into some troubles. When I switch between one member and another most parameters update correctly but the part is still requiring an update before the finished part is created.
When the feature small sheds is enabled the pattern isn't working correctly.It seems as though the height that controls the sheds is not updating during the member change process and is causing the pattern to be the wrong length.
I have set up a form to add my parameters as there are a large number in the ipart table.I can't generate my member files as they show the member before it is updated and is wrong.
Is it possible to show surfaces in a drawing view of an ipart member - although the option of include all surfaces is there I can't get them to show. Similar issue with showing sketches - get model sketches is there but nothing can be shown.
View 2 Replies View RelatedI need an ipart for helical gear.
View 9 Replies View RelatedI have used ipart to create multiple members in casting & machining.but, i have face problem how to link members in that file. For example i will open 4 member in machining it will automatically refer 4 member in casting. How to link these fille.
please find the attached file for details.