- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have an .ipt file, and I am using the code from this topic, to define material of a single part:
' Get single part doc
Set oPartDoc = ThisApplication.ActiveDocument
'Get the desired material.
Dim oMaterial As Material
Set oMaterial = oPartDoc.Materials.Item("Glass")
'Assign this material to the part.
oPartDoc.ComponentDefinition.Material = oMaterial
However, as mentioned in the upper topic, for some reason General and Physical properties of part's Material are all 'N/A'
The only way for them to correspond to the chose material is to manually using UI, click on the "Update" button inside part's iProperties.
Is there a way to press this 'Update' button with Inventor VBA, VB.NET, C#... ?
Any help is appreciated.
Solved! Go to Solution.
Link copied