Community
Does anyone have any experience setting a part color using Inventor ETO Server 2013 from a Style Library.
I'm currently using the the following code:
Rule Test As Boolean Dim InventorComponent As Any = gethostobject(Me).definition.document Dim NewRenderStyleObject As Any = InventorComponent.RenderStyles.get_Item("Red") InventorComponent.set_ActiveRenderStyle(NewRenderStyleObject) Return True End Rule
The server throws the following error:
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Solved! Go to Solution.
Solved by justinrice. Go to Solution.
Solved it. The server was not seeing the Materail Libary.