Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CATIA C# Dlls instead of C++ CAA

Status
Not open for further replies.

Ramzi_CAD

Computer
Aug 10, 2023
5
Hello,

I wanted to discuss the utilization of C# DLLs as an alternative to the CAA C++ approach for incorporating new functionalities into CATIA.
Is it possible to expose all the necessary interfaces to the C# DLLs? I need specially Electrical Harness Installation interfaces (EhiBundleSegment, EhiBranchable etc...)
I want to do it as already existing interop dlls like INFITF, ProductStructureTypeLib please (see attached picture).

I've CATIA and CAA licences


Your insights and guidance on this matter would be greatly appreciated.
Looking forward to your response.
Thanks in advance.
 
 https://files.engineering.com/getfile.aspx?folder=5367f5fc-348d-49ff-9480-a4cd62149c8f&file=Dlls.png
Replies continue below

Recommended for you

Possible by writing your own COM wrappers as described in CAA Encyclopedia in "Middleware" section.
 
Thanks for your answer, I saw it.
refering to necyclopedia we can expose inteface as Visual Basic, VB Script, JScript, and Basic Script but it is not available for C#.
Is it possible to do it in C#?
 
You build .tlb that can be referenced with Visual Studio generating interop .dll, or you can do it manually by calling tlbexp.exe
 
Ok, it's clear, thanks for your answer.

I've checked C++/Java Home > Middleware > Object Modeler tab > Creating Interfaces for Automation technical documentation
And still not very clear,
Do you have a littel example that I can follow please.
Can I follow this example to create interface: InstallRootDirectory\CAASystem.edu\CAASysGeoModelInf.m
Thanks in advance,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor