"shape(s) are not found" when i run the mfc example:animation?

markov D

Looking around for some CAD
1625575035577.png
when i run the animation project or the animation.exe, there will be a error alert? how to solve it?
 

markov D

Looking around for some CAD
This may be a simple question, but it has bothered me for a long time,so thanks a lot if you help to solve it
 

JSlyadne

Administrator
Staff member
View attachment 20
when i run the animation project or the animation.exe, there will be a error alert? how to solve it?
Hello there!

The reason for this message is that the application cannot find the data. The sample application(s) is looking for the data in the directory defined by "CSF_OCCTDataPath" variable. In your particular case, you might want to look at AnimationDocApp.cpp ln 74-121.

So the only you need to do to overcome the issue is to initialize this variable someway.
 

markov D

Looking around for some CAD
Hello there!

The reason for this message is that the application cannot find the data. The sample application(s) is looking for the data in the directory defined by "CSF_OCCTDataPath" variable. In your particular case, you might want to look at AnimationDocApp.cpp ln 74-121.

So the only you need to do to overcome the issue is to initialize this variable someway.
thanks a lot!!! I solve this problem with adding the following code in the AnimationDocApp.cpp :
SetEnvironmentVariable(L"CSF_OCCTDataPath", L"D:/OCC/opencascade-install/data");
 
Top