Skip to main content
1-Visitor
August 24, 2022
Question

Utilizing C# libraries from Creo Parametric Extension

  • August 24, 2022
  • 3 replies
  • 5900 views

Hello everybody!

My company has just acquired Creo Parametric and it needs to develop add-on extensions to it. From the other hand, we have tons of useful C# code that we we want to reutilize.

I just started to design the extension and my plan was to implement a 3-tier architecture consisting from the following layers:

- DLL client build with Creo Object Toolkit C++, which may be registered as extension to Parametric.exe

- Middleware build with C++/CLI which will allow client/server interop

- C# libraries consumed

Unfortunately, my trials so far to make server DLL extension dependent on the middleware class brought to the Parametric crashes.

I'm absolute newbie to the Parametric programming so I would like to start this first post with some general questions.

Do anyone has the experience with the using C# code from Parametric?

Is the direction I tried makes sense with Parametric?

If yes, what may be the causes for crash? (I will share code files as necessary)

If not, what are the advised directions I can focus on?  

Thanks for your patience.

3 replies

24-Ruby III
August 24, 2022

Hi,

please ask PTC Support.

1-Visitor
August 24, 2022

Thanks. Do you mean Technical Support? Because I already did. It says that this is not part of their responsibility and suggested to request assistance on forums instead. :((

24-Ruby III
August 24, 2022

@ZS_10383889 wrote:

Thanks. Do you mean Technical Support? Because I already did. It says that this is not part of their responsibility and suggested to request assistance on forums instead. :((


Hi,

I found https://community.ptc.com/t5/Customization/Include-standard-c-functions-in-Creo/td-p/641978?art_lang=en&posno=1&q=C%23%20library&ProductFamily=Creo%20%26%20Pro%2FENGINEER&source=search discussion. Maybe you can ask Eike_Hauptmann.

17-Peridot
August 25, 2022

Why you don't want to create a Net addon (application) to connect to Creo?

Using VBA API (in general any COM api including C#)

1-Visitor
August 25, 2022

Thank you for this advise. 

In my opinion using wrapper is more versatile comparing with COM interfaces. But eventually that may be my second (and the only one available) choice.

I have not started to tackle VBA API yet. Why do I need it?  

 

BR.

17-Peridot
August 25, 2022

@ZS_10383889 wrote:

I have not started to tackle VBA API yet. Why do I need it?  

I think, a main benefit is an ability to reuse you C# code. You can use the source code or link library to new app witch will interoperate with Creo.

COM application in some tasks may be slowly, but it depends of your needs and what will do this C# code.

 

Additionally, take a look at the chapter "Task Based Application Libraries" in the documentation. This is standard mechanism for interop between add-ons for Creo.

13-Aquamarine
March 6, 2023
6-Contributor
November 17, 2025

Can you tell me more about it?