VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#1 2009-07-16 07:08:55

ThomasF
Member
From: Austria
Registered: 2009-07-07
Posts: 13

CME-API on x64-systems

Hello,

I'm currently trying to get the CME-API to work with Vericut 6.2.2 (64)   :?

I've used the example files in the cmeapi folder but it doesn't work. I always get the following errors:
Error    1    error LNK2019: unresolved external symbol __imp_cmeapi_send referenced in function cms_UserCheckSpindle    example1.obj    Vericut_CME
Error    2    error LNK2019: unresolved external symbol __imp_cmeapi_get_c_numeric_vars referenced in function cms_UserCheckSpindle    example1.obj    Vericut_CME
Error    3    error LNK2019: unresolved external symbol __imp_cmeapi_get_c_text_vars referenced in function cms_UserCheckSpindle    example1.obj    Vericut_CME
Error    4    error LNK2019: unresolved external symbol __imp_cmeapi_register_macro referenced in function cmeapi_init    example1.obj    Vericut_CME
Error    5    fatal error LNK1120: 4 unresolved externals    E:\Visual Studio 2008\Projects\Vericut_CME\x64\Debug\Vericut_CME.dll    Vericut_CME

32bit version works well.

Has anyone a solution for this problem?

Best regards,
Thomas

Offline

#2 2009-07-17 07:46:23

MustaphaC
VERICUT Specialist
From: Le Mans, France
Registered: 2004-10-14
Posts: 130
Website

Re: CME-API on x64-systems

Did you add the link to CGTech.lib?
(Linker > Input > Additional Dependencies > CGTech.lib)


Mustapha

Offline

#3 2009-07-27 05:06:49

ThomasF
Member
From: Austria
Registered: 2009-07-07
Posts: 13

Re: CME-API on x64-systems

I've added the correct link.

I tried 4 different CGTech.lib files (32bit from 6.2.2, 64bit from 6.2.2, 32bit from 7.0b1, 64bit from 7.0b1). All others compile correctly, but also the 64bit from 7.0b1 can't be loaded in Vericut (6.2.2 and 7.0b1).

Offline

#4 2009-07-27 11:48:25

MustaphaC
VERICUT Specialist
From: Le Mans, France
Registered: 2004-10-14
Posts: 130
Website

Re: CME-API on x64-systems

You probably need to modify the compilation to be 64bits (Build->Configuration Manager…, change "Active solution platform" to "x64")


Mustapha

Offline

#5 2009-07-27 12:05:23

ThomasF
Member
From: Austria
Registered: 2009-07-07
Posts: 13

Re: CME-API on x64-systems

I've also changed the target platform.

Do you have a working example of a visual studio project for 64bit version which you could probably send me?

Thanks,
Thomas

Offline

#6 2022-12-06 09:51:06

ipriyadarsinirallabandi
Member
Registered: 2022-05-10
Posts: 11

Re: CME-API on x64-systems

I am new to CME-API's but i have working exp in developing CAD based tools in NX using C#. Can you please help by sharing any documents or examples on how to customize Vericut with the help of CME-API's and what all i need to start with.
Thanks in advance!!

Offline

#7 2022-12-07 11:19:57

Tony
Moderator
From: Crewe, England
Registered: 2007-02-20
Posts: 179
Website

Re: CME-API on x64-systems

All documentation is in Help > Development Tools


Tony

Offline

#8 2023-01-19 05:38:25

ipriyadarsinirallabandi
Member
Registered: 2022-05-10
Posts: 11

Re: CME-API on x64-systems

Thanks Tony for the reply. I will go through the development tools in the Help.

Offline

#9 2023-01-31 11:30:19

ipriyadarsinirallabandi
Member
Registered: 2022-05-10
Posts: 11

Re: CME-API on x64-systems

Hi,

I have created my own dll using CME-API's & it is running as expected.
My question here is, can i call this dll through a customized button in the Vericut through customized ribbon?

I have created a new tab using this & given dll path under executable but it is not working.

Any help is really appreciated.

Thanks in advance!!

Regards,
Indira

Offline

Board footer