AutoCAD Inventor :: Change Part Material Render Style Within Assembly?
Oct 5, 2011
How do I change the a part material render style within an assembly?
I have tried this below. It changes the name but doesn't update the render style.
Sub Material()Dim oassy As AssemblyDocumentSet oassy = ThisApplication.ActiveDocumentDim ocompdef As AssemblyComponentDefinitionSet ocompdef = oassy.ComponentDefinitionDim ooccurr As ComponentOccurrencesSet ooccurr = ocompdef.OccurrencesDim opartdef As ComponentDefinitionSet opartdef = ooccurr.Item(11).Definitionopartdef.Material.RenderStyle.Name = "Red"End Sub
I have got troubles with textures in the new Inventor 2013. When I try to programmatically change a texture in a render style of a part (no matter, whether I use an existing render style or create a new one), when I set the texture file name, Inventor throws an exception "Bad argument". In Inventor 2012, it worked. How textures should be set in the new Inventor?
Sample
PartDocument partDoc = ... some initialization RenderStyle newRenderStyle = partDoc.RenderStyles.Add("newRenderStyle"); newRenderStyle.TextureFilename = newTexFilename; //this throws an exception bad format, even if the texture is in the Inventor textures directory partDoc.ActiveRenderStyle = newRenderStyle;
I`m looking for the iLogic code that can change one parameter (user defined) for each (ipt) part in assembly (iam)
The one below doesn`t work.
Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments On Error Resume Next Parameter(oSubDoc, "FH") = 15.26 Next End Sub
I wish I can open my general assembly BOM and set the proper Materials to my all my parts after migration from 2012 release.
But I cannot change Material for the some custom part in the assembly BOM in the Parts Only tab. Parts refusing to change a Material have special symbol and I guess it means “promoted assembly” – no info regarding these symbols.
I can change any Material in Structured and Model Data tabs but it is extremely inconvenient for the big assembly.
[URL]....
The questions is: Why those promoted assemblies have inaccessible Material in the Parts Only tab?
I have similar subassemblies built in similar way as you can see fro video, but one is treated as promoted assembly and other as promoted part, the question is what possible difference between those is?
I declared a BOM as "indivisible" when I converted an assembly to a welded assembly and currently I need to show the BOM as "Only parts" to insert it in a drawing. There is any way to convert the BOM style?
I have an assembly of stair made from steel. There are lots of part the same. Is there a way to make a hole (inside assembly) to one and that hole would appear on all of them.
And another problem, how can I made cut (inside assembly) through more then one part so that would affect a part also when I open it alone.
1) My object scene has 5 parts. I have 3 materials. I need to render all permutations of material and part. Right now I am feeding permutations in via a script but every render takes 4 minutes. As my number of materials grows my permutations become exponential and the render time can become 85 years very fast on 1 machine. Are there any ways in which this kind of permutation rendering can be done that get around this?
2) 1 render of my scene at 600x600 takes about 4 minutes. I would like to know what I can do to get that faster from a hardware point of view. I know you can tweak the mesh to reduce polygons, reduce numbers of lights and so on. I am not interested in those, instead, I am keen to learn what are the hardware bottlenecks for max rendering. The machine is a new quad core i7, 8GB RAM. Do I need a faster graphics card/GPU?
Before using iLogic, I created lot of iAssembly and iPart. I could change iPart factory member when I need in iAssembly.Now, I want to move everything to iLogic.
how could I change the part by iLogic code?
For example:
I generated "Part1.ipt" and "Part2.ipt",...... (I have hundred of member)
In my assembly, sometimes, I need use Part1.ipt, sometimes I need use Part2.ipt.
Which is the iLogic Code I should to use?
Inventor 2009, WIN XP. Autodesk Inventor Professional 2013 (64 Bit) SP2 Windows 7 Professional Service Pack 1 Intel(R) Xeon(R) CPU E5645 12.0 GB Memory
there is a way to change the template used for a part or assembly. The problem is that I created a template to fit my needs but I had to update it and the update doesn't effect the parts created with the old version one. How do update the templates of the files created using the old template?
My part color is yellow. In the assembly It shows as gray.
I cant seem to get it to change to match the part color. I used to know why this happens and knew how to fix it but seem to have forgot. How do you get this to work?
I also recently loaded 2014, but had the same problem with 2013, so its not a release issue.
This is my first time using Inventor but I've been using ProE for several years in school. A friend of mine told me about a feature in ProE where you are able to define a part and then define one of the lengths as it is placed into an assembly. For example I would define a 2x4 part with a length of 84inches. If I wanted a 2x4 of 68inches in my assembly I would use the same file but simply change the 84 to 68. How can I do this with Inventor?
I have a part that occurs nine times in an assembly. These were all the same parts before but now I need to make them table driven iParts in order to add a custom iProperty that changes to make them all different. They are all the same except for this on iProperty field that changes.I can create the iPart no problem. My questions are:
1.) Should I just open the part file and make it an iPart?
2.) Do I need to replace the files in the assembly somehow?
3.) I would assume that I can just edit the file to make it an iPart and then use some kind of "change component" right click to select which one goes where right?
4.) Is there some other workflow I should be using?
I am using this code placed in the .ipt file to change Sheet Metal material
If Material_SM=1 TheniProperties.Material="Steel"SheetMetal.SetActiveStyle("RB_Mild Steel")ElseiProperties.Material="AISI316"SheetMetal.SetActiveStyle("RB_Stainless")End If
It works fine presuming code placed in every .ipt file to be ruled.
Is it possible to modify code in a way so when it placed in top assebly it runs through entire assembly finds all Sheet Metal parts and applys Material prpperties/Sheet metal style according Material_SM parameter.
Inventor 2013 SP2 Windows 7, 64 bits RAM 18GB Core TM2 Duo CPU 2,99 Gz
I have an assembly which contains a CComPtr<ComponentOccurrence> pThisCompOcc , and I'd like to do two things.
Get the name of the "base" object, not the display name of the occurence Change the model and user parameter values of the occurrence I suspect that I need to find the function or method which gives me a CComPtr<PartComponentDefinition> pPartCompDef which the occurrence points to for the Q1, but what about Q2?
Presumably the parameters are associated with the Component Occurrence and the "real" name is associated with the Part Component Definition?
Dear Sir, In particular project, when I insert part in Assembly file, It is inserted as a Tube & Pipe run part. so that It is not Grounded automatically. What is the settings by which I can insert as a normal part in assembly file ? I have attached herewith the JPG file also.
I would like to simplify this assembly into one seamless part for FEM calculation:The assembly consists out of parts that, in reality, will be welded together. Due to their form, there is no way to place them exactly onto each other, therefore there are slight gaps between the parts:
Now when I try to merge the assembly into one part via "simplify" --> "create simplified part" and choose "single solid body with seams between planar faces merged", Inventor does not fill these gaps (even though it displays only one part in the bottom right corner of my window). Unfortunately, the remaining gaps brings "contact" problems in the FEM simulation.
how to close the gaps and really merge the assembly into one part?
I have a part that has protrusions. When i mate that part up to another part that second part needs to have cutouts/holes to receive those protrusions.
i mainly use it in sheetmetal parts. and use the rectangular protrusions on de contour to mate up with corresponding cutouts in the other sheet. this works with positioning and also makes for a nice weld spot/area.
But also for making holes to accommodate a mold pin used in custom punch dies. I want the intervening part to receive a corresponding (propperly tolleranced) hole automatically. Much like a bolted connection does.
same for parts like circlips. i want them to automatically generate the seat in the part it's mated to. Rather than using the axle generator.
Ofcourse one can place the parts and do an in assembly interpart projection and go from there, but i want the part to generate the (predifined) modification to the other part. It would save time and also reduces problems as the parts are moved about or even removed.
I have an assembly with 10 parts in it. We use many assembly features at the assembly level (Revolve cut, Extrusion cut..etc). How to find the mass difference of each part by comparing at its parts level and its assembly level.
I have a two part duct fire damper assembly. The IDW has the combined two part assembly, which I know how to turn the CoG on, so that it can be dimensioned. The problem is each piece will more than likely be hoisted separately so I would like to show the CoG for each piece, not the combined master assy.is there a way to do this?
Inventor 2014 Windows 7 Pro SP1 Intel(R) Core(TM) i7-3770k CPU @ 3.50GHz 16GB RAM NVIDIA Quadro 4000 3D Connexion SpaceMouse Pro
Why when I mirror a part in an assembly the mirrored part gets a new part number? I want to mirror only the position of the part which is always the same part. Is it possible to do that in Inventor?
I added sever materials to the Style Library and after I was done I noticed that one of the Style names had a typo in it. When I tried to "RENAME" the style it made a new style with the correct name but kept the old style with the incorrect name. I cannot get rid of the incorrect material style. There is no delete available on the "right click" menu and purging doesn't actually seem to do anything when I try to purge it.
I want to delete it from the Style Library so it no longer appears in the material list that is available. How do I do this?
Inventor 2013-64bit, HP EliteBook8740w Intel Core i5CPU 2.67 GHz 8GB memory Windows 7 64bit
I can’t figure out how to copy a material (outside style library) from one part to another. Or how to do it with exporting and importing the material through a styxml file.
I have copied the "Diamond Plate" from the Inventor Apperance Library to my document. Now I want to edit the texture that this style is using.
1. Where is the texture map that this style using located? When I edit the style, I can't tell what is telling it the filename. I have mundged every file on my hd that it could possible be (hoping it would cause an error), but that didnt work either. Another thing I tried was in the QAT "Duplicate as Generic", but that did not show me the texture file either.
2. Is there a way to change the angle of the texture?
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.