AutoCAD Inventor :: How To Suppress Link To Derived Parts Inside Assembly
Dec 4, 2007
I am having some trouble with this quick VBA app, I want a utility that can traverse all the parts in a top level assembly and suppress the link to each derived part (multiple) in all the parts in the assembly.
I have played with the following
Public Sub SuppressLink()
Dim partdoc As PartDocument
Set partdoc = ThisApplication.ActiveDocument
partdoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Item(1).SuppressLinkToFile = True
End Sub
Which works, but only on one part file, and only on the first derived part. Is there any easy way to make this work on ALL the dervived links and every single part inside an assembly?
It says i can exclude parts from the assembly, when i insert it as a derived part, but the exclude button is greyed in the insert derived part dialog box.
We do a good bit of deriving parts from assemblies. We have a workflow that works well for us, we create PARTS, put them in an ASSEMBLY, then create new PARTS DERIVED from ASSEMBLY. We use Boolean to add/subtract and disregard parts as needed to create these parts. These parts are now given color and reassembled in an yet another final ASSEMBLY as needed and put into a drawing.
Through Inventor 2011 this worked well.
In Inventor 2012 the color is disapering as soon as any change is made on a source part.
1 Changing the color does not work.
2 In the derived from Assembly, opening up (in the browser) the individual .ipt's and right clicking and clicking properties and changing the color only stays until the next change to the source prt.
3 Changing EACH individual face by right click, properties and setting the FACE PROPERTIES from "as feature" to "as part" does work, but is ridiculous to change hundreds of faces on each part. (especially considering we did NOT need this step in 2011)
Is there a switch in the registry (to turn off the standard “as feature” to the parts face).
There are many examples of creating rectangular patterns, but not many, if any, of interrogating existing patterns.I have attached the files and a screenshot of a rectangular part inside an assembly. The part contains a rectangular pattern of holes and workplanes.how do I get hold of each proxy of the workplane in the pattern?In other words I don't know what to put in the for loop at the end of this code fragment:
If _invApp.Documents.Count = 0 Then MsgBox("Need to open an the assembly document") ReturnEnd If If _invApp.ActiveDocument.DocumentType <> DocumentTypeEnum.kAssemblyDocumentObject Then MsgBox("Need to have an Assembly document active") ReturnEnd If Dim asmDoc As Assembly Document asmDoc = _invApp.ActiveDocument Dim asmDef As AssemblyComponentDefinition asmDef = asmDoc.ComponentDefinition im occurrences As ComponentOccurrencesoccurrences. [code]....
see attached files. Have 40+ so far like this and can only seem to fix them by delinking derived sketches and then selecting sketch edit from design doctor and deleting geometry from unlinked old version of derived sketch presented. Have uninstalled SP1 and hope problem will not keep happening.
I would be interested to recover P15.ipt from its sick state. Have not had problem like this since I installed Inventor 2013 and lost a lot of work that could not be recovered until service pack was released.
Is it possible to change the derived part link to another part like you would replace a component in an assembly? My issue is that i created a part and used a derived part within. Well this part number changed and it just so happens that the derived part needs to change as well. I tried the design assistant, and changed the link there but it didnt seem to want to take. I tried renaming the derived part, and opening the file...i get the error but i still am unable to change the link that way either.
have one assy comprising of a valve, made in steel, an actuator made in aluminum, total weight combined is 36 kg.
I make this assy a derived ipt.. i have tried all the output options, single solid, multy solid and the weight is not the same.. since its a new ipt has its own material, ok makes sense.. .. So i use composite, i get the correct weight (yay), but now i cant turn the visibility off on the 2d drawing, in certain pipe spool view representations.
What is the correct procedure for turning multi material assys into an ipt.. to get the correct weights and get the drawings to work properly?
Most of my part files contain at least one sketch which is derived from another part file. These derived sketches do not update like they did in our previous versions of Inventor.
If you change the geometry on a sketch in the base component, the updates will flow through to the derived parts. If you add geometry, it also works. However, if you delete any geometry from the sketch in the base part, it will not be deleted in the derived sketches in the second, third, etc. parts. The 'deleted' sketch geometry remains in those parts until you go into all the parts which derive from the base part and manually delete it. This is a significant problem for for our workflow.
Is there an option I have missed that changes this behavior so that deleted geometry in a sketch will also be deleted in any derived sketches in other parts?
I am trying to suppress part that are labeled as "Reference" on the BOM Strutcture and I can't get the program to cycle through the subassemblies. The following code runs through all the components on the top-level assembly but I can't get it to cycle through the subassemblies.
oCompDef = ThisDoc.Document.ComponentDefinitionoAssemblyComponents = oCompDef.OccurrencesDim oOccurrence As ComponentOccurrenceDim oSubOccurrence1 As ComponentOccurrenceFor Each oOccurrence In oAssemblyComponents If (oOccurrence.BOMStructure = BOMStructureEnum.kReferenceBOMStructure) Then Component.IsActive(oOccurrence.Name) = False Else Component.IsActive(oOccurrence.Name) = True End IfNext
I have a vba project that can extract an assembly BOM.
However, it does not output derived parts. What is wrong with my code, shown in the attached file?
What I am trying to do is create a ipt file of a "Laser-Cut" component. Use this component to make another component with drilled, tapped holes in it. Then use this plate, containing the drilled and tapped holes in an assembly.
I need to output this "Laser-Cut" part in my vba created BOM. Is it possible?
I was wondering if there was a way to suppress a component in the main assembly, and keep it from appearing in the parts list whenever I create one in the idw. environment? I am creating an iassembly, and generating different file versions from the main assembly in my table. In order for me to create different versions off of this main assembly, it is required that I suppress certain sub assemblies or components. I can't get the suppressed componenets to not show up in my parts list when I create it. I turned off enabled and visibility and it still appears in the BOM. Creating a different level of detail doesn't even solve this.
I know I can manually not have it show up in the BOM, but it becomes very time consuming trying to make certain rows not appear in the BOM table.
Is it possible to suppress an assembly feature in a drawing view?We make some components in an assembly oversized and then do a final machine step after welding or brazing. We show the completed assembly in the drawing but would like to see the assembly prior to machining in some views.If I suppress the machining features in the model it affects all views. Can we suppress the features in just one view?
As a recent convert from ProEngineer to Inventor, if it is possible to vary the parameters exported from the source model in the derived part. The following article (see link below) explains the functionality in ProE - note the ability to see the model tree of the source part and also the ability to have varied items (dimensions, suppress features etc.) URL.....
I am using Inventor 2012. I have a part that has 3 different inserts of a different material that I have to cut out. So I create 3 different assemblies with the part and the the 3 different inserts. Then I create 3 parts to derived the cutouts. Then 3 new assemblies to create the final assembly with the part and its insert.
Does Inventor 2014 have a way to do this with an i Assembly? I can't seem to derive a member of an i Assembly now. In my old CAD system I was able to create a table with one assembly that contained one part, three different inserts and 3 different cutouts. Right now this seems like a lot of work.
I have a problem with the Bolted Conection function when using derived parts created from a multi-body part.
I created a multi-body part in which I pit some holes with the hole function (clearence hole, through, M16, normal). After that I generate all the compontents. In the generated asembly I tried to add a bolted connection (placement by hole). Normaly after selecting the start-plane and the hole it discovered patterns (if exist). Now, after selecting start plane no holes are found.
see attachment for simplified model. Autodesk Inventor Product Design Suite 2013 SP1.1
' Create Derived Assembly Definition for the file Filename Dim oDerivedAssem As DerivedAssemblyDefinition Set oDerivedAssem = oPartCompDef.ReferenceComponents. _ DerivedAssemblyComponents.CreateDefinition(Filename) oDerivedAssem. ?
It seems to me that the basic exclude component no longer works when deriving assemblies. If I cycle through components it is not possible to get the Grey circle with the backslash through it?
Is there a way of using ilogic code to untick the highlighted component below. To run at assembly level to itterate down all levelsUntick (Use color overide from source component) update all parts
In order to reflect production process, I have to create holes on the bent pipe at assembly level after 2 bent pipes are welded to the straight pipe. Now when I suppress holes, it does not suppress only at LOD or view rep but throught the whole assembly.
Is it possible to suppress features such as hole using LOD or view rep, which are made at the assembly level? or I have to use another method? See below in highlighted.
I have a part that was derived from an assembly. However now I need to make this part have different center dimensions. Is there a way to make a derived part into an iPart without creating more parts? see attachment.
I am using Inventor 2012. BTW the part is more detailed than I am showing in the attachment.
I am trying to unfold a part created from a derived assembly like I usually do… why in the world will it not unfold, and show a preview of the unfolded in the other direction??
At first all was working… until I added a part (see the circled item in picture), and I don’t have any problem usually!
Assembly comprised of multiple components all derived from the same master sketch "4 Inch Rail Master Sketch"
Using the sketch to drive geometry, using the parameters to drive various extrude lengths.
Geometry changes seem to propogate quite well, while parameter changes do not...is this a bug or am I doing something wrong? Generally have to open each individual part and "edit derived part" to force changes to propgate...
files attached (move end of part marker down for all .ipts).
I´m trying to access ComponentDefinition.ReferenceComponents.DerivedPartComponents using Apprentice Server but it tells me "Not implemented". Is there any other way to figure out whether a component is derived or not?
I'm looking for the best way to create a separate assembly out of various component parts in an existing assembly so that the whole thing can be placed in an assembly as you would a part, I know it's possible to demote components within an assembly but are there any other methods similar / better ?