Message 1 of 3
Inventor Vb.Net "AddIn" - Syntax Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I have the following code that is part of a larger Vb.Net "Addin".
Sub SetPartMaterialProperty(PartMaterial)
Dim oMaterial As Material
oMaterial = m_inventorApplication.Activedocument.PropertySets.Item(PartMaterial)
m_inventorApplication.Activedocument.ComponentDefinition.Material = oMaterial
End Sub
I am trying to automatically set the material of an Inventor part, by specifying the part material, but I cannot get it to work.
(For example, set the part material to "Brass, Soft Yellow")
Can anybody update the above sub-routine for me so that it works correctly?
Many thanks in advance!
Darren