Use Marshal to Create New Solid Edge Object in .NET?

Valued Contributor
Valued Contributor

I know it is recommended to connect to an existing existance of Solid Edge via .NET like this:

 

system.Runtime.InteropServices.Marshal.GetActiveObject("SolidEdge.Application")

 

What is the equivalent way to open the Solid Edge application?

 

Searching the forums, I found this:

 

MarshalEx.CreateObject("SolidEdge.Application")

 

...but it only looks like that is applicable for the compact framework.

 

-Brent

 

Posted by: Brent Newsom
Post date: 5/31/2006 7:15:14 AM

2 REPLIES

RE: Use Marshal to Create New Solid Edge Object in .NET?

Valued Contributor
Valued Contributor

Hi Brent,

 

Jason already has an answer to this under Articals > Solid Edge.

 

http://www.jasonnewell.net/portal/Articles/SolidEdge/tabid/72/ctl/Details/mid/418/ItemID/1/Default.a...

 

Hope this helps,

 

James

 

Posted by: James Singleton
Post date: 6/2/2006 12:42:32 AM

RE: Use Marshal to Create New Solid Edge Object in .NET?

Valued Contributor
Valued Contributor

Brent,

 

Adding to what James said, MarshalEx is a custom class that I wrote because CreateObject fails as described in the article.

 

I might also mention that I think CreateObject works correctly in v2.0 of the framework.

 

Posted by: Jason Newell
Post date: 6/8/2006 6:06:24 AM