AutoCAD Inventor :: List First Level Sub Components From Assembly
Jul 6, 2012
Currently I have some code which loops through all sub components of an assembly and sub assemblies. However I only need sub components inside the top level assembly and not any sub-assemblies. Is there an easy way to acomplish this?
This code will list all sub components inside an assembly when a drawing is open.
Dim oDocument As Document Set oDocument = ThisApplication.ActiveDocument Dim oRefDocs As DocumentsEnumerator Set oRefDocs = oDocument.AllReferencedDocuments
Dim oRefDoc As Document
For Each oRefDoc In oRefDocs debug.print oRefDoc.FullDocumentName Next
I was just wondering how to place a component into an assembly using ilogic? If this is possible, is there also an option to choose if iMates will be generated?
I would ideally like to place a list of components into an assembly, the list with probably exist in excel, then have iMates set to 'Automatically generate iMates on place' so that my assembly assembles automatically.
Inventor 2013 Certified Professional Autodesk Inventor Professional 2011 Windows 7 Enterprise, 64-bit
After changing colors at assembly level only ,below is a rule that changes all parts that have material "Plywood" to poplar works great.
However I want a rule that does the same kind of change but on only temporally at assembly level only then we can change back to default colors by removing color override.
It would be good if we can do the following
Search assembly for .ipt files that have material that contains PlywoodChange to color using temporary override of "Clear - Light" Possibility of searching more materials within same rule ie : "Timber" to be black in color"Pvcu"to be white in color
Dim oCurrentDoc As Inventor.Document Dim oDoc As Inventor.Document Dim oPartDoc As PartDocument Dim oRefDoc As DocumentsEnumeratorDim oTargetColor As RenderStyleDim oNewColor As RenderStyleoCurrentDoc =
Is there any way to group assembly components?I'm aiming at a live mass calculation for different level of details/design views.In this case I'v got an assembly with about a ton of stainless steel spread out on different subassemblies.
I have made representations showing only the welded stainless steel and I would like the weight of these to appear in the partlist. Not the weight of the complete subassemblies.
I am working on a large plant piping project and while I've seen this behavior before I've never seen it this bad.
Attached is a screen shot of a small portion of the assembly drawing in which you can see a good example of what I'm dealing with.
At the top you can see a weld neck flange that appears to be attached to air where there should be an elbow. In the middle you can see that on one side of the elbow there is missing geometry.
At the bottom is another flange that attached to air where there should be an elbow. This drawing is littered with these errors and as such is unsuitable for even a reference document.
I have turned visibility of these components off and on without resolution. I have turned on tangent and interference edges without resolution.
I have translated a copy to ACAD to see if it's simply graphical but the ACAD file shows the same errors. I have checked parallel and perpendicularity and all is well.
Inventor 2012 Pro 64bit (Build 219 - SP2) Vault 2012 Pro Admin Windows 7 Pro 64bit Quad Core processor 2.26 Ghz 16 GB DDR3 RAM 1.5 GB Nvidia Quadro FX 4800 (Driver Version 9.18.13.1090) 2 – 320 GB SATA drives
I'm running Inventor 2008 SP2. Each time I open the assembly 2 subassemblies always explode. You can see the red and blue subs in the attached picture. I thought this was supposed to be fixed by now. Actually I thought this was supposed to be fixed in R11 a long time ago. When I grab and drag either component, everything snaps back to where it's supposed to be.
If this isn't fixed (along with a laundry list of stuff that's been broken since R10) you will be losing customers. This and all the other bugs have cost me countless hours in lost productivity.
In Inventor 2012 I know that it is possible to arrange assembly components in a circular or rectangular pattern. But is there a way to arrange these components in an oval pattern?
I need to modify all the ipt in an assembly, but I don't kow how many ipt I have, and I don't know the name. Can I have with iLogic the list of all the ipt used in the assembly ? For example, to modify the Part Number in all the components.
Here is the history. I originally created a part with multiple solid bodies.
After creating it I was told we needed to make it an assembly. So what I did instead of recreating each component I called up the original multi-bodied part and did save as copies.
Then deleted the portions of the model I didn't need with only the part needed left.
Then I took all of those parts and assembled them together to form an assembly.
Now, here inlies the problem. When I go to make a drawin gof this assembly all of the balloons are coming up with the same item number as it was when it was a multi-bodied part.
It is clearly an assembly based on the model tree and the file extension.
I have a machine assembly with old part naming. Now we have a new part naming system. So i am supposed to rename all existing parts, assemblies to new naming system.
E.g. : A machine assembly with old names (lets say part1, part2..... part1000). It has to be renamed to new names (say item1, item2.....item1000).
"part1" should be renamed as "item1" and so on.
Design assistant is not a good option because its a lot of manual work, its same issue with using Vault.
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?
I'm a playground designer and we're currently in the process of updating our systems to Inventor. Over the next few years I'm going to be working on many different assemblies all using the same parts and sub assemblies, many of which need to share the same ground plane.
I'm wondering if there is any easy/quick way to make certain parts (not all) automatically constrain/flush to the ground/XZ plane when I place them?
I want to create numerous custom properties for a part. Some of these will be the same for all instances of the part (i.e. vendor, part number, etc). But some have to vary from instance to instance.
So, as an example - if I place 5 identical tanks into my assembly I need to assign unique text entries for each of these 5 instances (i.e. TANK-01, TANK-02, TANK-03, etc)
Furthermore, all these textual properties have to be able to be shown physically on the part (for identification on plots) and extractable for BOMs, etc. It seems that any custom i Properties I set up are global for all instances of the part.
Long time Autocad user but now am moving most of my work across to Autodesk Inventor.
Some of the work I do is with companies that their parts are standard components that will not change.
So I am using Inventor to automate the drawings based on their requirements. For example if it needs to be 4m high. then to use 2 x 2m sections. Currently I have create different assemblies of the different potential heights that I can switch between using ilogic but I need to be able to shift the top truss arch depending on how high the truss is.
I have to create a workplane and then define the section.
Usually the sectioning is done w.r.t flat surface/s and then the section plane can be offset depending upon our requirement and placement in the assembly. I am not getting this offset option when I want a Sectioned View. The section takes where I click on the flat face straight.
I have a sub assembly with frame members and have used different colors for different sizes. In the top level assembly all the colors are lost, presumably because it defaults back to material color. Is there a way to get the frame member colors to display and all assembly levels?
I am using IV 2010. I have an assembly that is made up of subassemblies and individual parts. Some of the subassemblies share the same parts. I would like to know when I create the BOM for the top level assembly if it can show parts only with no assemblies. I want to get the BOM to combine like parts from all subassemblies in one list. I have tried to use the part only option and it still puts subassemblies in the BOM and breaks the parts out per subassembly.
When ballooning an assembly drawing having a structured/all levels BoM, the balloons default to the part level of the BoM hierarchy. Is there a way to have the balloons reference the part's subassembly (direct parent) without having to override the value of each balloon manually?
I am currently working on a parametric assembly using i Logic to control the size of the components as well as patterns. However, I have hit a road block in trying to figure out how to write a rule for resizing the last roof sheet in this assembly pictured below to be even with the frame. The rule below is what controls the roof sheet pattern based on the frame length. The problem I am continually running into is how do you modify a part which is in an element within the pattern without having it affect the rest of the parts in the pattern since they all refer to part. I can get since it is hard to find information on i Logic.
Roof_Pattern_Spacing = Roof_Sheet_Width Roof_Pattern_Count=Ceil(Parameter("Length")/Parameter("Sheet Metal Roof Section:1", "Roof_Sheet_Width"))
(Note: The red line symbolizes where I would like to have the roof sheet end.)
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 have a rule that turns off all work geometry and sketches of an assembly and all referenced parts and assemblies.
This rule is almost perfect.
When i run the rule. All sketches and work geometry are turned off. But sketches in sub assemblies remain visible in the top assembly. When i open the document of the sub assembly the sketches are off.
So what I see is a top assembly 'override' of sketch visibility inside sub assemblies
How can I turn off visibility of a sketch on a level higher?
I have an assembly consisting of both sub assemblies and individual parts.When I insert the bill, it is only showing me the parts and assy's needed to build the assembly.Is there a way to have it list the sub assemblies and then their lower level parts, with quantities?
I would love for the day that ADSK allows users to assign materials to faces and surfaces at the assembly level. I know this can be done at the part level but this practice has it's flaws when trying to have an accurate BOM and Parts List as well as other "issues" when using that method.
Take a plated part for example. At my company our structure of a plated part would look something like this:
raw material - machined part - plated part. I'm sure it;s the same at many other manufacturing companies.
Typically we will have a material spec sheet for the raw material. We will have an IPT and INV dwg of the machined part file. We then place the machine part (IPT) into an IAM to become the plated part. We do this workflow because if we chance any geometry to the child (machined part) it will update and reflect a tthe parent IAM level (plated part). This also keeps out parts list and BOM structure in-line with our MRP system. So this workflow works great for us.
However there is an issue doing it that way. Inventor doesn't allow to assign materials to faces at the assembly level which seems just wrong to me. I kind of understand why they did that but it sure would be nice to be able to assign materials to faces in IAM files. Yes I know I could acheive this by using Derived Component but then my parts list and BOM structure does not reflect the base part. It only reflects the Derived part in my Parts List. Is there a way I'm missing to alter or change the Parts List to pull info of title, part number, etc of the base part rather than the Derived?
Ideally I'd just love for one day INV to allow material assignment to faces and surfaces in the assembly level. It looks rather strange on our drawings where we do a section view of the top l;evel assembly and see parts that are technically made of brass but look to be made of chrome or zinc plating instead because of how we had to assign material to the entire body of the component at the assembly level.
How do you save features added in an assembly to the part? For example, if I add a hole in an assembly, presently I cannot see it when I open the part. It seems like a very basic function, I'm not sure why it doesn't do it automatically.
I'm trying to use the Level of Detail function to add a hole feature in a sub assembly that will be used in 2 places inside the main assembly, but the sub assembly is present in many other location and does not need this hole. My thought is to have the master level of detail depict the hole feature and have another level of detail with this hole suppressed.I can't get the two levels of detail to save the desired outcome. When I switch LODs, the hole feature will not suppress or unsuppress as desired. Is this possible or am I doing something wrong.
I have an assembly that is made up of 3 unique parts ( 5 parts total). These parts and there features are to be laser cut, then assembled and welded along the outer perimeter in the small chamfer. I have designed the parts to have 5/16 holes, which will be later tapped to 3/8"-16 UNC after assembly.
Once these parts are assembled, I don't understand how I can change the holes to reflect this. Meaning I want the parts to be pre-drilled(laser cut) with 5/16 holes, but I want the assembly to then have 3/8-16UNC holes.
The hole command will not let me select the existing hole features in the assembly and add threads. What is the consequence of inserting a 'new' hole with 3/8-16UNC threads over the existing 5/16" holes in the assembly?
Is my workflow incorrect? should I have the parts modeled with the tapped holes and just make a note on the drawing to not tap these holes until assembly? how does that affect the laser cutting?