Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting Part colors using Inventor ETO Server 2013

1 REPLY 1
SOLVED
Reply
Message 1 of 2
justinrice
533 Views, 1 Reply

Setting Part colors using Inventor ETO Server 2013

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))

 

Engineering Intent
JustinRice@EngineeringIntent.com
1 REPLY 1
Message 2 of 2
justinrice
in reply to: justinrice

Solved it. The server was not seeing the Materail Libary.

Engineering Intent
JustinRice@EngineeringIntent.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report