Reply

revision manager

[ Edited ]

Hello All!

 

Do you have any idea how to translate source code

 

'Attach to application and open file

Set objRevisionManager = CreateObject("RevisionManager.Application")

'Open an assembly

Set objDoc = objRevisionManager.Open(strSE_TrainingDir & "aaa.asm")

 

from VB to C#?

 

I had tried

 

 

RevisionManager.Application objRevisionManager =

(RevisionManager.Application) CreateObject("RevisionManager.Application");

 

SolidEdgeAssembly.AssemblyDocument assemDocRev =

(SolidEdgeAssembly.AssemblyDocument) objRevisionManager.Open(assemDoc.FullName, 0, true);

 

 

but the CreateObject function does not exist.

 

Thanks,

 

Jara

 

 

Posted by: Jara Ctverak
Post date: 2/5/2007 11:16:00 PM

1 REPLY

RE: revision manager

[ Edited ]

Hi Jara,

 

Use the Activator.CreateInstance method (The CreateObject method exists in the Microsoft.VisualBasic namespace when you reference the Microsoft.VisualBasic.dll, but this is only for VB6 backwards compatibility). See here for more details.

 

Cheers

Calum

 

Posted by: Calum McLellan
Post date: 2/6/2007 9:46:14 AM