Skip to main content
12-Amethyst
July 6, 2023
Question

Toolkit code to import and output model names

Hello, I'm trying toolkit for the first time.


I'm learning by referring to related documents, but I'm struggling because I don't know how to configure them.

I tried the code below briefly, but it doesn't work.

Can you tell me what I did wrong?

Thank you.

 

/////////////////////////////////////////////////////////////////////////////////////////////

#include <stdio.h>
#include <ProToolkit.h>
#include <ProMenu.h>
#include <ProMdl.h>
#include <ProObjects.h>
#include <ProMenuBar.h>
#include <toolkitapi.h>

int main(void) {
ProError status;
ProMdl current_model;
ProName model_name;


status = ProMdlCurrentGet(&current_model);

status = ProMdlNameGet(current_model, model_name);

printf("current model name : %ls\n", model_name);

 

return 0;
}