Sunday, February 05, 2012
How to specified material with c#???
Last Post 04 Feb 2010 03:06 AM by fatkids. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
fatkidsUser is Offline
New Member
New Member
Posts:53

--
16 Dec 2009 03:00 AM  

Hello jason!

Hi all!

I want to specified material with my program.

SolidEdgeFramework.Application SEApp1 = null;
SolidEdgeFramework.SolidEdgeDocument SEDoc1 = null;
SEApp1 = Marshal.GetActiveObject("SolidEdge.Application") as SolidEdgeFramework.Application;
SEDoc1 = SEApp1.ActiveDocument as SolidEdgeFramework.SolidEdgeDocument;
SolidEdgeFramework.MatTable Table_Materiel = SEApp1.GetMaterialTable();
Table_Materiel.ApplyMaterial(SEDoc1, comboBox1.Text);

After Run , have a error message

"The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"

please help!

JRUser is Offline
New Member
New Member
Posts:91

--
11 Jan 2010 03:28 AM  
Hi Fatids,

are you sure, that the comboBox1.text is in the MaterialTable ?


fatkidsUser is Offline
New Member
New Member
Posts:53

--
04 Feb 2010 03:06 AM  
Thanks JR!
You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2011 JasonNewell.NET