Jump to content

goron

Members
  • Content Count

    4
  • Joined

  • Last visited

1 Follower

About goron

  • Rank
    Newbie

Profile Information

  • Gender
    Male

Recent Profile Visitors

548 profile views
  1. Hello to all, Does anybody know the developers' forum of HyperMesh or maybe HyperWorks? Best, Lucian. --
  2. Hi everybody, I am working with HyperMesh using its External C/C++ API with Visual Studio 2005. I would just like to import a .stp model and after that process it. But I can not get it to import the required file. This is how I have tried so far: bool model = false; model = hm_api->ImportModel (HM_ExtAPI::STEP, "E:\WAP09Celsius1_Lucian\Verformungsmodell\99_Daten_CATPart\00_Werkstueck_eingriff.stp", true); printf("model = %d \n", model); for which the output is simply: model = 0 And by using: hm_api->RunHMTclString ("*feinputwithdata2 #granite\step E:/WAP09Celsius1_Lucian/Verformungsmodell/99_Daten_CATPart/00_Werkstueck_eingriff.stp 1 0 -0.01 0 0 1 1 1 0"); with the following output: Error: reader is not supported on this platform. Tcl/Tk script error: 0 while executing "*feinputwithdata2 #granitestep E:/WAP09Celsius1_Lucian/Verformungsmodell/99_Daten_CATPart/00_Werkstueck_eingriff.stp 1 0 -0.01 0 0 1 1 1 0" Any advice is helpful. Cheers, Lucian. --
  3. Hello *, My question is related to a MATLAB/HyperMesh interaction by making use of the C/C++ interface provided with HyperMesh 11 -- referred to as Ext API. The problem is that I cannot open an interface. Here is a sample code which can reproduce the problem: #include <mex.h> #include "C:\Program Files\Altair\11.0\hm\include\hm_extapi.h" #include "C:\Program Files\Altair\11.0\hm\include\hm_extapi_error.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { mexPrintf("Halli Hallo..\n"); int err_code; HM_ExtAPI* hm_api = Open_HM_ExtAPI (&err_code); mexPrintf("Err Code Number: %d\n", err_code); if (err_code != ERR_XAPI_SUCCESS) { char buffer[512]; if (Open_HM_ExtAPI_GetErrorMessage (err_code, buffer, 512)) mexPrintf("MESSAGE: %s\n", buffer); } mexPrintf("Wie geths?\n"); mexPrintf("%s\n", hm_api); Close_HM_ExtAPI(hm_api); mexPrintf("Tschüss!\n"); return; } I copied the corresponding .dll file hm_extapi.dll to the MATLAB runtime directory path. Then I simply use this command to generate the MEX executable: mex E:\WAP09Celsius1_Lucian\code\schnittstelle.cpp C:\Programme\Altair\11.0\hm\lib\win64\hm_extapi.lib And by running the command: schnittstelle I get the following output: Halli Hallo.. Err Code Number: 1 MESSAGE: HM DLL not found. Wie geths? (null) Tschüss! Any suggestion on how to solve it will be appreciated. Cheers, Lucian. --
  4. Hello *, My question is related to a MATLAB/HyperMesh interaction by making use of the C/C++ interface provided with HyperMesh 11 -- referred to as Ext API. The problem is that I cannot open an interface. Here is a sample code which can reproduce the problem: #include <mex.h> #include "C:\Program Files\Altair\11.0\hm\include\hm_extapi.h" #include "C:\Program Files\Altair\11.0\hm\include\hm_extapi_error.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { mexPrintf("Halli Hallo..\n"); int err_code; HM_ExtAPI* hm_api = Open_HM_ExtAPI (&err_code); mexPrintf("Err Code Number: %d\n", err_code); if (err_code != ERR_XAPI_SUCCESS) { char buffer[512]; if (Open_HM_ExtAPI_GetErrorMessage (err_code, buffer, 512)) mexPrintf("MESSAGE: %s\n", buffer); } mexPrintf("Wie geths?\n"); mexPrintf("%s\n", hm_api); Close_HM_ExtAPI(hm_api); mexPrintf("Tschüss!\n"); return; } I copied the corresponding .dll file hm_extapi.dll to the MATLAB runtime directory path. Then I simply use this command to generate the MEX executable: mex E:\WAP09Celsius1_Lucian\code\schnittstelle.cpp C:\Programme\Altair\11.0\hm\lib\win64\hm_extapi.lib And by running the command: schnittstelle I get the following output: Halli Hallo.. Err Code Number: 1 MESSAGE: HM DLL not found. Wie geths? (null) Tschüss! Any suggestion on how to solve it will be appreciated. Cheers, Lucian. --
×
×
  • Create New...