Creating Contact Model DLLs from the MSVS Project Template

Hello,

Capture
http://docs.itascacg.com/3dec700/pfc/docproject/source/manual/optional_features/plugins/cmodel_plugins.html
When i try to follow the manual step by step to create a UCM with C++ template, it always show this error.
Is there any friends who has meet this problem? How to solve it?

Best regards

Dear Xutao,

The contact model template project appears to be broken at the moment.
I uploaded a PluginFiles archive at https://itasca.sharefile.com/d-s139c705205cb402abc99127518be5944.
This archive contains an example contact model under PluginFiles\contactmodel\example.
Please use this example as a starting point to implement your custom contact model, and do not hesitate to come back to me for further assistance.
I am sorry for the inconvenience.

Best regards,
Sacha Emam

2 Likes

Dear Sacha Emam,

I compiled a contact model with the PluginFiles archive you shared, but the stress function getOldStress cannot access the stress value.
How can I solve this problem?

Best regards,
Weichen Sun

1 Like

I followed the instructions on the “Creating Contact Model DLLs from the MSVS Project Template” page of the Contact Model Plug-Ins site on the Itasca website, but when I try to create the new project from the Itasca Contact Model template in Visual Studio 2019 (as recommended), I get this error:
image