I changed the material using the vb.net code shown below.but after changing material the object is not updated ,the volume and mass didn't change .
Dim oDoc As PartDocument
oDoc = inventorApp.ActiveDocument
Dim oDTProps As PropertySet
oDTProps = oDoc.PropertySets.Item("{32853F0F-3444-11d1-9E93-0060B03C1CA6}")
[code]....
If I need to change the material of all parts in an assembly I find it convenient to do this in the BOM. In the 'parts only' view I add the material column, change the first one and just drag it down like in Excel.
There are however some parts where the material is greyed-out (see attached image) and I cannot change them in to something else. I already traced this to parts which are present in multiple different sub-assemblies. I guess that's also the reason for the blueish/red icon instead of a normal part icon.
If I open one of the sub-assemblies the part is fine and I can change the material.
I am trying to change the iProperties "Physical" "Material" using an Inventor VBA macro..For example, say the material is set to "DEFAULT" and I want to change it to "TITANUIM", how can I do this using VBA?
I received a rather large assembly file from a client that was done in Pro E. I was wondering if it is possible to change the entire assembly from Default material to steel without having to go into each individual part and changing its material manually (which could take several hours) I am using INV 2012 Pro with SP1 installed.
I have a problem with the Bolted Connection tool in inventor. When I use it to place fasteners in my assembly everything works fine, i can select the material I want, etc... The problem is whenever I need to change something in it, the fasteners changes to the first one in the list that appears when you click the ... button, which means that I always get the wrong fasteners. The workaround we found was to click the ... button again for all the fasterners, and this has to be done in the right order (start to end) otherwise I will get again the wrong fasteners and to select the fasteners again.
One more thing, I'd like to know if it is possible to have a more user-friendly way to change the bolts in bolted connection. I would like it to be like when you import a component from the content center, with that dialog box. As for now, I have to choose the bolts with their part number while when I import them with the content center, I have all set the key values.
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?
The attached part has some bad work features on it, but I don't care about that (easy fix). It also contains a rule that simply changes the material from "P AND O" (pickles & oiled) to "201 S/S", for some reason the faulty work geometery causes this rule to throw an "unspecified error". If you delete the bad work geometry the rule runs fine.
' material thickness from multi-value parameter called ShThk
If ShThk = 0.3125 Then SheetMetal.SetActiveStyle("5/16"& Chr(34)) Else if ShThk = 0.25 Then SheetMetal.SetActiveStyle("1/4"& Chr(34)) Else if ShThk = 0.1345 Then SheetMetal.SetActiveStyle("10ga") else if ShThk = 0.105 Then SheetMetal.SetActiveStyle("12ga") else if ShThk = 0.1793 Then SheetMetal.SetActiveStyle("7ga") End If
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 want to change the material of a sheet metal part using inventor api.I tried something like code
Dim partDoc As PartDocument partDoc = inventorApp.Documents.Open(FilePath & filename, False) If partDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then Dim smDef As SheetMetalComponentDefinition smDef = partDoc.ComponentDefinition Dim style As SheetMetalStyle style = smDef.SheetMetalStyles.Item("sheetMetalRule")
I am completely new to ilogic but would like to make a rule in my idw file that change the hatch pattern in a section of a specific material.
Short Version:
I have an aluminum extrusion part. Material is set to Aluminum-6061. In any section view of this part I want the hatch to be ANSI 31 with a rotation of 45 degrees and a scale of .02 How do I do this?
I can delete every unused material except one in the Material Editor.I am trying to make the custom Material library and somehowI have got the Material I cannot delete. URL....
I am in the samill building buisness. While designing I thought it would be nice to show logs on our equipment. Is there anyway to show bark on drawings to show the texture on the final drawing?
Is there a way to change the material definitions to CTB format in the plot style under the material style? See attached image.
I have a client that wants everything in CTB format and in AutoCAD Architecture. I can get the drawings into CTB but the materials plot way too heavy and when I go in the styles they show Full Saturation or Wide, Thin from the STB plot styles.
The Drawing is in CTB and I am pulling my hair out trying to get the couple materials used set to Color based plotting.
Can't seem to locate the Inventor Material Library....under Default in Projects, the Inventor Material Library is highlighted in Red. Where I need to browse to inorder to locate it?
After the import it shows the differnt meshes, but underneath each mesh it has the same material name.
If i click on the material tab, it show a whole bunh of materials, but when i click them nothing gets selected, only when i click the 'default' material the whole model gets selected
is there away to change the individual mesh's materials manually,
I am usually fine with changin the materials by going to visibility settings- imports and changing the materials.
However I have a file where I cannot change the material no matter what I do. I tried importing it as a family, I tried exploding the dwg, I tried setting the layers to 'color by layer'. It is beyond me
There is another file where I can only change some layers but not the others.
I am running 2008 and am having a problem using Xrefs in my scene. When I change the material in the Xref file, the parent scene that references the xref doesn't update the material. If I change the Xref geometry it will update it.
I am creating a carpet tile family that is sized at 18"x36". When I load the image from the manufacture into the material I give it the 18"x36" size, but get something different in the family and project. See image attached.
I want the red lines to be at the bottom of the family.
I tried to change the material image size to 36x36" and it only scales in the y direction. I also tried to offset the image so it fills the family area and that doesn't seem to work either.
I am having a very strange issue that appears in the Materials editor within Revit 2013 Update Release 3. If I change a surface or cut hatch pattern within the editor, and then attempt to close out of the editor, go to a different material, or apply the change, the hatch dialog pops right back up again, as if I never closed it. I have found two ways to get out of this obnoxious loop:
1. Use the 'esc' key to back out of the materials dialog (unfortunately no changes are saved).
2. Change the color of the hatch - this allows for the changes to be applied etc.
I've tried resetting the UI and reinstalling Revit to no avail.
How to make a type of material go in one direction or by another degree . Ex: if you click on a wood type material, it goes up or down and right or left depending which side of that object is. On the picture below, it goes up and down, side to side no all sides go in one direction. I need to know how to mange the direction of the way of where the material go.