C/C++ example for GET_RFLEX_BODYSEQID

#include "stdafx.h"

#include "DllFunc.h"

#include "math.h"

 

ModalForceExt_API void __cdecl modal_force_ext

           (int id, double time, double upar[], int npar, int ifbody, int nodarr[], int nonde, int jflag, int iflag, double result[])

{

           using namespace rd_syscall;

 int errflg = 0;

 int targerBodySeq = 0;

 TCHAR targerBodyName[256];

 

  __tcscpy(targerBodyName,_T("RFlexBody1"));

           get_rflex_bodyseqid(targerBodyName,&targerBodySeq,&errflg);

 for(int i=0;i<6;i++) result[i] = 0.0;

}