Solid Edge How to register the .Net and CPP library?

2021-10-06T23:52:57Z
PART/SHEETMETAL

Summary


Details

How to register the .Net and CPP library?



Solution

User can register the .Net library by RegAsm.exe, 


 


For Example:


To register the library use


C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "DLL path" /codebase


 


When library get registered then user can see message like "Types registered successfully"


 


To unregister the library use


C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "DLL path" –u /codebase


 


When library get un-registered then user can see message like "Types un-registered successfully"


 


If library is not valid .Net library then it throws error "error RA0000 : Failed to load ….dll" because it is not a valid .NET assembly.


 


 


 


User can register the CPP library by RegAsm.exe, 


 


For Example:


To register the library launch cmd and give command like,


regsvr32 "DLL path"


 


When library get registered then user can see message like "DllRegisterServer in ….dll succeeded."


 


To unregister the library use


regsvr32 –u "DLL path"


 


When library get un-registered then user can see message like "DllUnregisterServer in ….dll succeeded."


 


If library is not valid CPP library then it throws error, The module "….dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "…dll" is a valid DLL or OCX file and then try again.

Note: The path for RegAsm.exe may change as per system configuration

Hardware/Software Configuration

Platform: AMD64
OS: window
OS Version: 764
Product: SOLID_EDGE
Application: AUTOMATION
Version: V110.0
Function: API_DOCUMENT

Ref: 002-8002477

KB Article ID# PL8002477

Contents

SummaryDetails

Associated Components

PART/SHEETMETAL: FEATURES