AutoCAD Inventor :: IParts - Delete Feature If Suppressed In Every Row
May 7, 2013
I started with a huge ipart table which was created by a collegue who has now left. The factory was unmanageable as it had reached the maximum amount of columns and was running very slowly.
To combat this, I decided to split the table in half so that the ipart will become two iparts. I am now working on the first half...
A lot of features are unque to one or a few parts, so doing this enabled me to delete columns if all values in the columns matched after the table was halved.
I thought this would speed up the file but I have now realised I have a bunch of features sat in the browser than are suppressed in every member!
Is there any way to use ilogic or vba to run a script that will delete a feature if it is suppressed in every member?
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
How to modify the code below to delete suppressed parts in a pattern (entire pattern)?
Dim oComp As ComponentOccurrenceDim oComps As ComponentOccurrencesoComps = ThisDoc.Document.ComponentDefinition.OccurrencesFor Each oComp In oCompsIf Component.IsActive(oComp.Name) = False Then oComp.DeleteNext
Code works fine if there are single instances of the part. It throws a error when you have a suppressed pattern.
I've created a shared sketch and have used it with various features. Sometime those features are suppressed. The model works fine but the shared sketch generates a sketch doctor error because the feature that created it has been suppressed. Is there anyway to make the sketch suppressed so it doesn't trigger a sketch doctor error? Inventor 2013
we are using level of details to suppress few components. when we are trying to take BOM for that level of details. we are getting the suppressed components also. is there any control we can do avoiding that suppressed component. I know if you make the BOM sequesnce to reference that wont come in BOM. but we need that file for other LOD.
I have using Inventor api to open an assembly file.But while open the .iam file it will show all the suppressed elements.how can we hide this suppressed elements from showing?
here is my code
Dim asdoc As AssemblyDocumentasdoc = inventorApp.Documents.Open("F:ArunMasterMaster_RF-VH-ZZ-0800-0500-0600.iam")
I have created some "programs" to automate drawing creation of some of our most common products. The problem I hav eis with my assembly drawing. When parts are suppressed and unsuppressed, they don't seem to behave the same way that features do. When you dimension a part feature in an idw and suppress that feature, if a week later you unsuppress that feature the dimenensions come back. Parts don't seem to follow this behaviour. If you dimension a part, suppress it, open and save the drawing, then later unsuppress it and open the drawing back up the dimesnions do not come back. Is there anyway for me to get these dimensions to "stick"?
How could I center the suppressed constraint? I woul like to selecet it in the listbox.
Private Sub CommandButton1_Click() Dim oAssDoc As AssemblyDocument Set oAssDoc = ThisApplication.ActiveDocument Dim oConstraint As AssemblyConstraint For Each oConstraint In oAssDoc.ComponentDefinition.Constraints If oConstraint.HealthStatus = kSuppressedHealth Then Call ListBox1.AddItem(oConstraint.Name) End If Next oConstraint End Sub
I am trying to model a large Control panel assembly using Inventor Pro 2011. It comprises of a main assembly with several adaptive sub assemblies containing the various items. (Relays assy, label assy, fixing assy etc). All works ok until I start using Levels of Detail to enable me break the assembly into smaller workable parts. I.e. Left door, right door, main panel full, main panel no doors etc. These will be used to create view reps from for my drawing views at a later date.
The problem I am having is I keep getting constraints failing on parts which are suppressed in various levels of detail. An example of this Is when I go to right door LOD and do a rebuild all, I get constraint errors from item relating to the main panel which is suppressed. I can suppress the constraint causing the error but when I return to the full panel LOD the constraint is still suppressed and the parts appear In the wrong place.
I have a configurator assembly, which is controlled with an iLogic rule.
one of the parts is being changed in a lot of ways according to the different configurations. But in one of the Configurations the part must be suppressed, which works fine, however next time i run the rule i get an error message from all the other instances where it would change a parameter if the part was active.
I have tried adding if [the configuration that makes the part suppressed] = False then, in the beginning of the the code that fails, to simply prevent it from running, but it still makes an error.
and as you can see i have a lot of lines where the part normally would be configurated.
Error on Line 628 : Method arguments must be enclosed in parentheses. Error on Line 629 : Method arguments must be enclosed in parentheses. Error on Line 633 : Method arguments must be enclosed in parentheses. Error on Line 634 : Method arguments must be enclosed in parentheses. [code]........
I don't understand how to enclose the argument in parentheses.
I have a iLogic assembly with some parts and sub assembly. I need to do a copy of this " Generator " to apply the result later in other assemblies. (something like a member of a ipart or i assembly).
Is there any way to do the copy the assembly to a new folder without the suppressed parts and subassemblies (wich are suppressed in the initial main assembly by iLogic rules)?
I tried to use "Pack and go" and "iLogic design copy", but they always bring the suppressed parts and assembly's, to the new folder and which i don't need to apply in the other assemblies.
I have an Ipart I created and in some of the parts there is a swept feature. In other configurations it is suppressed.
The issue is that the 3D sketch for the sweep gets broken going to/from the configuration. The path is generated from an extruded cut that is also supressed.
I tried to recreate the sweep using a different sketch, but that wasn't successfull.
Is this a bug or is there a different aproach I can use?
Is there a way to work with parameters on a suppressed assembly using iLogic.Everything works fine, but when I suppressed a part ilogic rule give me an error: Parameter: The component named "xxxxx:1" was not found.
I created an iPart of a flat sheet metal with several holes in it. It requires 3 Parameters to be be defined:
- length (user defined parameter which can take any value) - width (user defined parameter which can take any value) - hole_diameter
I created a skeleton file with several user defined parameters including length and width.
Both files (skeleton.ipt and flat_sheet.ipt) are placed in the same assembly. I now would like IPart instance to follow along the changes made in the skeleton - but how do I connect these parameters? and if not, what would be an appropriate Top Down approach for including iParts?
If I put iParts into an assembly, and then convert this assembly to an iAssembly, I can include "Table Replace [My_iPart]" as a column in the parameter table. As the value of this column I can select the individual rows of the given iPart parameter table.
However, I can not make this column be a "Custom Parameter Column". (In fact it seems to me that in an iAssembly I can not make any other types of columns to be "Custom Parameter Columns" either). Also, if a parameter of the iPart is a "custom parameter", I can not carry over this "customness" into the iAuthor parameter table.
This means that I need to insert table rows by hand, one-by-one, which is quite cumbersome. Imagine you have an iAssembly containing only two iParts, each having N rows. This means N^2 rows in the iAssembly, all of which I need to specify by hand. Plus I can not use the "customness" of a parameter of an iPart within the assembly.
In an iAssembly containing an iPart, I would like to
- have a "Custom Parameter Column" in the iAssembly parameter table, which can select rows from the iPart parameter table (selectable values would automatically be all the rows from the correcponding iPart)
- if my iPart has a custom parameter, I would like to have this custom parameter available as a separate custom-value column in the iAssembly
Is it possible somehow? Or is it conceptually wrong?
I've created a simple iPart and want to insert multiple instances of it into an assembly. The plan is to use a parameter-driven iPart to create multiple variations on the same basic model which will eventually be lasercut.
I've included a sample archive. 2DiPart is a simple part with a couple parameters. 2Dassembly is where I've tried to include this part. I'm able to walk through all the dialogs to place the iPart, and will even see it in the canvas as I select the insertion point. However, after I dismiss the dialog, nothing shows up in the canvas. I'm still able to see the component instances in the project explorer however.
How to best to get multiple instances of a parametric iPart into a drawing that can be lasercut.
In the drawing environment, is it possible to use the same file to show a client (example) option a or option b from the file? Meaning, can I create a separate side by side view in the idw using the same assembly file, but in different suppressed states? Or how does this work specifically? Right now all I have done is saved out the file with the different suppressed state showing, but this became obviously cumbersome quickly since the parts are similar and keep updating, thus forcing me to create yet even more optional files. I'm thinking that iLogic could be a possible fix.
I have a rogue feature line that I do not know where or why it appeared from. (Somehow it is a duplicate of my curb line, but offset.)I cannot delete this feature line. It is not applied to any surface as a break line, but when I go to delete it, it freezes autocad.
I have done all the basic steps of purging, audit, recovering, even tried mapclean and I still cannot delete it.
How to delete all labels on a feature line? Ideally if we could just pick the line and have it's labels deleted. QSelect and Select Similar require too much interaction to be convenient.
I created a Ipart with like 14 different configurations now it operates smoothly within the part. Now once i insert it into a assembly it wont let me chance the configuration. I heard there was a problem like this but i thought it was only when you insert a part into a assembly and change it into a ipart while its still within a assembly.
Now my part never was in a assembly. Ill upload it and let me know if you have the same issue. Once i drop the part it doesn't give me the option to choose a configuration and when i click the configuration in the itable it still doesnt change it. Now this is only within a assembly.
Subject: Inventor placing Iparts in Assembly (Autodesk Inventor 2010)
Problem:
When placing an Ipart into a project Assembly it will make a copy of that variant and place it in the same map as the Ipart.
So when variant B of Ipart A is selected it will make a copy of variant B in the same folder where Ipart A is located.
Question:
Is it possible to make a “save as” option or another similar manner to save those copies of variant B in a project map of a project assembly?
Instead of saving all the Ipart variants to a single folder. So each time a new project is started they have all the parts in the same folder.
Reason:
I am making a local library for parts that are used for repairs. These parts have many variants and some times need to be customized for a repair.
The current system keeps polluting itself causing the users to loose their parts and accidentally delete the original parts etc.
I contacted Autodesk support and theyrecommended to post this question on this forum. They did mentioned that vba programming could achieve this. I have no knowledge of this type of programming.
I have a wishlist item. One of my major process-related issues with iparts is the fact getting variables into your table is inconvenient. Why wouldn't it be possible to put an "Add to IPart Table" option in the context menus for dimensions, planes, features, anything you can put in the table from the table window. That way you are not constantly moving back and forth between your sketches and your table when you set up an Ipart or Iassembly. This feature would save me TONS of time as well as clean up my tables. Right now the easiest way to set up the table when dealing with a complex sketch is just to add all the dimensions, make my changes for each variation, save to table and then go back and delete the columns I didn't change.
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.
When we create iparts and generate the files from the mother ipart, Inventor creates an additional folder to place the iparts into. Is there a setting somewhere to force Inventor to place these generated files into a user defined location?
Or is this just something we have to live with and do we have to manually move the files after generating them.