Reply

I NEED HEEELP!

[ Edited ]

I'm using solid edge v16 and vb.net 2005 trying to extract density mass and other physical properties of parts, assemblies etc....

when I call the GetGlobalParametermethod (to get the density) i get the error:

"The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"

a sample code that generates this:

 

Dim seType As System.Type

Dim SE_App As SolidEdgeFramework.Application

Dim SE_PartDoc As SolidEdgePart.PartDocument

Dim d as double

 

seType = Type.GetTypeFromProgID("SolidEdge.Application")

SE_App = Activator.CreateInstance(seType)

SE_App.Visible = True

SE_PartDoc = SE_App.Documents.Open("N:\23000\23138-01.par")

SE_PartDoc = SE_App.Documents.Item(1)

SE_PartDoc.GetGlobalParameter(SolidEdgePart.PartGlobalConstants.sePartGlobalDensity, d)

 

I get the same error when i try to invoke models in order to use the computephysicalproperties method:

 

objModels = SE_PartDoc.Models

^

"The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"

 

Does anybody know what the problem might be ????

 

Posted by: Steve Antoniades
Post date: 10/16/2006 7:47:31 PM

2 REPLIES

RE: I NEED HEEELP!

[ Edited ]

Hi Steve,

 

sorry man, your code works with V18 . Have you checked the Edge.exe.config file in the program folder? If this has been updated for V16 it will tell SE that it should only support .net 1.1 - and then you'll get all sorts of strange things happening...

 

My personal opinion is that you should avoid using .net 2.0 with V16 - but that probably doesn't help much...

 

You could try using the command line .net 1.1 compilers to compile your code and see if it works then - a bit nasty to debug but if it works...

 

Cheers

Calum

 

Posted by: Calum McLellan
Post date: 10/16/2006 8:06:34 PM

RE: I NEED HEEELP!

[ Edited ]

Thnx for your help!

Running (allmost) the same code in

.net v1.1 worked just fine!

 

 

Posted by: Steve Antoniades
Post date: 10/18/2006 12:20:28 AM